Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
User Site Design, Integration and Customization:
Smarty JR Vari's
504pro



Joined: 29 Feb 2004
Posts: 551
Location: New Orleans

Posted: 08/25/04 17:17 
is there a smarty guide for JR to show what varibles can be used in the templates?


_________________
Dan the Man
Back to top
cabaz777



Joined: 08 Sep 2003
Posts: 147

Posted: 08/25/04 21:36 
login your installed JR as admin, then click "documentation" and finally "theme developer guide"
variables to be used are there. Wink

Back to top
504pro



Joined: 29 Feb 2004
Posts: 551
Location: New Orleans

Posted: 08/26/04 02:53 
k, thx


_________________
Dan the Man
Back to top
504pro



Joined: 29 Feb 2004
Posts: 551
Location: New Orleans

Posted: 08/26/04 03:31 
tried the varible and got this error...

Fatal error: Smarty error: [in /usr/local/psa/home/vhosts/neworleansbands.net/httpdocs/jam_room/templates/contact/jamjam.tpl line 21]: syntax error: unrecognized tag 'BAND_IMAGE_GD' (Smarty_Compiler.class.php, line 551) in /usr/local/psa/home/vhosts/neworleansbands.net/httpdocs/jam_room/include/smarty/libs/Smarty.class.php on line 1102

any idea why????

Danny


_________________
Dan the Man
Back to top
Brian
Jamroom Team


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

Posted: 08/26/04 08:23 

504pro:
is there a smarty guide for JR to show what varibles can be used in the templates?



Currently the Smarty variables are ONLY used in the jamroom/template tree - they are NOT used in the Jamroom themes.

If you need a list of all available Jamroom Theme variables, then use the Theme developers guide, otherwise check out the "Jamroom Playlist Viewer" documentation for variables you can use in the playlists.

Which template are you trying to use Smarty for?

Thanks!

- Brian


_________________
Make sure and check out:
* The Jamroom FAQ
* The Jamroom Documentation
Back to top
504pro



Joined: 29 Feb 2004
Posts: 551
Location: New Orleans

Posted: 08/26/04 15:09 
i made custom contacts for each theme and wanted to throw band image on the contact form. thats all. it has thier name and i thought it look cool with the band pic too.....

its not that big a deal. just an idea i had....


_________________
Dan the Man
Back to top
Brian
Jamroom Team


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

Posted: 08/26/04 17:41 

504pro:
i made custom contacts for each theme and wanted to throw band image on the contact form. thats all. it has thier name and i thought it look cool with the band pic too.....

its not that big a deal. just an idea i had....


Dan - to get the band image you would do it like this:


Code

<img src="{$JAMROOM_URL}/image.php?mode=band_image&band_id={$BAND_ID}&width=(width)&height=(height)" height=(height) width=(width) border=0>


Of course substitute the height and width you want with the right height and width.

Hope this helps!

- Brian


_________________
Make sure and check out:
* The Jamroom FAQ
* The Jamroom Documentation

Last edited by Brian on 08/27/04 22:11; edited 1 time in total
Back to top
504pro



Joined: 29 Feb 2004
Posts: 551
Location: New Orleans

Posted: 08/26/04 19:42 
thx man! always a big help....


_________________
Dan the Man
Back to top
504pro



Joined: 29 Feb 2004
Posts: 551
Location: New Orleans

Posted: 08/27/04 18:42 
Brian, I tried what you said and got this error....

Fatal error: Smarty error: [in /usr/local/psa/home/vhosts/neworleansbands.net/httpdocs/jam_room/templates/contact/jamjam.tpl line 21]: syntax error: unrecognized tag 'BAND_ID' (Smarty_Compiler.class.php, line 551) in /usr/local/psa/home/vhosts/neworleansbands.net/httpdocs/jam_room/include/smarty/libs/Smarty.class.php on line 1102

i messed with it and added a dollar sign to before (BAND_ID), like this: ($BAND_ID) and it worked. so the correct way to call the band image of the band you are contacting to put on the form is:

<img src="{$JAMROOM_URL}/image.php?mode=band_image&band_id={$BAND_ID}&width=100&height=100" height=100 width=100 border=0>

Just thought I mention it so others would not get the same error if they tried the first code. Thx Man!


_________________
Dan the Man
Back to top
Brian
Jamroom Team


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

Posted: 08/27/04 22:12 

504pro:
Brian, I tried what you said and got this error....

Fatal error: Smarty error: [in /usr/local/psa/home/vhosts/neworleansbands.net/httpdocs/jam_room/templates/contact/jamjam.tpl line 21]: syntax error: unrecognized tag 'BAND_ID' (Smarty_Compiler.class.php, line 551) in /usr/local/psa/home/vhosts/neworleansbands.net/httpdocs/jam_room/include/smarty/libs/Smarty.class.php on line 1102

i messed with it and added a dollar sign to before (BAND_ID), like this: ($BAND_ID) and it worked. so the correct way to call the band image of the band you are contacting to put on the form is:

<img src="{$JAMROOM_URL}/image.php?mode=band_image&band_id={$BAND_ID}&width=100&height=100" height=100 width=100 border=0>

Just thought I mention it so others would not get the same error if they tried the first code. Thx Man!


Dan -

you're correct, my mistake. All Smarty variables must have the $ in them or they wont work.

Thanks!

- Brian


_________________
Make sure and check out:
* The Jamroom FAQ
* The Jamroom Documentation
Back to top
Intro2Music



Joined: 04 Feb 2004
Posts: 427
Location: UK

Posted: 10/31/04 11:41 
I've just upgraded from 2.13 to 2.14 and a curious thing has happened to my login notes. well, not all of them, just the one. I've been getting this error...


Quote:

Fatal error: Smarty error: [in /homepages/24/d98395370/htdocs/group/associate/creative/musical1/templates/login/login_note_4.tpl line 23]: syntax error: unrecognized tag: USER_NICKNAME (Smarty_Compiler.class.php, line 403) in /homepages/24/d98395370/htdocs/group/associate/creative/musical1/include/smarty/libs/Smarty.class.php on line 1102


The funny thing is, I use this same USER_NICKNAME (with $) on another quota plan note and it works fine. I've tried changing the variable to USER_FULLNAME and I get a similar error. I've tried with and without the $ but it makes the same error.

Any ideas anybody?

Mick


_________________
www.musical1.com
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.