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 - Posts

Posts are entries made in your blog, guestbook or bulletin board. Replies to those entries are referred to as comments in this tutorial.

Two tags are available to have the software display posts. The first shows posts, newest posts first.

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

The template file specified by the file attribute is shown for each post. If 10 posts are shown, this template file would be shown 10 times in a row.

If no blog template filename is specified, the software defaults to filename latests.html.

The second blog tag performs the same function as the first, however posts are shown in chronological order.

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

The number attribute enables you to limit the number of posts shown per page (default is 10).

The next set of blog tags displays the content of posts. Usually, these tags are loaded in the template files called by <BL_Latest> and/or <BL_Show>.

<BL_PostTitle>shows post title
<BL_PostBody>shows post body/text
<BL_PostCategory>shows category for post
<BL_PostReplies>number of replies/comments for this post
<BL_PostCounter>counter showing number of posts shown
<BL_PostDate>shows post date
<BL_PostIP>show IP address for this post
formatsee date & time tutorial section for format details
<BL_PostTime>shows post time
formatsee date & time tutorial section for format details
formatsee date & time tutorial section for format details

Lots of information is available about the user who created the blog, bulletin board or guestbook post.

<BL_PostName>shows the poster's username
<BL_PostEmail>email address for the user who posted
<BL_PostSignature>signature in their profile
<BL_PostGender>user's gender as set in their profile
<BL_PostAge>age for the user as set in their profile
<BL_PostLocation>location in user's profile
<BL_PostWebSite>web site in profile
<BL_PostPicture>picture in the user's profile
<BL_PostPosts>total number of posts by the user (at time of post)
<BL_PostComments>total number of comments by the user (at time of post)
<BL_PostJoined>date when poster joined/signed up as a user

Blog tag <BL_PostCustom1> to <BL_PostCustom5> are also available to show the (optional) custom profile fields for the user.

Additional blog post tags are available to help you create links to categories, archives and more.

<BL_PostNameUrl>convert poster's username into a URL
<BL_PostCategoryUrl>convert post's category URL
<BL_PostUrl>create unique URL for this post

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

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

    /Blog/Profile/<BL_PostNameUrl>

The <PostCategoryUrl> tag is used to create part of a URL where other posts in this category are located.

    /Blog/Category/<BL_PostCategoryUrl>

The <BL_PostUrl> tag is used to create part of a unique URL for a specific/archived blog post.

    /Blog/Archive/<BL_PostUrl>

The following two blog template tags can be used to create links to the next (or previous) page of posts.

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

Conditional blog software template tags can be used to determine if a previous/next page exists.

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