PHP Nuke Nederland
 
•   Home  •  Downloads  •  Your Account  •  Forums  •
PHP-Nuke Nederland: Forums

PHP-Nuke Nederland :: View topic - Problems trying to take off the left blocks
 Forum FAQ  •   Search   •  Memberlist  •  Usergroups   •  Register   •    •  Profile  •  Log in to check your private messages  •  Log in

 
Post new topicReply to topic
View previous topic Log in to check your private messages View next topic
Author Message
matrevisan
Newbie
Newbie


Joined: Apr 25, 2006
Posts: 1

PostPosted: Fri 28 Apr 2006 22:24 Reply with quoteBack to top

I´m trying to get my forum to open in full screen, whitout the left blocks (menus). At first, I´ve edited
the theme.php file, adding the following lines in it:

global $name;
if ($name=='Forums') { }
else if ($name=='Members_List') { }
else if ($name=='Private_Messages') { }
else {
blocks(left);

After installing JAG_online, this isn´t working anymore, the left blocks are still there and I don´t
know how to fix it.

If somebody knows how to do it, I´d appreciate some help.

Thanks in advance.

http://www.ttclan.com.br
View user's profileSend private message
zeromechanic
Administrator
Administrator


Joined: Oct 01, 2004
Posts: 1527
Location: Emmeloord

PostPosted: Sat 29 Apr 2006 6:44 Reply with quoteBack to top

I assume you don't read dutch, the left blocks is in the new users FAQ, so i will put it here :

open theme.php

find :
[php:1:0812ffb75f]function themeheader() {
global $admin, $user, $banners, $sitename, $slogan, $cookie, $prefix, $db, $nukeurl, $anonymous;[/php:1:0812ffb75f]

add if not there : $name

[php:1:0812ffb75f]function themeheader() {
global $admin, $user, $banners, $sitename, $slogan, $cookie, $prefix, $db, $nukeurl, $anonymous, $name;[/php:1:0812ffb75f]

find next :

[php:1:0812ffb75f]print $r_file; // <- this might not be in your theme
blocks(left);[/php:1:0812ffb75f]

change into :
[php:1:0812ffb75f] print $r_file; // <- if not in your theme, remove
switch($name){
case "Forums":
break;
default:
blocks(left);
break;
}[/php:1:0812ffb75f]

if you want to add more modules without the left blocks, just add theme in above:
example, you want to add the Downloads :
[php:1:0812ffb75f] print $r_file; // <- if not in your theme, remove
switch($name){
case "Forums":
break;

// Add the Downloads

case "Downloads":
break;

// End Downloads
default:
blocks(left);
break;
}[/php:1:0812ffb75f]

_________________
Te Lezen: Forum Regels | Te Gebruiken
View user's profileSend private messageVisit poster's website
Display posts from previous:      
 Donaties   Adverteren 
Wilt u het forum steunen, dan kunt u nu eenvoudig doneren met PayPal.
Post new topicReply to topic
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

Web site powered by PHP-Nuke

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © 2004-2008 by BlueLion.
SEO enhanced with the Sitemapper script
You can syndicate our news using the file backend.php or ultramode.txt
Powered by PHP Powered by MySQL Apache Webserver Valid robots.txt
PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Pagina rendering: 0.07 seconden


[Valid News RSS]

RSS Feeds:
[RSS 2.0 News Feed]
[RSS 2.0 Download Feed]
[RSS 2.0 Forum Feed]
[RSS 2.0 Link Feed]
:: fisubsilver shadow phpbb2 style by Daz :: PHP-Nuke theme by BlueLion ::