[SOLVED] Fullscreen Forums

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   [SOLVED] Fullscreen Forums
teamplayer
CZ Super Newbie
 Codezwiz Site Donator
teamplayer has been a member for over 20 year's 20 Year Member
netherlands.gif
Age: 67
Gender: Male
Website:
Status: Offline
Joined: Dec 18, 2003
0.01 posts per day
Posts: 67
Points: 4,781
   
Hello all,

I know it shoot not be so hard to get my forum full screen but i am a newbie on phpnuke thats the reason why i am asking.

I want the forum in full screen how do i fix this. icon_redface.gif

Any Help is welcome
Teamplayer




_________________
Back to top Reply with quote
#2   re: Fullscreen Forums
teamplayer
CZ Super Newbie
 Codezwiz Site Donator
teamplayer has been a member for over 20 year's 20 Year Member
netherlands.gif
Age: 67
Gender: Male
Website:
Status: Offline
Joined: Dec 18, 2003
0.01 posts per day
Posts: 67
Points: 4,781
   
Nobody? icon_wink.gif




_________________
Back to top Reply with quote
#3   re: Fullscreen Forums
jaded
CZ Newbie
Gender: Female
Status: Offline
Joined: Nov 13, 2003
0.00 posts per day
Posts: 8
Points: 502
   
To hide the left blocks for all modules, you need to edit your theme.php file. Find this code Code:

blocks(left);
and comment it out Code:
//blocks(left);


To hide the left block for a specific module, you need to edit theme.php and do 2 things. First of all, in the themeheader() function, add the variable $name to the global statement. Then, find this code Code:

blocks(left);
and change it to Code:
if ($name=="MODULE_NAME") {}
else blocks(left);

where MODULE_NAME is the name of the module to hide the blocks. For example, to hide the left blocks when viewing the Member List, you would code Code:

if ($name=="Members_List") {}
else blocks(left);


Note that you will have to do this for every theme that you use. This will makre the left blocks disappear when you view for instance the forum. This will expand your forum to fill the area of your screen at least as wide as your themes header is.



Back to top Reply with quote
#4   [SOLVED] Fullscreen Forums
teamplayer
CZ Super Newbie
 Codezwiz Site Donator
teamplayer has been a member for over 20 year's 20 Year Member
netherlands.gif
Age: 67
Gender: Male
Website:
Status: Offline
Joined: Dec 18, 2003
0.01 posts per day
Posts: 67
Points: 4,781
   
Thanks for your reply, it working great now only 2 minutes off work.

Regards Rene




_________________
Back to top Reply with quote
#5   re: [SOLVED] Fullscreen Forums
MesyMeal
CZ Newbie
MesyMeal has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: May 03, 2004
0.00 posts per day
Posts: 6
Points: 344
   
mmm... I have tried this. The block on the left does disappear. However, the Forum does not expand to full screen, taking up the space originally occupied by the left block. Any idea?

I suspect this has something to do with the theme I am using - '2-The-Xtreme'.

Our site is: [ Register or login to view links on this board. ]

Thanks in advance for any help! ^_^



Back to top Reply with quote
#6   
JRSweets
CZ Active Member
 Codezwiz Site Donator
JRSweets has been a member for over 20 year's 20 Year Member
usa.gif massachusetts.gif
Age: 43
Gender: Male
Fav. Sports Team: NE Patriots
Website:
Status: Offline
Joined: Apr 07, 2004
0.03 posts per day
Posts: 259
Points: 19,861
  MSN Messenger 
It does probably have something to do with your theme. You might want to check how the tables are defined. They must no be using "100%" for the width property.



Back to top Reply with quote
#7   re: [SOLVED] Fullscreen Forums
MesyMeal
CZ Newbie
MesyMeal has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: May 03, 2004
0.00 posts per day
Posts: 6
Points: 344
   
Problem fixed by tweaking the theme code. icon_razz.gif



Back to top Reply with quote
#8   re: [SOLVED] Fullscreen Forums
Screwy
CZ Newbie
Screwy has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Mar 07, 2005
0.00 posts per day
Posts: 1
Points: 94
   
Hi all,

Sorry to dig up an old topic but it shows I did search here first icon_biggrin.gif

I can not edit my theme.php as it is encrypted, so do I have any other options?

Regards,

Screwy



Back to top Reply with quote
#9   re: [SOLVED] Fullscreen Forums
raven1124
CZ Super Newbie
usa.gif georgia.gif
Occupation: Industrial
Age: 40
Gender: Male
Fav. Sports Team: College Football: Georgia Bulldogs
Website:
Status: Offline
Joined: Aug 02, 2003
0.01 posts per day
Posts: 91
Points: 1,189
AIM Address Yahoo Messenger MSN Messenger 
Yes.. There is another fix, for those who can't edit the theme.php File.

1. Open the mainfile.php in your nuke root.

2. Find
function blocks($side) {


3. Under that you should see something like
global $storynum, $prefix, $multilingual, $currentlang, $db, $admin, $user;


4. To the end of that line add
, $hideleftblocks


before the ; and after $user.

5. Then directly under that line add
    if (strtolower($side[0]) == "l" && $hideleftblocks) return;


6. Now open modules/Forums/nukebb.php
Find:
include("header.php");


Replace With:
global $hideleftblocks;
$hideleftblocks = 1;
include("header.php");


This should do the trick.. I had to use this Fix with a Theme I purchased from Xtrato.com



_________________
xlx_nytrous_xlx
Back to top Reply with quote
#10   Re: re: Fullscreen Forums
xGSTQ
CZ Super Newbie
 Codezwiz Site Donator
xGSTQ has been a member for over 19 year's 19 Year Member
uk.gif
Gender: Male
Website:
Status: Offline
Joined: Sep 07, 2005
0.01 posts per day
Posts: 56
Points: 4,428
   


Originally posted by jaded @ Thu Apr 01, 2004 3:55 am:


To hide the left block for a specific module, you need to edit theme.php and do 2 things. First of all, in the themeheader() function, add the variable $name to the global statement. Then, find this code Code:

blocks(left);
and change it to Code:
if ($name=="MODULE_NAME") {}
else blocks(left);

where MODULE_NAME is the name of the module to hide the blocks. For example, to hide the left blocks when viewing the Member List, you would code Code:

if ($name=="Members_List") {}
else blocks(left);


Note that you will have to do this for every theme that you use. This will makre the left blocks disappear when you view for instance the forum. This will expand your forum to fill the area of your screen at least as wide as your themes header is.


This works great for me but i have a question how do i add more modules to it ive tried a few thing but keep getting errors i just want to remove the left blocks from more than 1 module... Thx icon_mrgreen.gif



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to 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
You cannot attach files in this forum
You cannot download files in this forum