Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author tuxlog

    (@tuxlog)

    Please try the following:

    – Search for line

    add_action(‘comment_form’,’wpml_comment’);

    in wpml_comment.php and replace it with

    add_action(‘comment_form_after_fields’,’wpml_comment’);

    Think I should add this as an option.

    Thread Starter BeautyPirate

    (@beautypirate)

    Hello there,

    thanks for the quick reply. However the change you suggested isn′t working for the Twenty Twelve child theme I′m using.

    It might be relevant that only registered users can comment on my site? Maybe that′s a differently named form field then?

    And yes, addding that as an option might be cool!

    Over all it was really easy setting up the plugin, it works like a chatm ??

    Plugin Author tuxlog

    (@tuxlog)

    Yes, indeed thats the matter. If the fields above the textarea are not displayed this hook is not executed and therefore the smilies are not shown.

    So, we are trying another way. Edit comments.php in your twnetytwelve folder.

    Search for <?php comment_form(); ?>
    replace it with

    <?php $myargs = array('comment_field' =>  '<p class="comment-form-comment">' . get_wpml_comment() . '<label for="comment">' . _x( 'Comment', 'noun' ) .
        '</label><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true">' .
        '</textarea></p>');
    comment_form($myargs); ?>

    Just tested it. Works, here

    Thread Starter BeautyPirate

    (@beautypirate)

    It works, yes…but now I have the smiley bar above and below the text area. I remember adding the form field name in the wpml plugin settings, is there anything to change now too?

    Plugin Author tuxlog

    (@tuxlog)

    Since you have added the smilies manually to your theme now, you have to disable smilies on comments in the wp-monalisa admin dialog.

    Thread Starter BeautyPirate

    (@beautypirate)

    Perfect, thanks a lot! So if there is an update to this and there is going to be an option for this, would I need to change it back in comments.php?

    Plugin Author tuxlog

    (@tuxlog)

    Well, I will check if it is possible to implement it as an option. If this option is available in a future version of wp-monalisa you can change it back, but it is not a must. The way we use it now will work too.

    Have fun with wp-monalisa :-)))

    sevsaint

    (@sevsaint)

    I’ve tried this method on Highwind theme. It works, but now I’ve got two comment fields. Both are writable, but content from the upper one isn’t published. Is there a way to remove it?
    Thanks for the emotions ??

    Plugin Author tuxlog

    (@tuxlog)

    Hi,

    just checked with Highwind theme seems to work here.

    Did you remove the <?php comment_form(); ?> from comment-form.php?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Moving smileys in comment form above the textarea?’ is closed to new replies.