WSN Gallery https://scripts.webmastersite.net/wsngallery/manual en-us Menu Item Variables Menus are configured at Admin -> Customizations -> Menu Manager and are marked in templates with areas. https://scripts.webmastersite.net/wsngallery/manual/templates-and-styles/templates/template-variables/menu-item-variables-629.html Thu, 01 May 2014 02:23:33 GMT https://scripts.webmastersite.net/wsngallery/manual/templates-and-styles/templates/template-variables/menu-item-variables-629.html
{MENUITEMLABEL} - The label (aka title or name) for the menu item which will be shown to people.
{MENUITEMURL} - The URL of the destination page the user is taken to when clicking the menu item.
{MENUITEMACTIVE} - True if we're already viewing the page of the menu item, otherwise false (for use in conditionals).
{MENUITEMISFIRST} - True if it's the first item in the menu, otherwise false (for use in conditionals).
{MENUITEMISLAST} - True if it's the last item in the menu, otherwise false (for use in conditionals).]]>
Sponsorship Template Variables Calling information about sponsorships into your templates. https://scripts.webmastersite.net/wsngallery/manual/templates-and-styles/templates/template-variables/sponsorship-template-variables-560.html Tue, 23 Aug 2011 00:23:51 GMT https://scripts.webmastersite.net/wsngallery/manual/templates-and-styles/templates/template-variables/sponsorship-template-variables-560.html
<ul>
<!-- BEGIN SPONSORED LIST -->
<li>{TYPENAME} costs {LANG_GENERAL_CURRENCY}{PRICE} for {DURATION} days.</li>
<!-- END SPONSORED LIST -->
</ul>


Sometimes, however, you need more a more flexible display or you need to display it somewhere other than the 'submit listing' page. For this purpose, some sponsorship template variables have been provided which will work in any template (including the wrapper):

{SPONSORDATAGETCHARGEBYTYPE[typename]} -- Displays the price for the given typename, which can be a listing type or a usergroup number.
{SPONSORDATAGETDURATIONBYTYPE[typename]} -- Displays the sponsorship duration (in days) for the given typename, which can be a listing type or a usergroup number.
{SPONSORDATATYPEISSPONSORED[typename]} -- Returns true if the given listing type or usergroup number is a sponsored type, or false otherwise.
{SPONSORDATEGETPRICEPERFORQUANTITY[typename <,> quantity]} -- For bulk sponsorship, gives the price per listing for the given listing type and quantity.

You can also get info about bulk sponsorship purchases by a member:
{MEMBERBULKPURCHASEDTOTAL} - The number of submissions they bulk purchased.
{MEMBERBULKPURCHASEDUSED} - The number of bulk purchased submissions they've done so far.
{MEMBERBULKPURCHASEDREMAINING} - The number of bulk purchased submissions they have left.
{MEMBERBULKPURCHASEDTYPE} - The listing type they've bulk purchased.

These also work as {THISMEMBER for the person viewing the page, so to show them the number of submissions they have left you'd do this:
<IF {THISMEMBERBULKPURCHASEDTOTAL} and {THISMEMBERBULKPURCHASEDREMAINING}>
<p>You can make {THISMEMBERBULKPURCHASEDREMAINING} more {THISMEMBERBULKPURCHASEDTYPE} submissions: <a href="suggest.php?action=addlink">Submit</a></p>
<ELSE IF {THISMEMBERBULKPURCHASEDTOTAL}>
<p>You've used up all your bulk submissions: <a href="index.php?action=bulksponsor">Buy More</a></p>
<ELSE>
<p>You haven't purchased any submissions: <a href="index.php?action=bulksponsor">Buy Some</a></p>
</IF>


For listing type sponsorship there are additional template variables available in specific locations, such ase the submit listing page and the listing sponsorship page. See scripts.webmastersite.net/...g-type-sponsorship-21.html for the list of those template variables.]]>
Feed Variables RSS feed template variables for the feeds which are associated to particular listings. https://scripts.webmastersite.net/wsngallery/manual/templates-and-styles/templates/template-variables/feed-variables-440.html Sat, 05 Jan 2008 18:01:45 GMT https://scripts.webmastersite.net/wsngallery/manual/templates-and-styles/templates/template-variables/feed-variables-440.html
<!-- BEGIN FEEDS -->
<a href="{FEEDLINK}">{FEEDTITLE}</a> by {FEEDAUTHOR} on {FEEDPUBDATE}:
<br>{FEEDDESCRIPTION}
<br>
<!-- END FEEDS -->
-- you'll find something like the above in the listing details template in versions 8.0 or older. in WSN 9 or later, go to Admin Panel -> Listings -> Listing Fields and edit the RSS Feed URL field, and look in the "Custom Display HTML" box.

