WSN Gallery
Featuresspacer Showcasespacer Reviewsspacer Demosspacer Purchasespacer Manualspacer Support
Image Variables
Image Variables
By Paul

Main variables
{IMAGEID} - The id number of the image.
{IMAGETITLE} - The title of the image.
{IMAGEDESCRIPTION} - Description of the image.
-- Optional paramater: {IMAGEDESCRIPTION[x]} will trim the description to x characters.
{IMAGEDESCRIPTIONSENTENCE} - The first sentence of the desciption.
{IMAGECATID} - The id number of the category which this image is in.
{IMAGECATNAME} - The name of the category this image is in.
{IMAGEORIGINALCATNAME} - The name of the original category of an aliased image (or just regular category name otherwise).
{IMAGEEMAIL} - The email address provided when the image was submitted.
{IMAGEHITS} - Number of unique views of the image.
{IMAGENUMCOMMENTS} - Number of comments posted about this image.
{IMAGEOWNERID} - Member id number of the person who submitted the image.
{IMAGETYPE} - The type of this image (regular, etc.)
{IMAGEDATE} - The date on which this image was first submitted.
{IMAGELASTEDITDATE} - The date on which this image was last edited.
{IMAGENEW} - Contains the html to display the "new" image if the image is new, otherwise it's empty.
{IMAGEUPDATED} - Contains the html to display the "updated" image if the image is updated, otherwise it's empty.
{IMAGEHITSOUTTEMP} - Number of views over last admin-defined number of days.
{IMAGEHITSOUTPERDAY} - Number of unique views per day.
{IMAGEHITSOUTPERMONTH} - Number of unique views per month.
{IMAGEDAYSOLD} - The number of days ago the image was submitted.
{IMAGEEXPIREDAYS} - Days until image expires, if it is set to expire.
{IMAGEFUNDS} - Funds remaining for this image from member purchasing image type promotion.
{IMAGEVIEWERS} - List of people who've viewed the image [if activated]
{IMAGETHREADVIWERS} - List of people who've viewed the associated comments thread [if activated]
{IMAGEADMIN} - If the viewer has permission to edit the image, contains the edit image/link... otherwise empty.
{IMAGENUMALIASES} - The number of aliases the image has.
{IMAGEALIASEDIN} - A list of the categories this image is aliased into.
{IMAGEIMPORTANCE} - The importance of the image based on the formula defined in your admin panel.
{IMAGEIMPORTANCENUMBER} - The ranking of the image ordered by importance.

Voting variables
{IMAGERATING} - The rating, as a decimal, of the image.
{IMAGEVOTES} - Number of votes cast for the image.
{IMAGESUMOFVOTES} - The sum of all vote values cast for this image.
{IMAGESTARS} - HTML to display a number of stars equivilant to the image's rating.
{IMAGEVOTERIPS} - List of IP addresses of the people who have voted for the image.
{IMAGEVOTERIDS} - Currently N/A, should be list of member ids numbers of people who've voted for the image.
{IMAGEMEDIANRATING} - The median rating of the image.
-- Optional parameter: field, to get median for custom rating fields. {IMAGEMEDIANRATING[stylerating]} gets the average style rating.

Attachment variables
{IMAGEFILENAME} - The filename on disk of the attached image file -- this will be a long randomized string.
{IMAGEFILETITLE} - The readable submitted file name of the file, suitable for display.
{IMAGEDOWNLOADS} - The total (non-unique) number of times the attached file has been viewed.
{IMAGEKB} - Size of attachment file in KB.
{IMAGEXWIDTH} - The width of image attachment in pixels.
{IMAGEYHEIGHT} - The height of image attachement in pixels.

Note: For custom attachment variables, insert the field name after IMAGE. For example, {IMAGEMYATTACHFIELDKB} would give the size in KB of a custom attachment field named myattach.

Misc.
{IMAGENAV} - Contains the navigation path of the categories to get to the image.
{IMAGETYPESELECTOR} - The <option value...> content of the image type selector.
{IMAGEHIDESELECTOR} - Contains <option value...> content of the yes/no selector for hiding an image.
{IMAGEVALIDATED} - 0 if image is unvalidated, 1 if it is validated.
{IMAGEHIDE} - 0 if image is hidden, 1 is visible.
{IMAGEISREAD} - 0 (false) if the image has not been visitied by the user, 1 (true) if it has.
{IMAGECOMMENTSREAD} - 0 (false) if the most recent comment in the associated comments thread has not been read by the user, 1 (true) if it has.
{IMAGEISNEW} - 0 if image is old, 1 if new.
{IMAGEISUPDATEDBOOL} - 0 if image hasn't been recently updated, 1 if it has been.

Rating:


0/5 based on 0 votes. The median rating is 0.

Submitted: 12/01/03 (Edited 02/09/06)

Description: Explanation of template variables related to displaying information about images.

Views: 711 views. Averaging 0 per day.
In the most recent 30 day period, there've been 0 views.

Previous Article | Next Article

Home    |    Features    |    Showcase    |    Reviews    |    Demos    |    Purchase    |    Manual    |    Support