Jamroom Logo   Try the Demo! Jamroom Demo
Buy Now! Buy Now
free download! free
download!
key features key
features
key features view
screenshots
Newsletter
E-mail Address:

Member Spotlight
Tunez Factory
102456 "Tunez Factory / Tunez Factory Records started out in late 2006 as an up and coming record label, and to push Tunez Factory further we have introduced recently a new system that will support Artists and Listeners with their music whether you are unsigned or signed. With Jamroom, Tunez Factory can now go forward and support our aims and goals for the future. Along with the help and support from the Jamroom team it was the best choice to turn to Jamroom."
{jr_gravatar} {jr_gravatar} Index {jr_html_select} {jr_html_select}
 

{jr_html_ad}

Overview:

{jr_html_ad} is used for embedding a static or rotating set of advertisements into a template.

Usage:

Place the html code for each ad that you want to rotate into its own template in your skins/<skin_name>/ads directory, where <skin_name> is replaced with your current skin, such as Cobalt:

jamroom/skins/Cobalt/ads

Each advertisement template should be named with the following conventions: ad#.tpl, where the "#" is replaced by a number, such as ad4.tpl.

 Note: It is extremely important that all templates in your ads directory be named with these conventions, and that the number portion of all templates are consecutive, beginning with 1 (i.e. templates named ad1.tpl, ad2.tpl, ad3.tpl, NOT ad2.tpl, ad4.tpl, ad7.tpl).  Also, in order for the jr_html_ad function to work correctly, the only templates you can have in your ads directory are templates with the naming conditions specified as above.  If other templates are in the ads directory, your ads will not always be displayed.

Parameters:

Name Type Required Default Description
id integer no n/a If an advertisement id is given, the ad with the specified id will be displayed.  The advertisement id is the numeric portion of the advertisement template name (i.e. the ad id of a template called ad4.tpl is 4).
skin string no Cobalt The skin parameter tells the function to look in the skins/<skin_name> directory to find ads folder from which to draw ads from.  If this is not supplied, the function will look in the Cobalt directory.
assign string no n/a optional "assign" parameter - if given, the output of the function will be assigned to a template variable of the same name.

 

Examples:

embedded {jr_html_ad} function call in template, displaying a rotating ad:

{jr_html_ad}

embedded {jr_html_ad} function call to display the ad with the advertisement id "4" inside the skins/Custom/ads directory:

{jr_html_ad id="4" skin="Custom"}
{jr_gravatar} {jr_gravatar} page 152 of 183 {jr_html_select} {jr_html_select}
Home | Download | Support | Demo | Members | Purchase | Marketplace | Contact | Privacy
Jamroom.net 4.0 | ©2003 - 2008 Talldude Networks, LLC. | Powered by TDSDK