You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 305 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Hiding left blocks only on certain modules [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Plasma
Lieutenant
Lieutenant


Joined: Jan 02, 2004
Posts: 262


PostPosted: Sat May 13, 2006 5:48 am Reply with quoteBack to top

I have this line of code:

Code:
if ($name=='Forums') { /* Don't display it. */ } else { blocks(left); }


but how would I add other modules to that so the left blocks won't show when the module is loaded? in my case, the module will be gallery2.

thank you for you help.
Find all posts by PlasmaView user's profileSend private message
Plasma
Lieutenant
Lieutenant


Joined: Jan 02, 2004
Posts: 262


PostPosted: Sat May 13, 2006 6:02 am Reply with quoteBack to top

nevermind, i found it..

Code:
if ($name=='Forums') { /* Don't display it. */ } else if ($name=='gallery2') { /* Don't display it. */ } else { blocks(left); }
Find all posts by PlasmaView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12482


PostPosted: Sun May 14, 2006 7:07 pm Reply with quoteBack to top

Or you can do it even easier with more conditional logic
Code:

if (($name=='Forums') OR ($name=='gallery2'))

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
Plasma
Lieutenant
Lieutenant


Joined: Jan 02, 2004
Posts: 262


PostPosted: Thu Apr 19, 2007 2:13 pm Reply with quoteBack to top

Have a new issue. this theme doesn't have the same setup as listed above. could someone look at it and suggest how I would hide the left blocks in the forum? thx

for some reason I cannot post the code, so here is a link to a txt file that has the code:

"removed link"


Last edited by Plasma on Fri Apr 20, 2007 5:25 pm; edited 1 time in total
Find all posts by PlasmaView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12482


PostPosted: Thu Apr 19, 2007 8:44 pm Reply with quoteBack to top

I'm not sure what the $swapleftright is supposed to do in this code, but the relevant line to modify is
Code:

blocks(left);

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
Plasma
Lieutenant
Lieutenant


Joined: Jan 02, 2004
Posts: 262


PostPosted: Fri Apr 20, 2007 3:30 am Reply with quoteBack to top

Evaders99 wrote:
I'm not sure what the $swapleftright is supposed to do in this code, but the relevant line to modify is
Code:

blocks(left);


i've tried modifing it according to what was posted above, but I just get an error and the website won't load. could you repost the correct way to modify the

blocks(left);

so I can try it again?
Find all posts by PlasmaView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12482


PostPosted: Fri Apr 20, 2007 11:30 am Reply with quoteBack to top

I don't see why the top code does not work. It should be fine

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
Plasma
Lieutenant
Lieutenant


Joined: Jan 02, 2004
Posts: 262


PostPosted: Fri Apr 20, 2007 5:25 pm Reply with quoteBack to top

got it working . thx
Find all posts by PlasmaView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.151 Seconds - 467 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::