Hi.
This is a simple preview plugin for BBpress Forums
Description
Provide users with a live comment preview before submit. show it in the same page using Ajax
Installation
-Add the `live_comment_preview` folder to bbPress’ `my-plugins/` directory.
-Activate the plugin in your admin area
-Add the code:
<php add_live_comment_preview("View Preview"); >
to your topic.php file, where you want to show the preview’s area.
ie. before the post form something like that
<?php if ( topic_is_open( $bb_post->topic_id ) ) : >
<?php add_live_comment_preview("View Preview"); >
<?php post_form(); >
<?php else : >
-Also, you can edit the CSS file (style.css) to adapt the design to your template.
@charset "utf-8";
/* CSS Document for live comment preview plugin*/
/* *
* small header that show the preview title
* */
#live_preview_header
{
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 12px;
background-color: #CAEAFF;
text-align: center;
}
/* *
* Div where the submit button are
* */
#live_comment_preview_button_div
{
float:right;
}
/* *
* Submit button class
* */
#live_comment_preview_submit
{
}
/* *
* Div where the preload image are
* */
#live_comment_preview_loading
{
}
/* *
* Div where the preview text show
* */
#live_comment_preview_main_content
{
}
Enjoy.
Download
Files
| Download: | live_comment_preview.zip |
|---|---|
| Version: | 0.1 |
| Updated: | February 13, 2008 |
| Size: | 4.94 KB |




