WordPress.org

Ready to get started?Download WordPress

Forums

wp-comment-master
Replace the tank you text with code (3 posts)

  1. Isaakwells
    Member
    Posted 2 years ago #

    Is it possible for me to replace the thank you text with a code for a random thank you message? where would I place this code. It's php btw.

    http://wordpress.org/extend/plugins/wp-comment-master/

  2. Olaf Lederer
    Member
    Posted 2 years ago #

    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);

  3. Olaf Lederer
    Member
    Posted 2 years ago #

    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');

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic