Category Variables
By Paul
4/5 based on 3 votes. The median rating is 4.
By Paul
{CATHASNEW} - If there's a new link in the category, returns the image code for the updated image... otherwise, empty.
{CATHASNEWBOOL} - A true/false for use in conditionals to replace {CATHASNEW}.
{CATADMIN} - If viewer can edit category, returns the edit image for it... otherwise, empty.
{CATNUMSUBCATS} - The number of subcategories in the category
{CATNUMSUBCATSALL} - The number of subcategories including personal link lists if applicable.
{CATNUMLINKS} - Number of links in the category plus all its subcategories.
{CATLINKSHERE} - Number of links in the category excluding subcategories.
{CATSUBCATS} - HTML for displaying the subcategories of the category.
-- Optional parameters: html to use for each category, maximum number to show. limits list to 5.
{CATPARENTNAME} - The name of this category's parent category.
{CATALIASEDIN} - A list of secondary locations of the category.
{CATORIGCATNAME} - The name of the primary category of an alias, otherwise just the category name.
{CATORIGCATURL} - The url of the primary category of an alias, otherwise just the category url.
{CATNUMBERRELATED} - The number of categories related to this category.
{CATDATE} - Date on which the category was added.
{CATLASTEDITDATE} - Date on which the category was last edited.
{CATLASTLINKDATE} - The date of the last link addition in the category.
{CATLASTLINKTIME} - The time (as number of seconds since 1970) of the last link addition in the category.
{CATNAV} - Navigation path to the category (link to parents)
-- Optional parameters: nospace and bookmarkable. Example: » <a href="http://scripts.webmastersite.net/wsnlinks/wsnmanual410/templates_and_styles">Templates and Styles</a>» <a href="http://scripts.webmastersite.net/wsnlinks/wsnmanual410/templates_and_styles/templates">Templates</a>» <a href="http://scripts.webmastersite.net/wsnlinks/wsnmanual410/templates_and_styles/templates/template_variables">Template Variables</a> would prevent spaces from being inserted in the nav and would only use characters which can be applied to a javascript bookmarking.
{CATTITLENAV} - The navigation, but without HTML, suitable for use in the language item title_categories.
-- Optional parameters: navseperator, trimseparator
Example: - <,> 1Templates and Styles - <,> 1Templates - <,> 1Template Variables uses - as a separator and removes it from the front and back.
{CATTYPEOPTIONS} - The options for selecting the category type.
{CATLINKSELECTOR} - Options usable for maping a dropdown selector of all links in the category -- quick jump to a link using a selector.
{CATID} - The id number of the category.
{CATNAME} - Name of the category.
{CATPARENT} - The id number of the category's parent category.
{CATDESCRIPTION} - Description of the category.
-- Optional parameter: number of characters.
{CATDESCRIPTIONSTRIPPED} - The description with HTML removed.
Example: The information in y... shows the first 20 characters.
{CATCUSTOM} - The custom template this category uses if applicable.
{CATHEADERINFO} - This category's header info (meta tags, etc)
{CATTYPE} - The category type of this category.
{CATTOTALCOMMENTS} - The total number of comments for all links in the category.
0 - This will return a true or false depending on if the current category is somewhere beneath the target category in your directory structure. Target needs to be the id number of the category you want to know if this is below. (This is useful for some conditionals.)
{CATLEVELSDEEP} - The number of levels deep the category is, 0 being a main category, 1 a subcategory, etc.
{CATRANDOMLINK} - Returns link to a randomly selected link from the category.
-- Optional paramater: template. Defaults to <a href="{TRACKLINKURL}">{LINKTITLE}</a>
{CATSTATICNAME} - The static file name (with path if applicable) that would be generated for this category if you're using HTML generation.
0 - The total number of images in the category which are of the type typename. For example, 17 for regular images.
{CATVIEWS} - The number of unique views of the category.
{CATLASTTHREADID} - The id of the most recently posted to thread in the category.
{CATLASTHREADTITLE} - The title of the most recently posted to thread in the category.
{CATLASTPOSTERID} - The id of the last poster in the most recently posted to thread in the category.
{CATLASTPOSTERNAME} - The name of the last poster in the most recently posted to thread in the category.
{CATLASTCOMMENTDATE} - The date/time of the most recent comment posted in the category.
{CATNUMBER} - For where {NUMBER} doesn't work (see below).
{NUMBER} and {LETTER} can also be used with categories to display the order of their appearance. Using {NUMBER} they'll be numbered from 1 on up, using {LETTER} they'll be labeled from a to z.
To show the total of each type within a category while on the display images page, use {REGULARTOTAL}, {OTHERTYPETOTAL} etc. Elsewhere use CATTYPETOTAL as explained above.
To show the moderators of a category, use
<IF {CATHASMODERATORS}><!-- BEGIN MODERATORS --><a href="memberlist.php?action=profile&id={MEMBERID}" class="{MEMBERGROUPNAMESTYLE}">{MEMBERNAME}</a>,
<!-- END MODERATORS --></IF>
{CATHASNEWBOOL} - A true/false for use in conditionals to replace {CATHASNEW}.
{CATADMIN} - If viewer can edit category, returns the edit image for it... otherwise, empty.
{CATNUMSUBCATS} - The number of subcategories in the category
{CATNUMSUBCATSALL} - The number of subcategories including personal link lists if applicable.
{CATNUMLINKS} - Number of links in the category plus all its subcategories.
{CATLINKSHERE} - Number of links in the category excluding subcategories.
{CATSUBCATS} - HTML for displaying the subcategories of the category.
-- Optional parameters: html to use for each category, maximum number to show. limits list to 5.
{CATPARENTNAME} - The name of this category's parent category.
{CATALIASEDIN} - A list of secondary locations of the category.
{CATORIGCATNAME} - The name of the primary category of an alias, otherwise just the category name.
{CATORIGCATURL} - The url of the primary category of an alias, otherwise just the category url.
{CATNUMBERRELATED} - The number of categories related to this category.
{CATDATE} - Date on which the category was added.
{CATLASTEDITDATE} - Date on which the category was last edited.
{CATLASTLINKDATE} - The date of the last link addition in the category.
{CATLASTLINKTIME} - The time (as number of seconds since 1970) of the last link addition in the category.
{CATNAV} - Navigation path to the category (link to parents)
-- Optional parameters: nospace and bookmarkable. Example: » <a href="http://scripts.webmastersite.net/wsnlinks/wsnmanual410/templates_and_styles">Templates and Styles</a>» <a href="http://scripts.webmastersite.net/wsnlinks/wsnmanual410/templates_and_styles/templates">Templates</a>» <a href="http://scripts.webmastersite.net/wsnlinks/wsnmanual410/templates_and_styles/templates/template_variables">Template Variables</a> would prevent spaces from being inserted in the nav and would only use characters which can be applied to a javascript bookmarking.
{CATTITLENAV} - The navigation, but without HTML, suitable for use in the language item title_categories.
-- Optional parameters: navseperator, trimseparator
Example: - <,> 1Templates and Styles - <,> 1Templates - <,> 1Template Variables uses - as a separator and removes it from the front and back.
{CATTYPEOPTIONS} - The options for selecting the category type.
{CATLINKSELECTOR} - Options usable for maping a dropdown selector of all links in the category -- quick jump to a link using a selector.
{CATID} - The id number of the category.
{CATNAME} - Name of the category.
{CATPARENT} - The id number of the category's parent category.
{CATDESCRIPTION} - Description of the category.
-- Optional parameter: number of characters.
{CATDESCRIPTIONSTRIPPED} - The description with HTML removed.
Example: The information in y... shows the first 20 characters.
{CATCUSTOM} - The custom template this category uses if applicable.
{CATHEADERINFO} - This category's header info (meta tags, etc)
{CATTYPE} - The category type of this category.
{CATTOTALCOMMENTS} - The total number of comments for all links in the category.
0 - This will return a true or false depending on if the current category is somewhere beneath the target category in your directory structure. Target needs to be the id number of the category you want to know if this is below. (This is useful for some conditionals.)
{CATLEVELSDEEP} - The number of levels deep the category is, 0 being a main category, 1 a subcategory, etc.
{CATRANDOMLINK} - Returns link to a randomly selected link from the category.
-- Optional paramater: template. Defaults to <a href="{TRACKLINKURL}">{LINKTITLE}</a>
{CATSTATICNAME} - The static file name (with path if applicable) that would be generated for this category if you're using HTML generation.
0 - The total number of images in the category which are of the type typename. For example, 17 for regular images.
{CATVIEWS} - The number of unique views of the category.
{CATLASTTHREADID} - The id of the most recently posted to thread in the category.
{CATLASTHREADTITLE} - The title of the most recently posted to thread in the category.
{CATLASTPOSTERID} - The id of the last poster in the most recently posted to thread in the category.
{CATLASTPOSTERNAME} - The name of the last poster in the most recently posted to thread in the category.
{CATLASTCOMMENTDATE} - The date/time of the most recent comment posted in the category.
{CATNUMBER} - For where {NUMBER} doesn't work (see below).
{NUMBER} and {LETTER} can also be used with categories to display the order of their appearance. Using {NUMBER} they'll be numbered from 1 on up, using {LETTER} they'll be labeled from a to z.
To show the total of each type within a category while on the display images page, use {REGULARTOTAL}, {OTHERTYPETOTAL} etc. Elsewhere use CATTYPETOTAL as explained above.
To show the moderators of a category, use
<IF {CATHASMODERATORS}><!-- BEGIN MODERATORS --><a href="memberlist.php?action=profile&id={MEMBERID}" class="{MEMBERGROUPNAMESTYLE}">{MEMBERNAME}</a>,
<!-- END MODERATORS --></IF>
Rating:
4/5 based on 3 votes. The median rating is 4.
Submitted: 09/25/03 (Edited 10/23/08)
Description: Summary of each category template variable.
Views:
3751 views. Averaging 2 per day.
In the most recent 30 day period, there've been 28 views.

Print
E-Mail