Jamroom Logo
Newsletter
Member Spotlight
416975
waxdj.com
"After several months and 40-50 different product installs later, waxdj.com was born. Settling on Jamroom, we create a place where DJs all over could easily create their own homepages and upload their latest mixes for all their fans. Jamroom was quite easy to modify and the languages and templates helped us to convert it from a software package for bands, to one for DJs. And because of the excellent design of Jamroom, we can modify it to our hearts content and get it to do any and everything we want it to!"
Follow Jamroom on Twitter!

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

{jr_comment} Index {jr_counts}

{jr_counter}


The {jr_counter} template function is used to embed a page counter into a template so the count will show up in the Artist "stats" section.  This function should be used outside of any Artist/Member theme templates, and is generally used when constructing custom ranking/search/chart output that is used on the artist/member profile page, but is not generated by the Jamroom Theme generator.

Parameters:

Name Type Required Default Description
type string no "page" The "type" parameter tells Jamroom the type of counter to create a count for.  The default is "page" which means that a count for a page will be created.
band_id integer yes n/a This is the band_id to record the hit for.
pagename string no The name of the template file the function is embedded within The "pagename" parameter tells Jamroom the "name" that the counts will be visibly associated with in the Artist's stats section.


Example:

Example using {jr_counter} recording a hit for a page called "Your Custom Page Name" for band_id 5:

{jr_counter band_id="5" pagename="Your Custom Page Name"}

{jr_comment} page 136 of 185 {jr_counts}
Solutions Products Support Community Company
Social Media Platform
Social Networking Software
Musician Website Manager
Community Builder
Jamroom Core
Jamroom Addons
Jamroom Modules
Jamroom Marketplace
Support Forum
Documentation
Support Center
Contact Support
Community Forum
Member Sites
Developers
About Us
Contact Us
Privacy Policy
©2003 - 2012 Talldude Networks, LLC.