WordPress.org

Support

Support » Plugins and Hacks » [Plugin: wp-comment-master] Replace the tank you text with code

[Plugin: wp-comment-master] Replace the tank you text with code

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Olaf Lederer

    @finalwebsites

    Hi,

    I have the same request.
    I changed the file “cm.js”:

    var $message=jQuery('<span class="yjl-mes"></span>').appendTo("#commentform");

    becomes

    var $message=jQuery('<span class="yjl-mes"></span>').prependTo("#commentform");

    This way you’ll move the messages above the form instead of below.

    Would be great if the plugin author will make this an option in the admin page.
    It would be also cool to have some style options for the message (add a field for the css class name), now I need to change plugin’s css file:

    .yjl-mes{
       color:#3C72B0;
       font-size:12px;
       font-weight:bold;
       line-height:30px;
    }

    Edit by Olaf:
    I noticed that the plugin doesn’t work on pages, I added is_page() to this row:

    if(is_single() || is_page())wp_enqueue_script('paginating_js', WP_PLUGIN_URL.'/wp-comment-master/cm.js',array('jquery'),'',true);

    Plugin Author Olaf Lederer

    @finalwebsites

    Another suggestion 🙂

    All warnings or error messages should be in red color. The thank you message should have an different color like green.

    I change this row (added the css attr.)

    $message.empty().append((yjlSettings.thank!=''?yjlSettings.thank:'Thank you for your comment!')).css('color', 'green');

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: wp-comment-master] Replace the tank you text with code’ is closed to new replies.