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  
#1   Need help fixing a theme footer.
Donovan
CZ Active Member
 Codezwiz Site Donator
Donovan has been a member for over 20 year's 20 Year Member
usa.gif ohio.gif
Occupation: Web Developer
Gender: Male
Fav. Sports Team: St Louis Cardinals
Status: Offline
Joined: Dec 03, 2003
0.02 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
#2   re: Need help fixing a theme footer.
Recoil
CZ Addict
Recoil has been a member for over 20 year's 20 Year Member
usa.gif louisiana.gif
Occupation: Manager
Gender: Male
Fav. Sports Team: New Orleans
Website:
Status: Offline
Joined: Jan 17, 2004
0.06 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
#3   re: Need help fixing a theme footer.
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.48 posts per day
Posts: 3765
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
#4   re: Need help fixing a theme footer.
Recoil
CZ Addict
Recoil has been a member for over 20 year's 20 Year Member
usa.gif louisiana.gif
Occupation: Manager
Gender: Male
Fav. Sports Team: New Orleans
Website:
Status: Offline
Joined: Jan 17, 2004
0.06 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
#5   Re: re: Need help fixing a theme footer.
Donovan
CZ Active Member
 Codezwiz Site Donator
Donovan has been a member for over 20 year's 20 Year Member
usa.gif ohio.gif
Occupation: Web Developer
Gender: Male
Fav. Sports Team: St Louis Cardinals
Status: Offline
Joined: Dec 03, 2003
0.02 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
#6   re: Need help fixing a theme footer.
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.48 posts per day
Posts: 3765
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  
<< 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