Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
User Site Design, Integration and Customization:
enable/disable ratings and results
djmerlyn
Jamroom Ustad


Joined: 18 Dec 2003
Posts: 13497
Location: Behind You

Posted: 11/08/04 03:16 
How do I write the artist, and song, ratings and results into the theme, in a way that it will show/hide depending on the setting in settings.cfg.php?

Thank You!


_________________
Pro JR Hosting, now 50% off!
-100% Guaranteed

"more server and network power than any host, dedicated to your jamroom site"
Back to top
rekrapt



Joined: 02 Oct 2004
Posts: 308
Location: Gulfport, MS

Posted: 11/08/04 10:45 
Do you mean in the .tpl?

For ratings it is


Code

<?php if ({QUOTA_RATE} == 'yes') { ?>
Whatever HTML you want here...
<?php } ?>


I'm sure it is similar for the other items.

Tom
http://www.tparker.net

Back to top
djmerlyn
Jamroom Ustad


Joined: 18 Dec 2003
Posts: 13497
Location: Behind You

Posted: 11/08/04 11:55 
Yeah, I already have that in the templates...

But I want the rating and results to disappear from the templates if ratings are turned off in the settings.cfg.php file, as well as disable the rating form.

For some reason I can't get that to happen.

hmm


_________________
Pro JR Hosting, now 50% off!
-100% Guaranteed

"more server and network power than any host, dedicated to your jamroom site"
Back to top
rekrapt



Joined: 02 Oct 2004
Posts: 308
Location: Gulfport, MS

Posted: 11/08/04 17:45 
I'm not sure I understand you. You want the code itself to not be in the template if those functions are disabled?

Tom

Back to top
djmerlyn
Jamroom Ustad


Joined: 18 Dec 2003
Posts: 13497
Location: Behind You

Posted: 11/08/04 18:23 
You got it...

If you disable stations or calendar for a quota the stations and calendar link doesn't show up in the template...how to do that with the ratings and results?

hmm...there must be a way Question

Wink


_________________
Pro JR Hosting, now 50% off!
-100% Guaranteed

"more server and network power than any host, dedicated to your jamroom site"
Back to top
Brian
Jamroom Team


Joined: 09 Jul 2003
Posts: 37583
Location: Seattle, WA

Posted: 11/09/04 16:07 

djmerlyn:
How do I write the artist, and song, ratings and results into the theme, in a way that it will show/hide depending on the setting in settings.cfg.php?

Thank You!


Sorry for not answering sooner DJ - the variable(s) you need (from the settings.cfg.php file) to do this will be in 2.15 - sorry for overlooking them for so long Wink

- Brian


_________________
Make sure and check out:
* The Jamroom FAQ
* The Jamroom Documentation
Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
User Site Design, Integration and Customization

 
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.