Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
User Site Design, Integration and Customization:
Theme Building
Paul
Jamroom Team


Joined: 20 Aug 2003
Posts: 5341
Location: Nottingham, UK

Posted: 02/16/04 08:49 
Hi
Been trying to build a new theme by adapting one of yours.
I've put an extra heading "Contact Us" in the menu bar OK and linked it to your 'Contact Form'. It works, but it opens a new window for the form on its own. Thought maybe the form ought to fit in a seperate band page, so ....

Modified the theme.cfg as follows


Code

# main Index section (messages)

     index_header.tpl | index.php
     message_more.cfg | message_more_{MESSAGE_ID}.php
     message_text.cfg | index.php
    common_footer.tpl | index.php

# Music Section

     music_header.tpl | music.php
             song.cfg | music.php
    common_footer.tpl | music.php
song_popup_lyrics.cfg | lyrics_{SONG_ID}.php
  song_popup_info.cfg | info_{SONG_ID}.php

# Store Section

     store_header.tpl | store.php
            store.cfg | store.php
    common_footer.tpl | store.php

# About

     about_header.tpl | about.php
       about_text.tpl | about.php
    common_footer.tpl | about.php

# Contact

   contact_header.tpl | contact.php
     contact_text.tpl | contact.php
    common_footer.tpl | contact.php


Then copied about_header.tpl and about_text.tpl to contact_header.tpl and contact_text.tpl respectively. Made a few changes to the new contact templates, just so that I would know it was working.
Changed the other tpl files so that the 'Contact Us' now links to contact.php

Uploaded, built html, viewed page ....

Needless to say, it didn't work as I expected, but am I on the right track?
Cheers
Pash


_________________
Paul Asher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
Brian
Jamroom Team


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

Posted: 02/16/04 09:41 

pasher:
Hi
Been trying to build a new theme by adapting one of yours.
I've put an extra heading "Contact Us" in the menu bar OK and linked it to your 'Contact Form'. It works, but it opens a new window for the form on its own. Thought maybe the form ought to fit in a seperate band page, so ....

Modified the theme.cfg as follows


Code

# main Index section (messages)

     index_header.tpl | index.php
     message_more.cfg | message_more_{MESSAGE_ID}.php
     message_text.cfg | index.php
    common_footer.tpl | index.php

# Music Section

     music_header.tpl | music.php
             song.cfg | music.php
    common_footer.tpl | music.php
song_popup_lyrics.cfg | lyrics_{SONG_ID}.php
  song_popup_info.cfg | info_{SONG_ID}.php

# Store Section

     store_header.tpl | store.php
            store.cfg | store.php
    common_footer.tpl | store.php

# About

     about_header.tpl | about.php
       about_text.tpl | about.php
    common_footer.tpl | about.php

# Contact

   contact_header.tpl | contact.php
     contact_text.tpl | contact.php
    common_footer.tpl | contact.php


Then copied about_header.tpl and about_text.tpl to contact_header.tpl and contact_text.tpl respectively. Made a few changes to the new contact templates, just so that I would know it was working.
Changed the other tpl files so that the 'Contact Us' now links to contact.php

Uploaded, built html, viewed page ....

Needless to say, it didn't work as I expected, but am I on the right track?
Cheers
Pash


Pash -

You're definately on the right path, however the {BAND_CONTACT_FORM} is actually generated from within Jamroom, and would probably need an iframe to "embed" into a page (or a php include function call).

Hope this helps!

- Brian


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


Joined: 20 Aug 2003
Posts: 5341
Location: Nottingham, UK

Posted: 02/16/04 13:44 
Thanks for that Brian
Got it all working now, including the 'Contact Form' on a new page. I'll spend a bit of time tweaking it a bit, then I'll make it available to all here (if they want !!).
How do I do that? Send it to you for approval first, or just make it downloadable somewhere?
Cheers
Pash
PS Its running in its present state at mccajun.motagator.co.uk


_________________
Paul Asher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
Paul
Jamroom Team


