=== LMB^Box Comment Quicktags 1.5 === Tags: Comment, Quicktags, Buttons, Formating Contributors: Thomas, Montague, (Montie) Plugin: LMB^Box WP Comment Quicktags Plugin URI: http://aboutme.lmbbox.com/ Description: Inserts a quicktag toolbar in the blog comment form. Version: 1.5 Author: Thomas Montague Author URI: http://aboutme.lmbbox.com LMB^Box Comment Quicktags -> Was WP Comment Quicktags Plus! version 1.5, 2005-05-17 By Thomas Montague This Plugin is modified code from Owen Winkler's Comment Quicktags Plugin ****** Plugin Info ******** Plugin Name: Comment Quicktags Plugin URI: http://www.asymptomatic.net/wp-hacks Description: Inserts a quicktag toolbar on the blog comment form. Version: 1.0 Author: Owen Winkler Author URI: http://www.asymptomatic.net LMB^Box Comment Quicktags Plug is a plugin that puts a Quicktag Menu bar, just like the admin's Quicktags Menu bar, right above the comments text form area. You can use the bar to add strong/bold, em/italic, code, blockquote, and links tags by default. You can add more or remove some if you do not want them there. This allows general users/guests to be able to post comments with advanced editing features. == Installation == 1. Copy the file lmbbox-comment-quicktags.php into your wp-content/plugins directory 2. Activate this plugin in the WordPress Admin Panel 3. In your comments.php theme file add "" right above the . I put mine just above my commented out allowed_tags() call, example below. -- Example --
-- End of Example -- 3.1 You need to make sure that "ID); ?>" is just after the and just before the lines at the bottom of the comments.php file in your theme's folder. 3.2 Open up your comments.php file and find the same area as you did in step 3 above. Now if you notice in my example above, the line has 'name="comment" id="comment"' settings. Now you need to make sure that both the name and id are "comment" like above (the default theme is like this). #### Styling the Toolbar #### 4. The code added at the lmbbox_comment_quicktags() function call has some CSS styling tags in place. Below is what I have for my style settings, which mimic the admin's quicktags look. There is a div with an id of comment_quicktags that wraps the whole of the code. Then in the quicktags script, a link (Quicktags:) is displayed followed by a div with an id of ed_comment_toolbar. The ID of the div can be used by anybody who may want to add more buttons after the hard coded buttons (eg. My plugin -> LMB^Box Smileys Plugin). All of the buttons are inputs with a class of ed_button, and all of the buttons have ids of ed_%Name_of_button%. The build in button ids are: ed_strong, ed_em, ed_pre, ed_block, and ed_link. /*---------------------- Comment Quicktags ---------------------------*/ /* Main Div */ #comment_quicktags { text-align: left; margin-left: 1%; } /* Main Quicktags Toolbar Div */ #comment_quicktags #ed_comment_toolbar { display: inline; } /* Button Style */ #comment_quicktags input.ed_button { background: #F4F4F4; border: 1px solid #D6D3CE; color: #000000; font-family: Georgia, "Times New Roman", Times, serif; margin: 1px; width: auto; } /* Button Style on focus/click */ #comment_quicktags input:focus.ed_button { background: #FFFFFF; border: 1px solid #686868; } /* Button Lable style */ #comment_quicktags #ed_strong { font-weight: bold; } /* Button Lable style */ #comment_quicktags #ed_em { font-style: italic; } #### Edit the Quicktag Buttons #### 5. If you wish to change/edit the Quicktag Buttons that are displayed, you will need to edit the lmbbox-comment-quicktags.php file. Open the file and find "// edit the buttons here" on about line 141. Below you will see all of the buttons definded. To remove a button, simple either remove the code for it, or comment out the code with "/* code_is_here */". If you want to add a button, copy the button template below the "// edit the buttons here" line. Then paste it where you want to button to appear (the buttons are in the order in which they are entered, so if the "strong" button is after the "em" button, then the "em" button will be before the "strong" button). Then edit the code to the right values and remove the "// info" parts so that you have a button code that looks like the rest. If you want to, add a "// info for you about button" to remind you what you added and what to save if you upgrade to a new version of LMB^Box Comment Quicktags Plus. == End of Installation == == Frequently Asked Questions == = Do I really need to use this plugin? = You don't HAVE to have this plugin, but then you, your users, and your guests won't be able to make use of any of the advanced formating features UNLESS you/they now how to code it in manually. == End of Frequently Asked Questions == == Screenshots == NONE right now! == End of Screenshots == == Change Log == = 1.5 = Plugin's Name Changed! From WP Comment Quicktags Plus to LMB^Box Comment Quicktags! = 1.4 = Added Steps 3.1 and 3.2 documentation. = 1.3 = I fixed a problem with the style sheet and the display of the quicktags bar: The styles where definded as classes and the main div used a class of comment_quicktags, but for some reason the styles for the input buttons didn't pass through the main div (comment_quicktags) to the quicktags toolbar div (id="ed_comment_quicktags"). I first just added "#ed_comment_quicktags" in between the ".comment_quicktags" and "input.ed_button" / "input:focus.ed_button" styles, and this worked just fine. I didn't know why this was happening. I then tried changing the class comment_quicktags to an ID (#) instead (I also removed what I just added so that it was back to the way it was). I edited the plugin file to change the main div from a class of comment_quicktags to an id of comment_quicktags so that the styles will work. Guess what? No problems with the input styles not passing through the main div now! I don't know why this is but it works! So I figured that it would be better to use the id (#) version of the fix instead of adding "#ed_comment_quicktags" in between the ".comment_quicktags" and "input.ed_button" / "input:focus.ed_button" styles. This way if anybody really needs to add a button to the main div and not the quicktags toolbar div, then the styles will still work correctly. By the way, if anybody knows why this happened, please leave a comment on my blog at http://aboutme.lmbbox.com. = 1.2 = I have now included a readme.txt file with the plugin and I have also edited the documentation in the file. Added button template code and documentation for adding new buttons. = 1.1 = The first offical release of WP Comment Quicktags Plus for WordPress! == End of Change Log == === End of LMB^Box Comment Quicktags 1.5 ===