{FEEDLINK} - The URL destination of the feed item.
{FEEDTITLE} - The title of the feed item.
{FEEDDESCRIPTION} - The description of the feed item.
{FEEDDESCRIPTIONSTRIPPED} - The feed item description with all HTML removed.
-- Optional parameter: number of characters to cut off at.
{FEEDAUTHOR} - The author of the feed, as credited in the RSS.
{FEEDPUBDATE} - The publication date as credited in the RSS.
{FEEDCANVIEW} - True if the visitor can view the feed, false if not.]]>
Report Variables Template variables which can be used in reports of listings/comments. https://scripts.webmastersite.net/wsngallery/manual/templates-and-styles/templates/template-variables/report-variables-344.html Mon, 02 Oct 2006 03:59:10 GMT https://scripts.webmastersite.net/wsngallery/manual/templates-and-styles/templates/template-variables/report-variables-344.html
{REPORTTYPE} - Contains "topic" for listing reports, "post" for comment reports.
{REPORTREASON} - The reason the reporter gave for reporting.
{REPORTDATE} - The date and time that the report was made.
{REPORTRESOLVED} - True if the report has been resolved by a moderator, or false if it hasn't. For use in conditionals.
{REPORTACTION} - The action taken to resolve the report (if resolved).
{REPORTMODERATORPROFILEURL} - The profile URL of the moderator who resolved the report.
{REPORTMODERATORNAME} - The name of the moderator who resolved the report.
{REPORTDISCUSSIONURL} - If you've selected at Admin Panel -> Settings -> General to send report to a special forum in WSN Forum, this is the forum thread URL where the report is being discussed.
{REPORTDISCUSSIONREPLIES} - If you've selected at Admin Panel -> Settings -> General to send report to a special forum in WSN Forum, this is the number of replies to the forum thread where the report is being discussed.
{REPORTDISCUSSIONLASTPROFILEURL} - If you've selected at Admin Panel -> Settings -> General to send report to a special forum in WSN Forum, this is the profile url of the last poster in the forum thread where the report is being discussed.
{REPORTDISCUSSIONLASTPOSTERNAME} - If you've selected at Admin Panel -> Settings -> General to send report to a special forum in WSN Forum, this is the name of the last poster in the forum thread where the report is being discussed.
{REPORTDISCUSSIONLASTPOSTURL} - If you've selected at Admin Panel -> Settings -> General to send report to a special forum in WSN Forum, this is the url link to the last post of the forum thread where the report is being discussed.

These template vars can be used in the language item email_reportlinkbody, which is the body text emailed to the site admins for listing reports if you've selected to email reports:

{COMMENT} - The explanation written by the reporter.
{PROBLEMTYPE} - The type of problem, as chosen from the selector on the report page.
All {LINK variables will show the appropriate values of the listing which has been reported.
All {CAT variables will show the appropriate values of the category of the listing which has been reported.
All {MEMBER variables will show the appropriate values of the member who reported the listing.

These template vars can be used in the language item email_reportcommentbody, which is the body text emailed to the site admins for comment reports if you've selected to email reports:

{COMMENT} - The explanation written by the reporter.
{PROBLEMTYPE} - The type of problem, as chosen from the selector on the report page.
All {COMMENT variables will show the appropriate values of the comment which has been reported.
All {LINK variables will show the appropriate values of the listing which reported comment is associated with.
All {CAT variables will show the appropriate values of the category of the comment which has been reported.
All {MEMBER variables will show the appropriate values of the member who reported the comment.]]>
Event Variables Template variables for calendar events. https://scripts.webmastersite.net/wsngallery/manual/templates-and-styles/templates/template-variables/event-variables-337.html Mon, 11 Sep 2006 21:45:43 GMT https://scripts.webmastersite.net/wsngallery/manual/templates-and-styles/templates/template-variables/event-variables-337.html
{EVENTTITLE} - The title of the event.
{EVENTDESCRIPTION} - A description of the event.
-- Optional parameter: number of characters.
{EVENTSTARTDATE} - The date when the event begins.
{EVENTENDDATE} - The date when the event ends.
{EVENTBEGINSTIME} - The time when the event begins.
{EVENTFINISHESTIME} - The time when the event ends.
{EVENTINFUTURE} - True if the event has not yet happened.
{EVENTTHERE} - True if the viewer has joined the event.
{EVENTJOINEDLIST} - A list of the people who have joined.
-- Optional parameter: template of how it should be displayed. Default is <a href="memberlist.php?action=profile&id={MEMBERID}" class="{MEMBERGROUPNAMESTYLE}">{MEMBERNAME}</a>
{EVENTCANEDIT} - True if the viewer can edit the event.
{EVENTCANDELETE} - True if the viewer can delete the event.
{EVENTVALIDATED} - True if the event has been approved.
{EVENTOWNERID} - The id of the member who owns (created) the event.
{EVENTADDEDDATE} - The date/time when the event was added to the calendar (not related to when the event takes place).

All the member template variables can also be used , in this context they'll show information about the owner of the event.]]>