Support Forums | Demo Gallery [1.x] [2.x] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

Removing left and right blocks

 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Other PHPNuke Issues View previous topicPrinter friendly versionView next topic
Author Message
newcomers

Beginner
Beginner


Joined: Aug 26, 2004
Posts: 5

PostPosted: Fri Sep 03, 2004 6:56 am    Post subject: Removing left and right blocks Reply with quote

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
Offline View user's profile Send private message
AdBot
   Post subject: Removing left and right blocks  

Back to top
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA

PostPosted: Fri Sep 03, 2004 7:01 am    Post subject: Re: Removing left and right blocks Reply with quote

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
Offline View user's profile Send private message Visit poster's website
newcomers

Beginner
Beginner


Joined: Aug 26, 2004
Posts: 5

PostPosted: Fri Sep 03, 2004 7:02 am    Post subject: Re: Removing left and right blocks Reply with quote

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
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA

PostPosted: Fri Sep 03, 2004 7:12 am    Post subject: Re: Removing left and right blocks Reply with quote

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
Offline View user's profile Send private message Visit poster's website
newcomers

Beginner
Beginner


Joined: Aug 26, 2004
Posts: 5

PostPosted: Fri Sep 03, 2004 7:15 am    Post subject: Re: Removing left and right blocks Reply with quote

would you be able to tell me how to do that as I have limited knowledge!!

Cheers
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA

PostPosted: Fri Sep 03, 2004 7:31 am    Post subject: Re: Removing left and right blocks Reply with quote

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
Offline View user's profile Send private message Visit poster's website
newcomers

Beginner
Beginner


Joined: Aug 26, 2004
Posts: 5

PostPosted: Fri Sep 03, 2004 7:38 am    Post subject: Re: Removing left and right blocks Reply with quote

Excellent!!! Thats worked a treat thank you very much!!!
Back to top
Offline View user's profile Send private message
newcomers

Beginner
Beginner


Joined: Aug 26, 2004
Posts: 5

PostPosted: Fri Sep 03, 2004 7:58 am    Post subject: Re: Removing left and right blocks Reply with quote

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
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA

PostPosted: Fri Sep 03, 2004 8:01 am    Post subject: Re: Removing left and right blocks Reply with quote

the simplest way i know of is to use the sections/content modules.
Back to top
Offline View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Other PHPNuke Issues View previous topicPrinter friendly versionView next topic

 
Jump to:  
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
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Dedicated ServersDomain NamesWeb HostingDomain Name RegistrationDedicated Web HostingWeb Design New YorkCompare VoIPseo packagesSEO CompanyNew York Yellow PagesFind LocationsVOIP Phone ServiceNeckermannOnline internetSEORestaurant Locator • Get great HP coupons from CouponSnapshot • Search for great dell coupons at CouponSnapshot.com.au • Graduation DressesAndroid TabletSEO IndiaBuy Phen375fuel filter

8th year online! 2003-2011
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia