| Author |
Message |
Guest

|
Posted:
Fri Feb 04, 2005 7:02 pm |
  |
What the subject says. How do I remove the blocks on the right for the forums module? |
|
|
 |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12383
|
Posted:
Fri Feb 04, 2005 7:30 pm |
  |
|
     |
 |
Guest

|
Posted:
Sat Feb 05, 2005 4:53 pm |
  |
|
 |
 |
Xyberian
Colonel


Joined: Mar 14, 2004
Posts: 1921
Location: Behind you
|
Posted:
Sat Feb 05, 2005 7:00 pm |
  |
|
    |
 |
Guest

|
Posted:
Sat Feb 05, 2005 11:08 pm |
  |
Again, that doesnt work. I think that it's because of the NSN_Blue theme. |
|
|
 |
 |
nukelover
Sergeant


Joined: Dec 28, 2003
Posts: 87
|
Posted:
Sun Feb 06, 2005 12:44 am |
  |
i had save this when i started nuke hope it helps
(its not my code )
| Code: |
This is controlled by the function themeheader located in theme.php under each theme directory.
I already hacked this file up for you to make it easier.
Explanation of what I did: In the function themeheader, I added a new global variable
called $turn_leftblocks_off like this:
Code:
global $banners, $turn_leftblocks_off;
Then I changed this line:
Code:
blocks(left);
to read like this:
Code:
if (isset($turn_leftblocks_off) && $turn_leftblocks_off) {
blocks(none);
} else {
blocks(left);
}
Whichever pages you do not want left blocks displayed, just add this new variable right below where
you add mainfile.php and set it to true like this:
Code:
require_once('mainfile.php');
$turn_leftblocks_off = true;
If you want left blocks displayed on any page, do not use this variable. |
|
|
|
   |
 |
Guest

|
Posted:
Sun Feb 06, 2005 2:09 am |
  |
I changed the left to right, and something interesting happened- the home page displayed both the right hand side blocks on both sides, and the forums took off the left hand side blocks. |
|
|
 |
 |
Guest

|
Posted:
Sun Feb 06, 2005 2:19 am |
  |
YES
It worked! I found out that blocks(right); is in themefooter, not themeheader. |
|
|
 |
 |
__FFJJ__
Nuke Cadet


Joined: Aug 25, 2005
Posts: 5
|
Posted:
Sun Aug 28, 2005 8:47 pm |
  |
ok im sry but im confused, i only want left blocks removed from the forums page and cpl other not the whole site, so should i add the variable code at the bottom to select pages like modules.php?name=Private_Messages and modules.php?name=Forums
or do i have to have that code in the theme.php and then add that variable to the pages that i want to remove them, caues im confused...sry |
|
|
   |
 |
__FFJJ__
Nuke Cadet


Joined: Aug 25, 2005
Posts: 5
|
Posted:
Sun Aug 28, 2005 9:09 pm |
  |
nvm i got it the first code goes in the theme.php and the second code goes in the modules.php thats how i got mine to work... |
|
|
   |
 |
__FFJJ__
Nuke Cadet


Joined: Aug 25, 2005
Posts: 5
|
Posted:
Sun Aug 28, 2005 9:14 pm |
  |
ok maybe not now every page that is linked to modules.php is missing left blocks it is ok but i have right blocks on the dnlds page now...lol what specific files do i have to edit to get left blocks off private messages and forums thats the only 2 that i need them off of...lol? anyone know |
|
|
   |
 |
Evaders99
Site Admin


Joined: Aug 17, 2003
Posts: 12383
|
Posted:
Mon Aug 29, 2005 10:58 am |
  |
|
     |
 |
Guest

|
Posted:
Mon Aug 29, 2005 4:44 pm |
  |
ok i tried what that link said...now i get a fatal error on /home/*/public_html/themes/T-Platinum/theme.php on line 300
i tried the second route on that page but i couldn't find where the modules.php?name=Forums idk what file to edit, i mean what file is specifically for the forums and private messages. is it the index.php files in the folders under modules? or what i must be missing files or something |
|
|
 |
 |
|
|