Bbpress::Live Comment Preview Plugin

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

Rendering of template dTemplate.php failed