Home | Support Forums | Your Account | Gallery [2] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

Site Logo not centered
Goto page 1, 2  Next
 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Issues » Other PHPNuke Issues View previous topicPrinter friendly versionView next topic
Author Message
electricshaka

Beginner
Beginner


Joined: Sep 16, 2006
Posts: 11

PostPosted: Sun Oct 01, 2006 3:06 pm    Post subject: Site Logo not centered Reply with quote

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
Offline View user's profile Send private message
AdBot
   Post subject: Site Logo not centered  

Back to top
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6271
Location: Washington Township, NJ, USA

PostPosted: Tue Oct 03, 2006 6:58 am    Post subject: Re: Site Logo not centered Reply with quote

look in your theme.php for "images/logo.gif" and put center tags around it.
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
electricshaka

Beginner
Beginner


Joined: Sep 16, 2006
Posts: 11

PostPosted: Wed Oct 04, 2006 3:04 pm    Post subject: Re: Site Logo not centered Reply with quote

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
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6271
Location: Washington Township, NJ, USA

PostPosted: Wed Oct 04, 2006 8:01 pm    Post subject: Re: Site Logo not centered Reply with quote

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
Offline View user's profile Send private message Visit poster's website
electricshaka

Beginner
Beginner


Joined: Sep 16, 2006
Posts: 11

PostPosted: Thu Oct 05, 2006 9:06 am    Post subject: Re: Site Logo not centered Reply with quote

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
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6271
Location: Washington Township, NJ, USA

PostPosted: Thu Oct 05, 2006 9:10 am    Post subject: Re: Site Logo not centered Reply with quote

add a
Code: › <center>
after
Code: › <td rowspan=\"2\">
and a
Code: › </center>
before
Code: › <td>

_________________
Back to top
Offline View user's profile Send private message Visit poster's website
electricshaka

Beginner
Beginner


Joined: Sep 16, 2006
Posts: 11

PostPosted: Sat Oct 07, 2006 10:34 pm    Post subject: Re: Site Logo not centered Reply with quote

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
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6271
Location: Washington Township, NJ, USA

PostPosted: Sun Oct 08, 2006 10:57 am    Post subject: Re: Site Logo not centered Reply with quote

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
Offline View user's profile Send private message Visit poster's website
electricshaka

Beginner
Beginner


Joined: Sep 16, 2006
Posts: 11

PostPosted: Mon Oct 09, 2006 6:55 am    Post subject: Re: Site Logo not centered Reply with quote

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
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6271
Location: Washington Township, NJ, USA

PostPosted: Mon Oct 09, 2006 7:00 am    Post subject: Re: Site Logo not centered Reply with quote

please paste your code snips inside bbcode "code" tags:
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\"><center>"
   ."<a href=\"index.php\"><img src=\"themes/Kaput/images/logo.gif\" border=\"0\" alt=\""._WELCOMETO." $sitename\"></a></center></td>"
   ."<td align=right width=100%>"
        ."<td align=\"right\" valign=\"bottom\" width=\"100%\">"
        ."<font class=\"content\"><b>"
        ."</b></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"; }

note the addtion of center tags, and the removal of the align tag in the td declaration.
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
electricshaka

Beginner
Beginner


Joined: Sep 16, 2006
Posts: 11

PostPosted: Mon Oct 09, 2006 10:22 pm    Post subject: Re: Site Logo not centered Reply with quote

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
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6271
Location: Washington Township, NJ, USA

PostPosted: Tue Oct 10, 2006 6:35 am    Post subject: Re: Site Logo not centered Reply with quote

try
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 "<center><table border=\"0\"><tr><td rowspan=\"2\">"
   ."<a href=\"index.php\"><img src=\"themes/Kaput/images/logo.gif\" border=\"0\" alt=\""._WELCOMETO." $sitename\"></a></td>"
   ."<td align=right width=100%>"
        ."<td align=\"right\" valign=\"bottom\" width=\"100%\">"
        ."<font class=\"content\"><b>"
        ."</b></font></td></tr></table></center>\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
Offline View user's profile Send private message Visit poster's website
electricshaka

Beginner
Beginner


Joined: Sep 16, 2006
Posts: 11

PostPosted: Tue Oct 10, 2006 7:21 pm    Post subject: Re: Site Logo not centered Reply with quote

Still the same. Sad
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6271
Location: Washington Township, NJ, USA

PostPosted: Wed Oct 11, 2006 6:55 am    Post subject: Re: Site Logo not centered Reply with quote

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 "<center>"
   ."<a href=\"index.php\"><img src=\"themes/Kaput/images/logo.gif\" border=\"0\" alt=\""._WELCOMETO." $sitename\"></a></center>\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
Offline View user's profile Send private message Visit poster's website
electricshaka

Beginner
Beginner


Joined: Sep 16, 2006
Posts: 11

PostPosted: Thu Oct 12, 2006 7:15 am    Post subject: Re: Site Logo not centered Reply with quote

WOHOO you got it! THANKS SO MUCH!
Back to top
Offline View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Issues » Other PHPNuke Issues View previous topicPrinter friendly versionView next topic
Goto page 1, 2  Next

 
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
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Web HostingDedicated ServersDomain NamesDomain Name RegistrationDedicated Web HostingSearch Engine OptimisationSEOWeb Design New YorkSEO Web DesignWeb hosting AustraliaSEO

6th year online! 2003-2008
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia