Page 1 of 1
Modifiy Comments
Posted: Wed Nov 16, 2005 4:12 am
by gman
Can someone tell me how I can remove text from the comments popup window. I would like to make it a very simple clean comment box.
Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Standard emoticons like

and

are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications
Re: Modifiy Comments
Posted: Thu Nov 17, 2005 12:50 pm
by garvinhicking
You'll need to edit your commentform.tpl template. The text that is shown there is coming from each plugin, that will instruct your visitor what information applies.
Remove this line:
Code: Select all
{serendipity_hookPlugin hook="frontend_comment" data=$commentform_entry}
Regards,
Garvin
Posted: Thu Dec 01, 2005 3:32 am
by BabeSpot
But after removing that line also the captcha to prevent comment spam is gone...
Posted: Thu Dec 01, 2005 12:17 pm
by garvinhicking
Okay, I didn't know you wanted to preserve that.
Well, I'm afraid then for that to work you'll have to edit the corresponding plugin files (like serendipity_event_bbcode.php) and modify their frontend_comment hook to not echo the guidelines.
For serendipity 1.0 I've just created custom CSS classes for that, by replacing things like:
Code: Select all
echo '<div class="serendipity_commentDirection">' . PLUGIN_EVENT_BBCODE_TRANSFORM . '</div>';
with
Code: Select all
echo '<div class="serendipity_commentDirection serendipity_comment_bbcode">' . PLUGIN_EVENT_BBCODE_TRANSFORM . '</div>';
so that you can then use this CSS:
Code: Select all
.serendipity_comment_bbcode {
display: none;
}
Regards,
Garvin