BlogHarbor Home Page
FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  UsergroupsRSS   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
ADDING a text message for commenters
 
Post new topic   Reply to topic    BlogHarbor Community Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
sgarfield



Joined: 07 Jan 2005
Posts: 18

PostPosted: Sun Mar 06, 2005 10:20 pm    Post subject: ADDING a text message for commenters Reply with quote

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
View user's profile Send private message Visit poster's website
john
Site Admin


Joined: 16 Mar 2004
Posts: 3434

PostPosted: Mon Mar 07, 2005 2:39 am    Post subject: Re: ADDING a text message for commenters Reply with quote

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:
  1. Login to your Blog Admin Control Panel through the Login page.
  2. Click on the Look and Feel tab, then the Templates subtab.
  3. 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.
  4. 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.
  5. 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
View user's profile Send private message Send e-mail Visit poster's website
Search all BlogHarbor support resources.
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    BlogHarbor Community Forum Index -> General Discussion All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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