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, 52 guest(s) and 2 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Removing right hand side blocks in the Forums module [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Guest







PostPosted: Fri Feb 04, 2005 7:02 pm Reply with quoteBack to top

What the subject says. How do I remove the blocks on the right for the forums module?
Find all posts by Anonymous
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12383


PostPosted: Fri Feb 04, 2005 7:30 pm Reply with quoteBack to top

Why are right-hand blocks displaying on the Forums? If they do, you'll want to add an $index = 0; line to the beginning of the forums module file.

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







PostPosted: Sat Feb 05, 2005 4:53 pm Reply with quoteBack to top

Doesn't work
Find all posts by Anonymous
Xyberian
Colonel
Colonel


Joined: Mar 14, 2004
Posts: 1921

Location: Behind you

PostPosted: Sat Feb 05, 2005 7:00 pm Reply with quoteBack to top

global $index;
$index = 1;

If this does not working, open modules/Forums/index.php and add them at the beginning.

_________________
NukeKorea Dev. Network.
NukeKorea Laboratories
Find all posts by XyberianView user's profileSend private messageVisit poster's website
Guest







PostPosted: Sat Feb 05, 2005 11:08 pm Reply with quoteBack to top

Again, that doesnt work. I think that it's because of the NSN_Blue theme.
Find all posts by Anonymous
nukelover
Sergeant
Sergeant


Joined: Dec 28, 2003
Posts: 87


PostPosted: Sun Feb 06, 2005 12:44 am Reply with quoteBack to top

i had save this when i started nuke hope it helps
(its not my code )

Code:
This is controlled by the function themeheader located in theme.php under each theme directory.
 I already hacked this file up for you to make it easier.

Explanation of what I did: In the function themeheader, I added a new global variable
called $turn_leftblocks_off like this:

Code:
global $banners, $turn_leftblocks_off; 

Then I changed this line:
Code:
blocks(left);

to read like this:
Code:

if (isset($turn_leftblocks_off) && $turn_leftblocks_off) {
    blocks(none);
} else {
    blocks(left);
}


Whichever pages you do not want left blocks displayed, just add this new variable right below where
 you add mainfile.php and set it to true like this:
Code:
require_once('mainfile.php');
$turn_leftblocks_off = true;

If you want left blocks displayed on any page, do not use this variable.
Find all posts by nukeloverView user's profileSend private message
Guest







PostPosted: Sun Feb 06, 2005 2:09 am Reply with quoteBack to top

I changed the left to right, and something interesting happened- the home page displayed both the right hand side blocks on both sides, and the forums took off the left hand side blocks.
Find all posts by Anonymous
Guest







PostPosted: Sun Feb 06, 2005 2:19 am Reply with quoteBack to top

YES

It worked! I found out that blocks(right); is in themefooter, not themeheader.
Find all posts by Anonymous
__FFJJ__
Nuke Cadet
Nuke Cadet


Joined: Aug 25, 2005
Posts: 5


PostPosted: Sun Aug 28, 2005 8:47 pm Reply with quoteBack to top

ok im sry but im confused, i only want left blocks removed from the forums page and cpl other not the whole site, so should i add the variable code at the bottom to select pages like modules.php?name=Private_Messages and modules.php?name=Forums

or do i have to have that code in the theme.php and then add that variable to the pages that i want to remove them, caues im confused...sry
Find all posts by __FFJJ__View user's profileSend private message
__FFJJ__
Nuke Cadet
Nuke Cadet


Joined: Aug 25, 2005
Posts: 5


PostPosted: Sun Aug 28, 2005 9:09 pm Reply with quoteBack to top

nvm i got it the first code goes in the theme.php and the second code goes in the modules.php thats how i got mine to work...
Find all posts by __FFJJ__View user's profileSend private message
__FFJJ__
Nuke Cadet
Nuke Cadet


Joined: Aug 25, 2005
Posts: 5


PostPosted: Sun Aug 28, 2005 9:14 pm Reply with quoteBack to top

ok maybe not now every page that is linked to modules.php is missing left blocks it is ok but i have right blocks on the dnlds page now...lol what specific files do i have to edit to get left blocks off private messages and forums thats the only 2 that i need them off of...lol? anyone know
Find all posts by __FFJJ__View user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12383


PostPosted: Mon Aug 29, 2005 10:58 am Reply with quoteBack to top

http://www.nukecops.com/PHP-Nuke_hide-left-blocks.html

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







PostPosted: Mon Aug 29, 2005 4:44 pm Reply with quoteBack to top

ok i tried what that link said...now i get a fatal error on /home/*/public_html/themes/T-Platinum/theme.php on line 300

i tried the second route on that page but i couldn't find where the modules.php?name=Forums idk what file to edit, i mean what file is specifically for the forums and private messages. is it the index.php files in the folders under modules? or what i must be missing files or something
Find all posts by Anonymous
Display posts from previous:      
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
You can post new topics in this forum
You can 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
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.200 Seconds - 324 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::