prepopulating a blog comment's text field

Hi,

Does anyone know how I can pre-populate the comments field on the blogs page, so that the text field contains an automated comment such as "have your say here".  I know that in a standard form this can be done with an <input value="have your say here"> sort of tag, I just can't find the form that generates the blog comments to stick that in!

Help!?

Tom.

Quote · 25 May 2014

You can do it in templates/base/scripts/BxBaseCmtsView.php file, or better in your template file BxTemplCmtsView.php to leave core files intact: 

function _getFormBox($iCmtParentId = 0, $sText = "", $sFunction = "submitComment(this)")
{
    if (!$sText)
        $sText = 'have your say here';

Rules → http://www.boonex.com/terms
Quote · 26 May 2014

I suggest adding code to autoclear the text when the field receives focus; something that is needed on the Boonex PM system.  It is annoying to have to delete the text each time when leaving a comment.

Geeks, making the world a better place
Quote · 27 May 2014

awesome, thanks guys!  I will give this a try :-)

Quote · 30 May 2014

Yes, it would be better, but it will require much more changes.

I suggest adding code to autoclear the text when the field receives focus; something that is needed on the Boonex PM system.  It is annoying to have to delete the text each time when leaving a comment.

 

Rules → http://www.boonex.com/terms
Quote · 2 Jun 2014
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.