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, 181 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 - (how-to) Full page display of Forums (and other 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
azism
Captain
Captain


Joined: May 20, 2004
Posts: 317

Location: Tucson, AZ

PostPosted: Sun Sep 05, 2004 9:38 am Reply with quoteBack to top

I know I've seen this somewhere, but am not finding it. How can I eliminate the left column from displaying when in the Forums module? Most of my users are running 640x480 or 800x600 resolution and the left column takes up valuable screen space for those people.

_________________
Tom Wills
TI-99/4A On-Line UG Administrator
http://www.ti99ers.org/
Find all posts by azismView user's profileSend private messageVisit poster's website
madman
Support Mod
Support Mod


Joined: Feb 15, 2004
Posts: 806


PostPosted: Sun Sep 05, 2004 10:14 am Reply with quoteBack to top

I have several workarounds, but this following way is the easiest for newbies, however you'll need to edit two PHP-Nuke files (standard rule: always make backups!):

Ok, let's started with the first file, mainfile.php. Find these lines: (hint: located within blocks() function)
Code:
if (strtolower($side[0]) == "l") {
  $pos = "l";
} elseif (strtolower($side[0]) == "r") {
  $pos = "r";
}  elseif (strtolower($side[0]) == "c") {
  $pos = "c";
} elseif  (strtolower($side[0]) == "d") {
  $pos = "d";
}


AFTER, add:
Code:
if (($pos == 'l') && defined('THEME_HIDE_LEFT_BLOCKS')) return;


Now, edit modules.php and find the following lines:
Code:
require_once("mainfile.php");
$module = 1;
$name = trim($name);


AFTER, add:
Code:
$mad_hide_left_blocks = array('Forums', 'Private_Messages', 'Journal', 'Members_List');
if (in_array($name, $mad_hide_left_blocks)) define('THEME_HIDE_LEFT_BLOCKS', true);


From the above code, we will see full page (but still has header and footer) for Forums, Private Messages, Journal, and Members List modules. You can alter the $mad_no_left_block variable (array type) to insert new modules or remove them (names used are similar with directory name for appropriate modules, case sensitive and no whitespaces, please).

ps: Don't get bothered with "mad" prefix in the variable name of the array, it used to prevent variable naming conflicts.

edit: Some typos in codes ( sorry... Mr. Green )

_________________
I'm Image

Last edited by madman on Sun Sep 05, 2004 10:36 am; edited 2 times in total
Find all posts by madmanView user's profileSend private messageVisit poster's websiteYahoo MessengerMSN Messenger
azism
Captain
Captain


Joined: May 20, 2004
Posts: 317

Location: Tucson, AZ

PostPosted: Sun Sep 05, 2004 10:18 am Reply with quoteBack to top

Interesting. This looks easy enough. ANd you are so rihgt, ALWAYS backup before modifying any code.

_________________
Tom Wills
TI-99/4A On-Line UG Administrator
http://www.ti99ers.org/
Find all posts by azismView user's profileSend private messageVisit poster's website
azism
Captain
Captain


Joined: May 20, 2004
Posts: 317

Location: Tucson, AZ

PostPosted: Tue Sep 07, 2004 8:18 am Reply with quoteBack to top

This worked great. Thanks!

_________________
Tom Wills
TI-99/4A On-Line UG Administrator
http://www.ti99ers.org/
Find all posts by azismView user's profileSend private messageVisit poster's website
madman
Support Mod
Support Mod


Joined: Feb 15, 2004
Posts: 806


PostPosted: Tue Sep 07, 2004 10:31 am Reply with quoteBack to top

Glard to heard that. Smile
I put this as sticky, in case someone else also need the trick.

_________________
I'm Image
Find all posts by madmanView user's profileSend private messageVisit poster's websiteYahoo MessengerMSN Messenger
wlwcom9000
Nuke Soldier
Nuke Soldier


Joined: Aug 23, 2004
Posts: 19


PostPosted: Tue Oct 12, 2004 2:51 am Reply with quoteBack to top

THANK YOU!!!!!!!!!!!!!!!!!!!!!!
Find all posts by wlwcom9000View user's profileSend private message
azism
Captain
Captain


Joined: May 20, 2004
Posts: 317

Location: Tucson, AZ

PostPosted: Tue Oct 12, 2004 8:28 am Reply with quoteBack to top

Looks like you have a winner here. Good job.

_________________
Tom Wills
TI-99/4A On-Line UG Administrator
http://www.ti99ers.org/
Find all posts by azismView user's profileSend private messageVisit poster's website
insanim8er
Nuke Soldier
Nuke Soldier


Joined: Nov 19, 2004
Posts: 11


PostPosted: Sun Nov 21, 2004 7:55 am Reply with quoteBack to top

Yeah, this works fine and all, but what if you want to hide the left colum on say

Universal_Module&file=add

I tried

// hide Left menu (array ('name')
$mad_hide_left_blocks = array('Universal_Module&file=add');
if (in_array($name, $mad_hide_left_blocks)) define('THEME_HIDE_LEFT_BLOCKS', true);

but it doesn't work... if I remove the &file=add then it works when I activate the Universal_Module... but that's not what I want.

I only want the Left Blocks to disable when a person is adding a submission.
Find all posts by insanim8erView user's profileSend private message
Ginza
Private
Private


Joined: Dec 27, 2004
Posts: 40


PostPosted: Sun Jan 23, 2005 2:03 am Reply with quoteBack to top

Is there anyway to hide the right menu when we view the News articles (news file) only?
Find all posts by GinzaView user's profileSend private message
Xyberian
Colonel
Colonel


Joined: Mar 14, 2004
Posts: 1939

Location: Behind you

PostPosted: Sun Jan 23, 2005 2:21 am Reply with quoteBack to top

Ginza wrote:
Is there anyway to hide the right menu when we view the News articles (news file) only?
You have another threads replied by me.
Find all posts by XyberianView user's profileSend private messageVisit poster's website
Divvy
Lieutenant
Lieutenant


Joined: Jul 25, 2004
Posts: 218


PostPosted: Thu Mar 24, 2005 3:29 pm Reply with quoteBack to top

GREAT MOD!!!!
Nice one madman !!! Thank you!

But It´s possible to make this with right block and not left? Smile
I want to hide right block in my forum but nobody can help me...

Can you help me? or someone...
Find all posts by DivvyView user's profileSend private message
durango
Corporal
Corporal


Joined: Apr 13, 2003
Posts: 65


PostPosted: Sat May 14, 2005 10:30 pm Reply with quoteBack to top

The above doesnt seem to work with Nuke 7.5?!

_________________
Durango
Find all posts by durangoView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12482


PostPosted: Sat May 14, 2005 10:42 pm 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
durango
Corporal
Corporal


Joined: Apr 13, 2003
Posts: 65


PostPosted: Sat May 14, 2005 10:46 pm Reply with quoteBack to top

I got it working (I tried putting comments in the mainfile.php before and after the line... thats what was messing it up Very Happy )

_________________
Durango
Find all posts by durangoView user's profileSend private message
Armon
Nuke Soldier
Nuke Soldier


Joined: Sep 12, 2005
Posts: 33

Location: Germany

PostPosted: Wed Sep 21, 2005 12:00 pm Reply with quoteBack to top

Ok, I tried to hide the right blocks as mentioned here:
http://www.nukecops.com/PHP-Nuke_hide-right-blocks.html

But where in the world is the line
Code:
$index = 1;

In what file.
Couldnt find it anywhere.


Got phpNuke 7.7

_________________
My first PHPNuke-Projekt
Battlefield 2 Community
Find all posts by ArmonView user's profileSend private messageVisit poster's website
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.295 Seconds - 182 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::