Logo Your Web Hosting Solution
Line
Blog Tutorial:
General
Blog Posts
User Comments
Archives
Categories
User Profile
Using Skins
Time And Date
Conditionals
Error Messages

Blog Software
Web Hosting
Tutorials Index
Blog Software Tutorial - Comments

Before displaying comments, a post must be loaded using a <BL_Latest> or <BL_Show> blog tag.

<BL_Comments>
fileblog template file to show posts
numbernumber of entries/posts to show
nonefoundblog template file shown if no entries/posts are found

The next set of template tags is only available in template files (specified by the file attribute) loaded within the <BL_Comments> blog tag.

<BL_CommentBody>shows comment body
<BL_CommentIP>show IP of comment poster
<BL_CommentCounter>counter showing number of comments shown
<BL_CommentDate>shows comment date
formatsee date & time tutorial section for format details
<BL_CommentTime>shows comment time
formatsee date & time tutorial section for format details
<BL_CommentJoined>join date for poster
formatsee date & time tutorial section for format details

Several blog template tags are available to show info about the user who submitted the comment/reply.

<BL_CommentName>shows name of comment poster
<BL_CommentEmail>email address for the user who posted
<BL_CommentSignature>signature in their profile
<BL_CommentGender>user's gender as set in their profile
<BL_CommentAge>age for the user as set in their profile
<BL_CommentLocation>location in user's profile
<BL_CommentWebSite>web site in profile
<BL_CommentPicture>picture in the user's profile
<BL_CommentComments>comments posted by this user
<BL_CommentPosts>posts posted by this user

Blog template tags <BL_CommentCustom1> to <BL_CommentCustom5> are also available to show the (optional) custom profile field for the user.

Additional template tags are available to help you create links to various parts of your blog, bulletin board, guestbook or other software application.

<BL_CommentNameUrl>turns name into URL
<BL_CommentsUrl>creates URL to comments for same post

The <BL_CommentNameUrl> tag is used to create part of a URL where posts by this user can be located.

    /Blog/User/<BL_PostNameUrl>
Or create a link to the profile for the user.

    /Blog/Profile/<BL_PostNameUrl>

The <BL_CommentsUrl> blog tag is used to create part of a URL to more comments to the same post.

    /Blog/Archive/<BL_CommentsUrl>

After the blog software posts a new comment, the posted.html blog template file is shown. At that point, the <BL_NewCommentUrl> tag can be used to create a URL to view the post the comment was added to.

    /Blog/Archive/<BL_NewCommentUrl>

Next are some blog template tags which can be used to navigate from one page of comments to the next.

<BL_PreviousPageURL>shows full URL for previous page
<BL_NextPageURL>shows full URL for next page

You can also create a list of links, linking to each page of blog or bulletin board comments for the same post.

<BL_CommentLinks> 
<separator>character shown between page links

Conditional blog tags are available to check if there is a next/previous page of comments.

Top Of Page 
Line
Copyright© 1996 - 2024 Clockwatchers, Inc.