Jamroom Logo   Get Jamroom now for as low as !
The Musician Community Builder
free download!
an overview
key features
key features
Newsletter
E-mail Address:

Spotlight
TheBeat.fm
323565 "TheBeat.fm was established on the foundation and confidence that we could provide and increase exposure to independent musicians, agents and labels. After searching for scripts, we fortunately found Jamroom. Jamroom gives the musician complete control over how they market themselves - and allows us to concentrate more on marketing ourselves as a business. Jamroom has helped enable us run successful contests, promoting musicians for events, and we are even currently planning 2 major California concerts. This couldn’t have happened as efficient as it has without the support and help of Jamroom."

{jr_also_bought} {jr_also_bought} Index {jr_barcode} {jr_barcode}
 

{jr_array}


{jr_array} is used within a Jamroom template to assign indexes and values to a template array.  This is most commonly used to prepare an array for use in the {jr_ranking}, {jr_chart}, and other embeddable custom functions.

Parameters:

Name Type Required Default Description
name string yes n/a the name of the template array the key -> index value will be added to.  If the array does not exist, the function will create it.
key string yes n/a name of key (index) to add to array
value string yes n/a value to assign to key (index) in named array
explode yes/no no no If the explode parameter is given, then Jamroom will run the PHP explode() function on the value before assigning the results to the array.  The default explode separator is a comma (,).
separator string no , If you would like explode to use a different separator, you can define that in the separator param.


Example:

Example using {jr_array} to prep the "band_id" array and passing it to the {jr_ranking} embedded function:

{jr_array name="band_id" key="0" value="25"}
{jr_array name="band_id" key="1" value="36"}
{jr_array name="band_id" key="2" value="51"}
{jr_ranking mode="spotlight" band_id=$band_id}
{jr_also_bought} {jr_also_bought} page 128 of 185 {jr_barcode} {jr_barcode}
Home | Download | Support | FAQ | Demos | Members | Purchase | Marketplace | Contact | Privacy
©2003 - 2010 Talldude Networks, LLC.