StrataGen Blocks Left question

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   StrataGen Blocks Left question
Cohin
CZ Newbie
Cohin has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Mar 18, 2004
0.00 posts per day
Posts: 12
Points: 1,525
   
Hello everyone !
I am trying to have blocks on the left not show on certain modules. Under function themeheather I went like this:


if ($name=='Gallery') {
/* Don't display it. */
}
else
if ($name=='Content') {
/* Don't display it. */
}
else
if ($name=='Forums') {
/* Don't display it. */
}
else
if ($name=='Members_List') {
/* Don't display it. */
}
else
if ($name=='Private_Messages') {
/* Don't display it. */
}
else {
blocks(left);
}

and the blocks on the left keep showing up.I did not even error reports. Also, the " ?> " at the end of the code is not marked with the characteristic yellowish marking... I do not know if it has anything to do...
Please tell me how to make the left blocks disappear on certain modules.
Thank you



Back to top Reply with quote
#2   re: StrataGen Blocks Left question
Cohin
CZ Newbie
Cohin has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Mar 18, 2004
0.00 posts per day
Posts: 12
Points: 1,525
   
Thank you but I found the answer on my own icon_mrgreen.gif . For those interested don't forget to add $name to the list of global variables in themeheader() this solves the issue:


global $user, $banners, $sitename, $slogan, $cookie, $prefix, $dbi, $name;



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum