| Author |
Message |
electricshaka
Beginner


Joined: Sep 16, 2006 Posts: 11
|
Posted: Sun Oct 01, 2006 3:06 pm Post subject: Site Logo not centered |
|
|
| I've added a new logo to my site and I can't figure out how to center it. I'm using the default Kaput theme and my site is www.madgamerz.com -- any help would be appreciated. I've been looking in the theme.php but I don't understand much of the php language or the html embeded into the php language so I'm at a loss of what to do. |
|
| Back to top |
|
|
AdBot
|
| Post subject: Site Logo not centered |
|
|
|
|
|
| Back to top |
|
 |
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6271 Location: Washington Township, NJ, USA
|
Posted: Tue Oct 03, 2006 6:58 am Post subject: Re: Site Logo not centered |
|
|
look in your theme.php for "images/logo.gif" and put center tags around it. _________________
 |
|
| Back to top |
|
|
electricshaka
Beginner


Joined: Sep 16, 2006 Posts: 11
|
Posted: Wed Oct 04, 2006 3:04 pm Post subject: Re: Site Logo not centered |
|
|
This is what is in the themeheader section of theme.php -- Could you please tell me exactly where and what to put in to center the logo?
function themeheader() {
global $user, $sitename;
cookiedecode($user);
$username = $cookie[1];
if ($username == "") {
$username = "Anonymous";
}
echo "<body bgcolor=\"#ffffff\" text=\"#000000\" link=\"#363636\" vlink=\"#363636\" alink=\"#d5ae83\">\n"
."<br>\n";
ads(0);
OpenTable();
echo "<table border=\"0\"><tr><td rowspan=\"2\">"
."<img src=\"themes/Kaput/images/logo.gif\" border=\"0\" alt=\""._WELCOMETO." $sitename\" align=\"left\"></td>"
."<td align=right width=100%>"
."<td align=\"right\" valign=\"bottom\" width=\"100%\">"
."<font class=\"content\">"
."</font></td></tr></table>\n";
CloseTable();
$public_msg = public_message();
echo "$public_msg<br>";
echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"99%\" border=\"0\" align=\"center\" bgcolor=\"#ffffff\">\n"
."<tr><td bgcolor=\"#ffffff\" valign=\"top\">\n";
blocks(left);
echo "</td><td><img src=\"themes/NukeNews/images/pixel.gif\" width=\"15\" height=\"1\" border=\"0\" alt=\"\"></td><td width=\"100%\" valign=top>\n";
} |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6271 Location: Washington Township, NJ, USA
|
Posted: Wed Oct 04, 2006 8:01 pm Post subject: Re: Site Logo not centered |
|
|
| change: Code: › echo "<table border=\"0\"><tr><td rowspan=\"2\">" to Code: › echo "<table border=\"0\"><tr><td rowspan=\"2\" align=\"center\">" _________________
 |
|
| Back to top |
|
|
electricshaka
Beginner


Joined: Sep 16, 2006 Posts: 11
|
Posted: Thu Oct 05, 2006 9:06 am Post subject: Re: Site Logo not centered |
|
|
| Did exactly that and the banner still doesn't appear in the center of the table. You can look at it and maybe view the source at www.madgamerz.com -- I don't know what else to try. I'm still new with table stuff. |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6271 Location: Washington Township, NJ, USA
|
Posted: Thu Oct 05, 2006 9:10 am Post subject: Re: Site Logo not centered |
|
|
| add a Code: › <center> after Code: › <td rowspan=\"2\"> and a Code: › </center> before Code: › <td> _________________
 |
|
| Back to top |
|
|
electricshaka
Beginner


Joined: Sep 16, 2006 Posts: 11
|
Posted: Sat Oct 07, 2006 10:34 pm Post subject: Re: Site Logo not centered |
|
|
| I am confused as to which <td> to place the </center> before. Could you clarify for me or copy/paste my code with the newly added code? Thanks so much for your help I really appreciate it. |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6271 Location: Washington Township, NJ, USA
|
Posted: Sun Oct 08, 2006 10:57 am Post subject: Re: Site Logo not centered |
|
|
actually, on further inspection, i found that in the <img> tag containing your logo, there's an "align="left"" statement, delete it. _________________
 |
|
| Back to top |
|
|
electricshaka
Beginner


Joined: Sep 16, 2006 Posts: 11
|
Posted: Mon Oct 09, 2006 6:55 am Post subject: Re: Site Logo not centered |
|
|
I deleted it and nothing changed. Here is the current code.
function themeheader() {
global $user, $sitename;
cookiedecode($user);
$username = $cookie[1];
if ($username == "") {
$username = "Anonymous";
}
echo "<body bgcolor=\"#ffffff\" text=\"#000000\" link=\"#363636\" vlink=\"#363636\" alink=\"#d5ae83\">\n"
."<br>\n";
ads(0);
OpenTable();
echo "<table border=\"0\"><tr><td rowspan=\"2\" align=\"center\">"
."<img src=\"themes/Kaput/images/logo.gif\" border=\"0\" alt=\""._WELCOMETO." $sitename\"></td>"
."<td align=right width=100%>"
."<td align=\"right\" valign=\"bottom\" width=\"100%\">"
."<font class=\"content\">"
."</font></td></tr></table>\n";
CloseTable();
$public_msg = public_message();
echo "$public_msg<br>";
echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"99%\" border=\"0\" align=\"center\" bgcolor=\"#ffffff\">\n"
."<tr><td bgcolor=\"#ffffff\" valign=\"top\">\n";
blocks(left);
echo "</td><td><img src=\"themes/NukeNews/images/pixel.gif\" width=\"15\" height=\"1\" border=\"0\" alt=\"\"></td><td width=\"100%\" valign=top>\n";
} |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6271 Location: Washington Township, NJ, USA
|
|
| Back to top |
|
|
electricshaka
Beginner


Joined: Sep 16, 2006 Posts: 11
|
Posted: Mon Oct 09, 2006 10:22 pm Post subject: Re: Site Logo not centered |
|
|
| I copied your code directly into the theme.php file and deleted the old code. It still is not centered. Thanks for sticking with me! |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6271 Location: Washington Township, NJ, USA
|
|
| Back to top |
|
|
electricshaka
Beginner


Joined: Sep 16, 2006 Posts: 11
|
Posted: Tue Oct 10, 2006 7:21 pm Post subject: Re: Site Logo not centered |
|
|
Still the same.  |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6271 Location: Washington Township, NJ, USA
|
|
| Back to top |
|
|
electricshaka
Beginner


Joined: Sep 16, 2006 Posts: 11
|
Posted: Thu Oct 12, 2006 7:15 am Post subject: Re: Site Logo not centered |
|
|
| WOHOO you got it! THANKS SO MUCH! |
|
| Back to top |
|
|
|
|
|
|
|