Joined: 20 Aug 2003
Posts: 5341
Location: Nottingham, UK

Posted: 02/16/04 16:05 
OK - Got a bit ahead of myself there ...
The Contact the Band form doesn't seem to work in this situation.
Looked thro' the page's source code and the email address isn't actually there.

This is what I put in me 'contact_text.tpl'

Quote:
<tr>
<td width=100% colspan=2>
<table width=100% cellpadding=1 cellspacing=2 class="thMsgTable">
<tr>
<td class="thCatHead">
<?php @include("{BAND_CONTACT_FORM}"); ?>
</td>
</tr>
</table>
</td>
</tr>


Presumably this isn't the way to do it?
Thanks
Pash


_________________
Paul Asher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
Brian
Jamroom Team


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

Posted: 02/16/04 17:39 

pasher:
OK - Got a bit ahead of myself there ...
The Contact the Band form doesn't seem to work in this situation.
Looked thro' the page's source code and the email address isn't actually there.

This is what I put in me 'contact_text.tpl'

Quote:
<tr>
<td width=100% colspan=2>
<table width=100% cellpadding=1 cellspacing=2 class="thMsgTable">
<tr>
<td class="thCatHead">
<?php @include("{BAND_CONTACT_FORM}"); ?>
</td>
</tr>
</table>
</td>
</tr>


Presumably this isn't the way to do it?
Thanks
Pash


Pash -

it looks like it's not working being embedded into the form itself, since it's not resolving back to its full URL. I think I can fix it, but will need to modify the code some, but then you should be able to get it to work like above.

Hope this helps!

- Brian


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


Joined: 20 Aug 2003
Posts: 5341
Location: Nottingham, UK

Posted: 02/17/04 02:11 
Thanks Brian - let me know Very Happy
Pash


_________________
Paul Asher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
micxz



Joined: 18 Feb 2004
Posts: 10
Location: In front of my computer, CA

Posted: 02/18/04 15:38 
You could use something like:

<iframe src="{JAMROOM_URL}/contact.php?mode=cform&band_id=1&band_name={BAND_NAME}" id="id1" name="id1" marginheight="0" marginwidth="0" scrolling="yes" hspace="0" vspace="0" width="100%" height="300" frameborder="0"></iframe>

But the 'band_id=1' part will break because I cannot find a variables called, "{BAND_ID}". Hope this helps any'


_________________
--
Micxz
raspberrymedia.com - production engineer
lovedialup.com - founder
micxz.com - personal
Back to top
Brian
Jamroom Team


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

Posted: 02/18/04 15:45 

micxz:

But the 'band_id=1' part will break because I cannot find a variables called, "{BAND_ID}". Hope this helps any'


The {BAND_ID} variable should be able to work for you (it's a valid theme variable).

Hope this helps!

- Brian


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



Joined: 18 Feb 2004
Posts: 10
Location: In front of my computer, CA

Posted: 02/18/04 15:59 
OK then that solves this thread and you may want to add "{BAND_ID}" to the page:

http://www.talldude.com/jamroom/theme.shtml

because this is the only reference we have to the variables' Thanks


_________________
--
Micxz
raspberrymedia.com - production engineer
lovedialup.com - founder
micxz.com - personal
Back to top
Brian
Jamroom Team


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

Posted: 02/18/04 16:01 

micxz:
OK then that solves this thread and you may want to add "{BAND_ID}" to the page:

http://www.talldude.com/jamroom/theme.shtml

because this is the only reference we have to the variables' Thanks


Actually I need to remove the link to that guide - it is out of date.

You will always find the latest and up to date documentation directly within your Jamroom install. Just go to the Admin Menu -> Documentation and you have the Theme Designers guide right there.

Hope this helps!

- Brian


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



Joined: 18 Feb 2004
Posts: 10
Location: In front of my computer, CA

Posted: 02/18/04 16:05 
Learning so much from these forums Thanks again'


_________________
--
Micxz
raspberrymedia.com - production engineer
lovedialup.com - founder
micxz.com - personal
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.