How to change the width of the theme / template

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   How to change the width of the theme / template
inten
CZ Newbie
 Codezwiz Site Donator
inten has been a member for over 9 year's 9 Year Member
Status: Offline
Joined: Dec 05, 2008
0.00 posts per day
Posts: 9
Points: 510
   
i already found where to change the width of the header and footer, dont know if it's the gooed place to change it but it's works icon_smile.gif
now i can't find the table i need to change middle of the page..,
blocks and news i mean

someone help me please
Greets Inten



Back to top Reply with quote
#2   re: How to change the width of the theme / template
trunks
CZ Super Newbie
 Codezwiz Site Donator
trunks has been a member for over 10 year's 10 Year Member
uk.gif
Age: 2017
Fav. Sports Team: New York Rangers - NHL
Website: www.PHP-Clans.com
Status: Offline
Joined: Sep 15, 2008
0.01 posts per day
Posts: 36
Points: 685
  MSN Messenger 
Well this could actually mess the theme up completely depending on the theme itself and wether your expanding or reducing its size (quite complex to explain as we're talking stretch points etc)

But anyway, to answer your question...

You will need to open up the theme.php and change the sizes in the function OpenTable() & function CloseTable(). Some themes have this twice. The theme may also be enclosed in a table so look out for something that looks like this:


    echo '<table width="1024" align="center"><tr><td>';

THe 1024 could be any size, but this will limit the entire site to that width, which stops the tables from stretching out i.e forums and story content.

Hope that helps.


Back to top Reply with quote
#3   re: How to change the width of the theme / template
inten
CZ Newbie
 Codezwiz Site Donator
inten has been a member for over 9 year's 9 Year Member
Status: Offline
Joined: Dec 05, 2008
0.00 posts per day
Posts: 9
Points: 510
   
I can't find it in theme.php but have found that rule in table.php

<?php

/************************************************************/
/* OpenTable Functions                                      */
/*                                                          */
/* Define the tables look&feel for you whole site. For this */
/* we have two options: OpenTable and OpenTable2 functions. */
/* Then we have CloseTable and CloseTable2 function to      */
/* properly close our tables. The difference is that        */
/* OpenTable has a 100% width and OpenTable2 has a width    */
/* according with the table content                         */
/************************************************************/

function OpenTable() {
    global $bgcolor1, $bgcolor2;
    echo "<br><table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\"><tr><td>\n";
    echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}

function CloseTable() {
    echo "</td></tr></table></td></tr></table>\n";
}

function OpenTable2() {
    global $bgcolor1, $bgcolor2;
    echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n";
    echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}

function CloseTable2() {
    echo "</td></tr></table></td></tr></table>\n";
}

?>


however i tried to change to the size doing this table width="60%"
but no result
btw, i want to resize it.. make it smaller cause now its screen filling and i don't like that
the result I am looking for should be something like codewiz... the size i mean icon_smile.gif

Greets Inten


Back to top Reply with quote
#4   
trunks
CZ Super Newbie
 Codezwiz Site Donator
trunks has been a member for over 10 year's 10 Year Member
uk.gif
Age: 2017
Fav. Sports Team: New York Rangers - NHL
Website: www.PHP-Clans.com
Status: Offline
Joined: Sep 15, 2008
0.01 posts per day
Posts: 36
Points: 685
  MSN Messenger 
Well unfortunatly with themes they are either made to stretch or they are made at a fixed width.
Does the theme streth to the width of your browser?

A link to your site may be usful and also the theme info would help too.
The theme may require some image modifications, if you provide that info above i may be able to help you further.

Trunks

edit: also what version and distribution of nuke are you using?



Back to top Reply with quote
#5   re: How to change the width of the theme / template
inten
CZ Newbie
 Codezwiz Site Donator
inten has been a member for over 9 year's 9 Year Member
Status: Offline
Joined: Dec 05, 2008
0.00 posts per day
Posts: 9
Points: 510
   
[ Register or login to view links on this board.]
Thats the site and i'm using
"Tronix Purple Theme" so i thin you are familiar with that icon_smile.gif
I want it fixed 1024 px and centered
using RavenNuke v2.20.01.7z

Greets



Back to top Reply with quote
#6   
trunks
CZ Super Newbie
 Codezwiz Site Donator
trunks has been a member for over 10 year's 10 Year Member
uk.gif
Age: 2017
Fav. Sports Team: New York Rangers - NHL
Website: www.PHP-Clans.com
Status: Offline
Joined: Sep 15, 2008
0.01 posts per day
Posts: 36
Points: 685
  MSN Messenger 
ok inten, i can get this to work for you but you will need to attach the theme to a post ( remember to zip it up). I will also require you to make a donation to codezwiz after i have done it.
If telli is ok with that.



Back to top Reply with quote
#7   re: How to change the width of the theme / template
inten
CZ Newbie
 Codezwiz Site Donator
inten has been a member for over 9 year's 9 Year Member
Status: Offline
Joined: Dec 05, 2008
0.00 posts per day
Posts: 9
Points: 510
   
I'm not home on this moment but when i come home i will do it right away.
when you adjusting the theme can you also make a change in the header for me ?
lose login option and the flash banner on top so i can create my own banner with the same size as the site (1024px).
And offcaurse i will make a donation icon_smile.gif

Greetz



Back to top Reply with quote
#8   
trunks
CZ Super Newbie
 Codezwiz Site Donator
trunks has been a member for over 10 year's 10 Year Member
uk.gif
Age: 2017
Fav. Sports Team: New York Rangers - NHL
Website: www.PHP-Clans.com
Status: Offline
Joined: Sep 15, 2008
0.01 posts per day
Posts: 36
Points: 685
  MSN Messenger 
The removal of that particular info i would charge myself so unfortunatly i can not make those modifications with request on this forum unless Telli gives the go ahead for me to charge you for it.
But i will fix your theme width issue for you icon_smile.gif

-Trunks

EDIT: this theme is also one of Telli's so definatly get an approval first! icon_wink.gif



Back to top Reply with quote
#9   re: How to change the width of the theme / template
trunks
CZ Super Newbie
 Codezwiz Site Donator
trunks has been a member for over 10 year's 10 Year Member
uk.gif
Age: 2017
Fav. Sports Team: New York Rangers - NHL
Website: www.PHP-Clans.com
Status: Offline
Joined: Sep 15, 2008
0.01 posts per day
Posts: 36
Points: 685
  MSN Messenger 
Here is the updated file for you. Upload to:

public_html/your_nuke_root/themes/Tronix_Purple/

Overwrite if asked.

This file will make the theme fixed width of 1024pixels.

ATTACHMENT REMOVED BY TRUNKS (COMMERCIAL ITEM)



Back to top Reply with quote
#10   re: How to change the width of the theme / template
inten
CZ Newbie
 Codezwiz Site Donator
inten has been a member for over 9 year's 9 Year Member
Status: Offline
Joined: Dec 05, 2008
0.00 posts per day
Posts: 9
Points: 510
   
link doesn't work icon_sad.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