| Author |
Message |
newcomers
Beginner


Joined: Aug 26, 2004 Posts: 5
|
Posted: Fri Sep 03, 2004 6:56 am Post subject: Removing left and right blocks |
|
|
Hi,
I have a page that needs to be displayed full screen so I need to remove the block on the left and right of the page, is this possible?
I want the left and right blocks to appear all of the time, apart from when this certain page is loaded.
Thanks
(P.S Im using the nukewrap module to include an html page) |
|
| Back to top |
|
|
AdBot
|
| Post subject: Removing left and right blocks |
|
|
|
|
|
| Back to top |
|
 |
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Fri Sep 03, 2004 7:01 am Post subject: Re: Removing left and right blocks |
|
|
| i believe it's controlled by the $index value in the index<dot>php file of the module in question. try switching it from 0 to 1 (or 1 to 0) and see what happens. |
|
| Back to top |
|
|
newcomers
Beginner


Joined: Aug 26, 2004 Posts: 5
|
Posted: Fri Sep 03, 2004 7:02 am Post subject: Re: Removing left and right blocks |
|
|
| yeah 0 means that the left column is shown but the right isnt and 1 means that theyre both shown...I need them both disabled |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Fri Sep 03, 2004 7:12 am Post subject: Re: Removing left and right blocks |
|
|
| ok...then it's a tweak in the theme<dot>php file of your theme. find the themeheader function. in there, is a call to blocks(left). simply put an if/else clause in there checking for the module name(s) for which you do/don't want the left blocks to be displayed. |
|
| Back to top |
|
|
newcomers
Beginner


Joined: Aug 26, 2004 Posts: 5
|
Posted: Fri Sep 03, 2004 7:15 am Post subject: Re: Removing left and right blocks |
|
|
would you be able to tell me how to do that as I have limited knowledge!!
Cheers |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Fri Sep 03, 2004 7:31 am Post subject: Re: Removing left and right blocks |
|
|
PHP: › <?php #
#-----[ OPEN ]------------------------------------------
#
themes/<your_theme>/theme.php
#
#-----[ FIND SIMILAR ]------------------------------------------
#
function themeheader() {
global $user, $banners, $sitename, $slogan, $cookie, $prefix;
#
#-----[ ADD ]------------------------------------------
#
# This gets added to the "global" line if it isn't already present.
$name
#
#-----[ FIND ]------------------------------------------
#
blocks(left);
#
#-----[ CHANGE TO ]------------------------------------------
#
if($name != <module_name_you_dont_want_to_have_left_blocks>) {
blocks(left);
}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM ?> |
|
| Back to top |
|
|
newcomers
Beginner


Joined: Aug 26, 2004 Posts: 5
|
Posted: Fri Sep 03, 2004 7:38 am Post subject: Re: Removing left and right blocks |
|
|
| Excellent!!! Thats worked a treat thank you very much!!! |
|
| Back to top |
|
|
newcomers
Beginner


Joined: Aug 26, 2004 Posts: 5
|
Posted: Fri Sep 03, 2004 7:58 am Post subject: Re: Removing left and right blocks |
|
|
hmm although that has worked, I am now having problems with the html page not fitting correctly
whats the best way to include html pages in phpnuke? |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Fri Sep 03, 2004 8:01 am Post subject: Re: Removing left and right blocks |
|
|
| the simplest way i know of is to use the sections/content modules. |
|
| Back to top |
|
|
|
|
|
|
|