Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Forums..
dementeddogz
CZ Active Member
dementeddogz has been a member for over 19 year's 19 Year Member
Age: 46
Gender: Male
Fav. Sports Team: Miami
Status: Offline
Joined: Mar 12, 2005
0.02 posts per day
Posts: 163
Points: 21,847
   
Is there something i can edit under each theme to make the forums come up on their own page with out all the menus on the left? Similar to the halloween theme.



Back to top Reply with quote
#2   
osmosis
CZ Addict
osmosis has been a member for over 20 year's 20 Year Member
ireland.gif
Occupation: Student
Age: 37
Gender: Male
Status: Offline
Joined: May 29, 2003
0.06 posts per day
Posts: 495
Points: 12,092
   
Edit these files at your own risk, i am not responsible if your files go wrong.

Please make a backup of all the files your editing FIRST.

This is by mikem

Files to edit :
yoursite.com/modules/Forums/nukebb.php
yoursite.com/themes/Your Theme/theme.php
yoursite.com/header.php


Open your default theme
theme.php, copy the entire themeheader() function and then paste it back in the file and change the name to themeheader1(). You should now have 2 themeheader functions in your theme.php file.
One called themeheader() and one called themeheader1()

Now, Edit themeheader1() function and take out the blocks(left); line. You will also need to edit out part of a table or you will still have a space on the left of your Forum tables.
Look for this line in your theme.php under your themeheader1() that you just pasted in there to get rid of the space on the left.

echo "</td><td><img src=\"themes/ffx69_phpbb2/images/pixel.gif\" width=\"15\" height=\"1\" border=\"0\" alt=\"\"></td><td width=\"100%\">\n";


remove the <td> tag right before img src and remove the closing </td> tag was well.

Save/Upload your modified theme.php file.

Open your header.php file in the php root directory. Make a copy of it and save it as header1.php.
Change

themeheader();


to

themeheader1();


You may also want to change the line (optional)

include("themes/$ThemeSel/theme.php");


to

include("themes/$Default_Theme/theme.php");


to prevent anyone from using a different theme. Otherwise you will have to do the same steps to all your theme.php files if you use more than one theme.
Save/Upload your header1.php file to your root directory.

Edit nukebb.php in the Forums directory
change

include("header.php");


to

include("header1.php");


Save/Upload your nukebb.php file to your Forums root directory.

That's it. You should now see NO Left blocks when you view your Forum.
Remember, ALWAYS backup your ORIGINAL files before modifying and uploading them.


Back to top Reply with quote
#3   
dementeddogz
CZ Active Member
dementeddogz has been a member for over 19 year's 19 Year Member
Age: 46
Gender: Male
Fav. Sports Team: Miami
Status: Offline
Joined: Mar 12, 2005
0.02 posts per day
Posts: 163
Points: 21,847
   
:shock:

Alright ill give that a try for each theme then and see what happens , thanks



Back to top Reply with quote
#4   
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 45
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.06 posts per day
Posts: 8089
Points: 494,430
   
Or a much simpler approach is to open your theme.php for each theme and find the following:

blocks(left);


Just replace that with this:

global $name;
    if($name!=Forums)
    {
    blocks(left);
    }


And to add more modules just repeat the first variable like this:

global $name;
    if($name!=Forums AND $name!=Downloads)
    {
    blocks(left);
    }



Telli



_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#5   
dementeddogz
CZ Active Member
dementeddogz has been a member for over 19 year's 19 Year Member
Age: 46
Gender: Male
Fav. Sports Team: Miami
Status: Offline
Joined: Mar 12, 2005
0.02 posts per day
Posts: 163
Points: 21,847
   
Thanks that did the trick icon_smile.gif



Back to top Reply with quote
#6   
osmosis
CZ Addict
osmosis has been a member for over 20 year's 20 Year Member
ireland.gif
Occupation: Student
Age: 37
Gender: Male
Status: Offline
Joined: May 29, 2003
0.06 posts per day
Posts: 495
Points: 12,092
   


Originally posted by Telli:

Or a much simpler approach is to open your theme.php for each theme and find the following:

blocks(left);


Just replace that with this:

global $name;
    if($name!=Forums)
    {
    blocks(left);
    }


And to add more modules just repeat the first variable like this:

global $name;
    if($name!=Forums AND $name!=Downloads)
    {
    blocks(left);
    }



Telli


that would have been soooooooo much easier to type :???: lmao


Back to top Reply with quote
#7   
dementeddogz
CZ Active Member
dementeddogz has been a member for over 19 year's 19 Year Member
Age: 46
Gender: Male
Fav. Sports Team: Miami
Status: Offline
Joined: Mar 12, 2005
0.02 posts per day
Posts: 163
Points: 21,847
   
lol and to read.


first post i was dreading doing :shock:



Back to top Reply with quote
#8   
osmosis
CZ Addict
osmosis has been a member for over 20 year's 20 Year Member
ireland.gif
Occupation: Student
Age: 37
Gender: Male
Status: Offline
Joined: May 29, 2003
0.06 posts per day
Posts: 495
Points: 12,092
   
lmao good thing telli was about



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