[Plugin: Quick Chat] Editing bad words list
-
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!
- The topic ‘[Plugin: Quick Chat] Editing bad words list’ is closed to new replies.