Jamroom Logo Jamroom 5 Core
is now Open Source!
Follow Jamroom on Twitter!

This document applies to Jamroom 2 only!
For current Jamroom 4 Documentation, visit the main Jamroom Documentation section.

These variables work in the “calendar” row templates - that is, when the “search_area” to newsearch.php is:

  • event_title
  • event_description
  • event_location

Variable Description
{$EVENT_ID} The ID number of the Event
{$EVENT_NUMBER} The “number” the event is on the output.
{$EVENT_CREATED} The UNIX epoch timestamp of the data and tmie the Event entry was created
{$EVENT_DATE} The date as entered on the Create/Modify Event form.
{$EVENT_TIME} This is the COMPOSITE data/time stamp that is used internally by Jamroom. It will be in the format: YYYYMMDDHH
{$EVENT_HOUR12} This is the HOUR of the event in 12 hour format (i.e. 8pm would be 8)
{$EVENT_HOUR24} This is the HOUR of the event in 24 hour format (i.e. 8pm would be 20)
{$EVENT_AMPM} This will be set to “am” or “pm” depending on the time of event. This is usefull if using the {$EVENT_HOUR12} variable.
{$EVENT_DAY} This is the DAY of the event in numerical format
{$EVENT_WDAY_SHORT} This is the DAY of the event in SHORT string format (i.e. “Wed”)
{$EVENT_WDAY_LONG} This is the DAY of the event in LONG string format (i.e. “Wednesday”)
{$EVENT_MONTH} This is the MONTH of the event in numerical format (i.e. May is 5)
{$EVENT_YEAR} This is the YEAR of the event in numerical format (i.e. 2004)
{$EVENT_EPOCH_TIME} This is the time of the event represented as Epoch Time (the number of seconds elapsed since Jan 01, 1970).
{$EVENT_TITLE} This is the TITLE of the event as entered by the Jamroom Artist
{$EVENT_DESCRIPTION} This is the DESCRIPTION of the event as entered by the Jamroom Artist
{$EVENT_DESC_WORDS} The number of words in the EVENT_DESCRIPTION.
{$EVENT_LOCATION} This is the LOCATION of the event as entered by the Jamroom Artist
{$EVENT_IMAGE} link to image.php script to generate Event Image - i.e.:
http://yourdomain.com/jamroom/image.php?band_id=(number)&event_id=(number)&mode=event_image

- use this inside an IMG tag.
NOTE: if you would like the event images that are created to be “cached” (this will improve loading time), then in your template you can add the width and height to the {EVENT_IMAGE} variable like this:

<img src="{EVENT_IMAGE}&amp;width=96&amp;height=96">

- this will cause the image to be resized to 96×96 pixels using GD, then the resultant image would be cached - the next load of the same page would use the cached image instead of the full size image.

{$EVENT_IMAGE_NAME} This is the NAME of the Event image file
{$EVENT_IMAGE_TYPE} This is the file MIME TYPE of the Event image (i.e. image/jpeg)
{$EVENT_IMAGE_SIZE} This is the file SIZE (in bytes) of the Event image
{$EVENT_IMAGE_EXTENSION} This is the file EXTENSION of the Event image (i.e. jpg, png)
{$BAND_ID} This is the Artist ID of the artist who’s calendar entery the loop is currently on
{$BAND_CREATED} date artist was created (EPOCH) (i.e. 1059951557)
{$BAND_DATE1} date artist was created formatted according to $config[date1]
{$BAND_DATE2} date artist was created formatted according to $config[date2]
{$BAND_DATE3} date artist was created formatted according to $config[date3]
{$BAND_NAME} This is the Artist Name of the artist who’s calendar entery the loop is currently on
{$BAND_INFO} This is the Artist Information of the artist who’s calendar entery the loop is currently on
{$BAND_LOCATION} This is the Artist Location of the artist who’s calendar entery the loop is currently on
{$BAND_WEBSITE} This is the Artist Website of the artist who’s calendar entery the loop is currently on
{$BAND_INFLUENCE} This is the Artist Influence of the artist who’s calendar entery the loop is currently on
{$BAND_SOUNDLIKE} This is the Artist Soundlike of the artist who’s calendar entery the loop is currently on
{$BAND_IMAGE} link to image.php script to generate Band Image - i.e.:
http://yourdomain.com/jamroom/image.php?band_id=(number)&amp;mode=band_image

- use this inside an IMG tag.
NOTE: if you would like the event images that are created to be “cached” (this will improve loading time), then in your template you can add the width and height to the {EVENT_IMAGE} variable like this:

<img src="{BAND_IMAGE}&amp;width=96&amp;height=96">

- this will cause the image to be resized to 96×96 pixels using GD, then the resultant image would be cached - the next load of the same page would use the cached image instead of the full size image.

Solutions Products Support Community Company
Social Media Platform
Social Networking Software
Musician Website Manager
Community Builder
Jamroom 5
Jamroom 5 Modules
Jamroom Marketplace
Support Forum
Documentation
Support Center
Contact Support
Community Forum
Member Sites
Developers
About Us
Contact Us
Privacy Policy
©2003 - 2024 The Jamroom Network