Home :: Forums :: Register :: Sign In :: Links :: Downloads :: Shop
You are not signed in. Please sign in. If you have not registered, please click here.

Need help fixing a theme footer.

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb   More...
#1Wed Feb 22, 2006 2:43 pm   Need help fixing a theme footer.
Donovan
CZ Active Member
 Codezwiz Site Donator
Donovan has been a member for over 4 year's 4 Year Member
usa.gif ohio.gif
Occupation: Web Developer
Fav. Sports Team: St Louis Cardinals
Status: Online -> CZNews
Joined: Dec 03, 2003
0.09 posts per day
Posts: 160
Points: 9,216
   
It is a free theme called COD2Nation and can be seen here.
[ Register or login to view links on this board. ]

Look at the bottom and you can see the issue. This probably has something to do with spacers, but I am unsure.

footer.php
<?php
#### Generated by Html to PHP converter By Disipal Site (www.disipal.net) ####


echo"<div align=\"center\">"
  . "   <table cellSpacing=\"0\" cellPadding=\"0\" width=\"100%\" border=\"0\" id=\"table2\">"
  . "      <tr>"
  . "         <td><a href=\"http://www.thethemes.cc/\">"
  . "         <img height=\"48\" src=\"themes/COD2Nation/images/logoback.jpg\" width=\"100%\" border=\"0\"></a></td>"
  . "      </tr>"
  . "   </table>"
  . "</div>"
."";

?>


theme.php

/************************************************************/
/* Function themefooter()                                   */
/************************************************************/

function themefooter() {
    global $index, $banners;

    if ($index == 1) {
   echo "</td>\n"
       ."<td width=\"160\" valign=\"top\" bgcolor=#474948>\n";
   blocks(right);
    }
    echo "</td>\n"
        ."<TD WIDTH=\"11\" HEIGHT=\"100%\" valign=top background=\"themes/COD2Nation/images/rt.jpg\"><IMG SRC=\"themes/COD2Nation/images/spacer.gif\" WIDTH=\"42\" HEIGHT=\"1\"></TD>\n"
       ."</tr>\n"
       ."</table>\n";
     include("themes/COD2Nation/footer.php");
   echo "<table width=\"100%\" align=center cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n"
      ."<tr valign=\"top\">\n"
        ."<TD WIDTH=\"11\" HEIGHT=\"100%\" valign=top background=\"themes/COD2Nation/images/lt.gif\"><IMG SRC=\"themes/COD2Nation/images/spacer.gif\" WIDTH=\"42\" HEIGHT=\"1\"></TD>\n"
       ."</table>\n";
   
}


Thanks

-Donovan


Back to top Reply with quote
#2Wed Feb 22, 2006 5:49 pm   re: Need help fixing a theme footer.
Recoil
CZ Addict
Recoil has been a member for over 4 year's 4 Year Member
usa.gif louisiana.gif
Occupation: Manager
Fav. Sports Team: New Orleans
Website: one-hq.com
Status: Offline
Joined: Jan 17, 2004
0.24 posts per day
Posts: 427
Points: 8,650
   ICQ Number
Have you tried making your center blocks smaller? It looks to me that the center blocks are too wide causing you to have to scroll side to side thus stretching your theme (except for the footer).



Back to top Reply with quote
#3Wed Feb 22, 2006 8:15 pm   re: Need help fixing a theme footer.
Kelly_Hero
PayPal Donation
Asst. Admin
 Codezwiz Site Donator
Kelly_Hero has been a member for over 5 year's 5 Year Member
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 43
Website: www.myleague.com/bandr
Status: Offline
Joined: Aug 20, 2003
1.96 posts per day
Posts: 3763
Points: 351,412
   
Actually, if I might jump in here (Sorry Recoil), the problem lies in the fact that the bottom of the footer is one image. The body of the theme is set to fill 100% of the width of the screen but the footer can't expand to 100%. The width of the footer image is 1241 pixels. At resolutions smaller than that, you'll get a horizontal scrollbar. At resolutions higher than that (I use 1280 x 1024) the body expands farther than the footer image.

It may look like the theme isn't expanding full width, but it is. The right and left images make it look like it stops just short of full width.
[ Register or login to view links on this board. ] [ Register or login to view links on this board. ]

BTW, Steve, that's what you get for getting a theme from someone besides me! icon_razz.gif



Back to top Reply with quote
#4Wed Feb 22, 2006 11:25 pm   re: Need help fixing a theme footer.
Recoil
CZ Addict
Recoil has been a member for over 4 year's 4 Year Member
usa.gif louisiana.gif
Occupation: Manager
Fav. Sports Team: New Orleans
Website: one-hq.com
Status: Offline
Joined: Jan 17, 2004
0.24 posts per day
Posts: 427
Points: 8,650
   ICQ Number
cool i learned sumfin hehe thanks Kelly icon_smile.gif



Back to top Reply with quote
#5Thu Feb 23, 2006 9:29 am   Re: re: Need help fixing a theme footer.
Donovan
CZ Active Member
 Codezwiz Site Donator
Donovan has been a member for over 4 year's 4 Year Member
usa.gif ohio.gif
Occupation: Web Developer
Fav. Sports Team: St Louis Cardinals
Status: Online -> CZNews
Joined: Dec 03, 2003
0.09 posts per day
Posts: 160
Points: 9,216
   


Originally posted by Kelly_Hero @ Wed Feb 22, 2006 8:15 pm:

Actually, if I might jump in here (Sorry Recoil), the problem lies in the fact that the bottom of the footer is one image. The body of the theme is set to fill 100% of the width of the screen but the footer can't expand to 100%. The width of the footer image is 1241 pixels. At resolutions smaller than that, you'll get a horizontal scrollbar. At resolutions higher than that (I use 1280 x 1024) the body expands farther than the footer image.

It may look like the theme isn't expanding full width, but it is. The right and left images make it look like it stops just short of full width.
[ Register or login to view links on this board. ] [ Register or login to view links on this board. ]

BTW, Steve, that's what you get for getting a theme from someone besides me! icon_razz.gif


I knew you could answer this. icon_biggrin.gif

But how can I fix it? I don't have the $$ to afford getting a proffesional one done or I would have contacted you.

Can I somehow add a background image to each side and let it scale?



Back to top Reply with quote
#6Thu Feb 23, 2006 10:08 pm   re: Need help fixing a theme footer.
Kelly_Hero
PayPal Donation
Asst. Admin
 Codezwiz Site Donator
Kelly_Hero has been a member for over 5 year's 5 Year Member
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 43
Website: www.myleague.com/bandr
Status: Offline
Joined: Aug 20, 2003
1.96 posts per day
Posts: 3763
Points: 351,412
   
LOL, Steve, I'm just razzing you bud.

If you want it to expand to full width, you'll need to cut up the image into pieces and put them in a table.

If you can't do it, send me a pm and i'll do it for you.



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb   More...
<< 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