Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
Jamroom Suggestions:
Shorter and better urls for the next release?
Shayan



Joined: 29 Jul 2006
Posts: 49

Posted: 03/22/07 03:36 
it has {$system_name}

I tried assigning to that

and even tried with $title on index_artist_header.tpl

but didn't work.

Back to top
SteveX
Ultrabubble


Joined: 30 Aug 2005
Posts: 8792
Location: Ultrabubble

Posted: 03/22/07 06:09 
This is how it is done in the artist theme for Cobalt. If you change the name of your template to whatever your SKIN overall header template is called, and change the Skin name, there should be no reason why it won't work.

Code
  {if $BAND_QUOTA < 0}
    {jr_theme_template template="jr_overall_header.tpl" tpl_dir="skin" skin="Cobalt" title="Member: `$BAND_NAME`"}
  {else}
    {jr_theme_template template="jr_overall_header.tpl" tpl_dir="skin" skin="Cobalt" title="Artist: `$BAND_NAME`"}
  {/if}


Cobalt's jr_overall_header.tpl contains this:

Code
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>{$title|default:"Welcome to `$system_name`!"}</title>
....

This works out of the box everytime with Cobalt. If you have copied this correctly into your custom template and it still does not work, we can look for something that might be conflicting with it, so post your relevant code and links to the site.


_________________
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
Shayan



Joined: 29 Jul 2006
Posts: 49

Posted: 03/22/07 09:09 
ok... I am not sure. May be Evolution template doesn't have it. here is what the templates has


index_header.tpl (skin)

Quote:
<head>
<title>Welcome to {$system_name}!</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate, post-check=0, pre-check=0">
<meta http-equiv="Pragma" content="no-cache">
<meta name="description" content="{$meta_description}">
<meta name="keywords" content="{$meta_keywords}">


and this is what I have in

index_home_header.tpl

Quote:
{if $BAND_QUOTA < 0}
{jr_theme_template template="index_header.tpl" tpl_dir="skin" skin="Evolution" title="Member: `$BAND_NAME`"}
{else}
{jr_theme_template template="index_header.tpl" tpl_dir="skin" skin="Evolution" title="Artist: `$BAND_NAME`"}
{/if}


{jr_theme_template template="index_menu.tpl" type="skin"}


{$HIDDEN_COUNTER}


<!-- BEGIN MAIN CONTAINER -->
<div id="container">


I tried changing the $system_name to $title but seems to have no effect. But if i add static lines it works but not the parameters.

Back to top
SteveX
Ultrabubble


Joined: 30 Aug 2005
Posts: 8792
Location: Ultrabubble

Posted: 03/22/07 09:37 
Try changing your title line in index_header.tpl to this out of Cobalt:

Code
<title>{$title|default:"Welcome to `$system_name`!"}</title>

Does that give the system name as the title?


_________________
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
SteveX
Ultrabubble


Joined: 30 Aug 2005
Posts: 8792
Location: Ultrabubble

Posted: 03/22/07 09:55 
$system_name should be globally available. $title should be available because we are passing it in through jr_theme_template which (uniquely within jamroom) passes any parameters through to the called template.
http://www.jamroom.net/Jamroom3_jr_theme_template

Guessing as to why it doesn't work, perhaps there is $title being used elsewhere, althugh I wouldn't have thought that would make any difference. Long shot, but you could try changing $title to $titlex in both the overall_header and the embedded call.


_________________
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
Shayan



Joined: 29 Jul 2006
Posts: 49

Posted: 03/22/07 20:42 
I am not sure what to make of it. i couldn't find a difference but it doesn't work in evolution template perhaps the parameters were not passed or tags were defined properly.

Back to top
SteveX
Ultrabubble


Joined: 30 Aug 2005
Posts: 8792
Location: Ultrabubble

Posted: 03/23/07 02:27 
It does seem strange, and looking at the demo of evo on the oinkba site sure enough there are no artist name page titles.

What happens with these variables? Are these given values? (you will have to have set them in the admin cp):

Code
<meta name="description" content="{$meta_description}">
<meta name="keywords" content="{$meta_keywords}">



_________________
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
Display posts from previous:   
User Support Forum Archive (Read Only)
Jamroom Suggestions

< Previous12
 
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.