WordPress.org

Ready to get started?Download WordPress

Forums

Quick Chat
Editing bad words list (2 posts)

  1. andrewmassengale
    Member
    Posted 2 years ago #

    Hey guys!

    Great plugin! I LOVED working through the code, it is really well-written. I just have one suggestion. Probably not everyone using this plugin will want to see the bad word list every time they go to the admin settings page (I'm using this plugin for our church website :)

    So I changed a line of your code, and just thought you guys might like to consider it for the next revision.

    I changed:

    972 (quick-chat.php): echo '<textarea id="quick_chat_bad_words" name="quick_chat_options[badwords_list]" rows="5" cols="50" type="textarea">'.$quick_chat_options['badwords_list'].'</textarea>';

    To:

    972 (quick-chat.php): echo '<textarea id="quick_chat_bad_words" name="quick_chat_options[badwords_list]" rows="5" cols="50" type="textarea" style="display: none">'.$quick_chat_options['badwords_list'].'</textarea><input type="button" onclick="jQuery(\'#quick_chat_bad_words\').show();jQuery(this).hide()" value="Edit" />';

    Thanks again! Oh, and +1 for PHP single-quoted string!

    http://wordpress.org/extend/plugins/quick-chat/

  2. Marko-M
    Member
    Plugin Author

    Posted 2 years ago #

    Hi thanks for the idea, you're right it does look nasty when you browse trough admin options.

    Also thanks for the nice words it means a lot coming from fellow coder ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic