Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
User Documentation and How To's:
Integrate Favorites into the Artist Theme page
SteveX
Ultrabubble


Joined: 30 Aug 2005
Posts: 8792
Location: Ultrabubble

Posted: 02/21/07 09:42 
Not a complete "How To" as I haven't tested this much, but this seemed to be working when I tried earlier in the year. I've posted it here in response to another thread.

It lists the artist user favorites in the theme page, one list for each user. If it works, it might need refining for other account types power users etc.

In theme.cfg:

Code
bio_faves.tpl | whichever_page.php


In bio_faves.tpl:

Code
{jr_theme_online band_id=$BAND_ID template="faves_row.tpl" tpl_dir="theme" theme="bfm01"}


In faves_row.tpl:

Code
{foreach from=$USERS key=key item=_usr name=user2}
{$_usr.USER_NICKNAME}<br>
{* Check to see if we are sharing favorites *}
{if $_usr.USER_SHOW_FAVS == 1}
{jr_ranking mode=favorite order=3 user_id=$_usr.USER_ID show=12 header_template=jr_ranking_user_favs_band_header.tpl row_template=jr_ranking_user_favs_band_row.tpl footer_template=jr_ranking_user_favs_band_footer.tpl tpl_dir="skin" skin="bfm01"}
{/if}
{/foreach}



_________________
Kulshi Mezian!

"Stranger from another planet, welcome to our hole. Just strap on your guitar and we'll play some rock and roll"

Ultrabubble create things.
Back to top
Douglas
Jamroom Team


Joined: 08 Oct 2004
Posts: 6639
Location: Tornado Alley!

Posted: 04/06/07 13:41 
Thanks Steve Wink

Maybe this should get added to the docs?


_________________
Douglas Hackney
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
User Documentation and How To's

 
Solutions
• Social Media Platform
• Social Networking Software
• Musician Website Manager
• Community Builder
Products
• Jamroom Core
• Jamroom Addons
• Jamroom Modules
• Jamroom Marketplace
Support
• Support Forum
• Documentation
• Support Center
• Contact Support
Community
• Community Forum
• Member Sites
• Developers
Company
• About Us
• Contact Us
• Privacy Policy
©2003 - 2010 Talldude Networks, LLC.