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 - Conditional statements

These tags are optional and more advanced. They are used to modify template output based on conditions.

In general, they are used as follows :

    <BL_IfConditionTrue>hello world<BL_>
If the condition is true, the text hello world is shown, otherwise it is not shown.

These two blog tags are used when in user profiles.

<BL_IfProfileHideEmail>do not show user's email in profile
<BL_IfProfilePicture>picture included in user profile

The next set is used in archives to determine if month, day or year are specified in the archive date.

<BL_IfArchiveMonth>archive month is set/defined in the URL
<BL_IfArchiveDay>archive day of month is set/defined in the URL
<BL_IfArchiveYear>archive year is set/defined in the URL

Below are more conditional blog template tags.

<BL_IfLogin>user/visitor is logged in
<BL_IfNotLogin>user/visitor is not logged in
<BL_IfAllowComments>user/visitor is allowed to post comments
<BL_IfAllowPosts>user/visitor is allowed to add posts
<BL_IfNextPage>there is a next comment/post page
<BL_IfPreviousPage>there is a previous comment/post page

The <BL_IfCategoryMatch> is true if the category shown (in the URL) matches the category in the list of categories loaded by <BL_ListCategories>.

The <BL_IfNewPostDate> is true if the date for the current post is different than the last post.

More conditional blog tags exist for the error.html page (see the error messages tutorial section).

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