No Left Blocks in forums with altered PHP file.

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   No Left Blocks in forums with altered PHP file.
avidn
CZ Newbie
avidn has been a member for over 19 year's 19 Year Member
usa.gif hawaii.gif
Gender: Male
Website:
Status: Offline
Joined: Oct 07, 2004
0.00 posts per day
Posts: 20
Points: 1,240
   
Before anyone says it, Yes I did search the forums, and I do have information on hiding the left blocks. It is the 2nd sticky post in this forum!

With that said, the reason I still need help is because I am using a custom theme that has different code for the left block than the standard php nuke theme.php file.

I will give example as folllows;

//if 0, use blocks.htm, if 1, use blocks-right.htm, if 2, use blocks-left.htm
//left blocks values
    global $swapleftright;

   if ($leftblockstemp == "2"){
   $swapleftright = "2"; // if 2, use right blocks template
   }
   if ($leftblockstemp == "1"){
   $swapleftright = "1"; // if 1, use left blocks template
   }
   if ($leftblockstemp == "0"){ // use default
   $swapleftright = "0";
   }
   if ($forumleftblocks == 1){   //hide or display left blocks on forums
         if (($name=='Forums') OR ($name=='Private_Messages') OR ($name=='Members_List')) { // remove left blocks for these modules //
      }
       else {
      blocks(left);
      }
   }
   else {
      blocks(left);
   }


So, do I just replace each otf the two (2) instances of

blocks(left);


with

global $name;
    if($name!=Forums)
    {
    blocks(left);
    }


or is something different needed?

Any help will be most appreciated.

This is to hide left blocks for the website forums on [ Register or login to view links on this board.]

Thanks- David



_________________
All your Xbox answers!

Back to top Reply with quote
#2   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.04 posts per day
Posts: 8089
Points: 494,430
   
Its already added look at the one line you posted:


if ($forumleftblocks == 1){   //hide or display left blocks on forums
         if (($name=='Forums') OR ($name=='Private_Messages') OR ($name=='Members_List')) { // remove left blocks for these modules //
      }


Just try adding a $forumleftblocks = 1; right above this section of code in your theme file.



_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   re: No Left Blocks in forums with altered PHP file.
avidn
CZ Newbie
avidn has been a member for over 19 year's 19 Year Member
usa.gif hawaii.gif
Gender: Male
Website:
Status: Offline
Joined: Oct 07, 2004
0.00 posts per day
Posts: 20
Points: 1,240
   
Okay I'll try that - Thanks so much for your reply -




_________________
All your Xbox answers!

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