View previous topic :: View next topic |
Author |
Message |
sgarfield
Joined: 07 Jan 2005 Posts: 18
|
Posted: Sun Mar 06, 2005 10:20 pm Post subject: ADDING a text message for commenters |
|
|
Hi,
I'd like to add this message just above where new comments would be entered:
"Please keep your comments on topic. If this post is about WiFi, don't change the subject to City Council Policy. Either talk about WiFi, or get your own blog and talk about City Council Policy. I reserve the right to remove off-topic comments."
I looked at the comments template, but don't see anything that looks like the comments area.
Where would I go to add this text just about the comments area?
Preferably, just between Post comment:
and
Format Type:
Thanks,
--Steve |
|
Back to top |
|
|
john Site Admin
Joined: 16 Mar 2004 Posts: 3434
|
Posted: Mon Mar 07, 2005 2:39 am Post subject: Re: ADDING a text message for commenters |
|
|
The actual comments form itself is contained in a template which is not customizable.
You can add some additional explanatory text above the comments form, however. This thread: has infomation on modifying your article template... I'll repackage it here:
To add additional text to the comment area, you would need to customize your article template. Here's how you would modify the article template: - Login to your Blog Admin Control Panel through the Login page.
- Click on the Look and Feel tab, then the Templates subtab.
- Now you see a list of the Templates you can customize. We are going to customize the article template, which controls the look of an article when it appears by itself (on its permanent link) and not on a category page, so click Edit in the row that begins with the word article.
- Now you'll be on a page listing the current article templates (there will probably be only one). Go all the way to the bottom of the page and click the Customize button.
- Almost there: Click the Go button to Copy the Standard template to the staging area. You'll come to the page where you can customize the article template.
Now, the question of what code to change...
Look at the very bottom of the template for this code:
Code: | {{if allow_comments}}
<a name="post_comment"></a>
<div style="margin:25px 0;">
{{include name="post_comment_inline.html"}}
</div>
{{/if}} |
Replace it with this:
Code: | {{if allow_comments}}
<a name="post_comment"></a>
<div style="margin:25px 0;">
<div class="commentFormInline">
Post your extra information here...
{{include name="post_comment_inline.html"}}
</div>
</div>
{{/if}} |
and replace the Post your extra information here... with some text that you would like to use to explain to your readers.
Here is some more fancy code which allows you to display some text only to users who can not post - users who are not logged in:
Code: | {{if allow_comments}}
<a name="post_comment"></a>
<div style="margin:25px 0;">
<div class="commentFormInline">
{{unless can_post}}Post your extra information here...{{/unless}}
{{include name="post_comment_inline.html"}}
</div>
</div>
{{/if}} |
This code will allow you to display some text to readers who can not comment since they have not authenticated, and some other text to readers who are permitted to comment:
Code: | {{if allow_comments}}
<a name="post_comment"></a>
<div style="margin:25px 0;">
<div class="commentFormInline">
{{unless can_post}}Post your extra information here for readers who have not logged in...{{else}}Show this text for readers who have logged in already.{{/unless}}
{{include name="post_comment_inline.html"}}
</div>
</div>
{{/if}} |
Hope this gets you started! |
|
Back to top |
|
|
Search all BlogHarbor support resources.
|
View previous topic :: View next topic |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|