Clan Adverts

Sponsors

CT on Facebook

Latest Product

User Box

Anonymous
38.107.179.218
Nickname:

Password:

Security Code
Security Code
Type Security Code


PND Downloads Feed

Phpnuke Downloads
How to Delete or Reset yo...
How to Delete or Reset your PHPNuke Admin Account
Lost your admin password ?  Cant login to your admin account ? This s...
Back Online & Stuff
Back Online & Stuff
Look at us with our nifty website back up and running… Seriously...
How to edit the admins in...
How to edit the admins in the forums
Here is a way to make someone admin in your forums on your Evo site. I...
Demo Splash Screen
Demo Splash Screen
Ped @ Clan Themes has released a simple splash screen entrance hack. ...
Free Phpnuke Business The...
Free Phpnuke Business Theme 6
This is the 6th Business theme for Phpnuke that Clan Themes has releas...
Tricked Out Slider
Tricked Out Slider
We have seen some great new things come out of Tricked Out News and th...

Custom Work

PHP Nuke Custom Work

www.clanthemes.com :: View topic - Chromowb header edit
Chromowb header edit

5 Replies / 273 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » PhpNuke Theme Edits

View previous topic :: View next topic


KillerBee123
Reputation: 12.5 Add RepSubtract Rep
Local time: 7:40 AM
Location: England
uk.gif

Armour Whore
Armour Whore

0.04 posts per day
Medals: 0

Joined: May 14, 2009
Last Visit: 25 May 2012
Posts: 42
Points: 2242 

Post Chromowb header edit Posted: Sat Dec 10, 2011 8:34 pm

hi, i am trying to edit the header of the chromoWB theme that comes with nuke evolution.

what i would like is the logo to be displayed in the center. i have adjusted the code so that the left side is not connected to the logo allowing me to move the logo to the center, however i cant figure the code to center the logo. here is the code in question.
can any one direct me on how to do this?

thank you.

Code:

echo "      <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";
echo "        <tr>\n";
echo "          <td width=\"61\"><img src=\"themes/ChromoWB/images/hd/hdl_03.jpg\" alt=\"\" width=\"61\" height=\"98\"></td>\n";
echo "          <td width=\"37\"><img src=\"themes/ChromoWB/images/hd/hdl_02.gif\" alt=\"\" width=\"37\" height=\"98\"></td>\n";

echo "          <td width=\"398\"><img src=\"themes/ChromoWB/images/hd/logo.jpg\" alt=\"\" width=\"398\" height=\"98\"></td>\n";
$ads = ads(0);
if(empty($ads)) {
    echo "          <td style=\"background-image: url(themes/ChromoWB/images/hd/hdr_01_stretch.gif)\"><img src=\"themes/".$theme_name."/images/spacer.gif\" alt=\"\" width=\"1\" height=\"1\"></td>\n";
} else {
    echo "          <td style=\"background-image: url(themes/ChromoWB/images/hd/hdr_01_stretch.gif)\">$ads</td>\n";
}
echo "          <td width=\"37\"><img src=\"themes/ChromoWB/images/hd/hdr_02.gif\" alt=\"\" width=\"37\" height=\"98\"></td>\n";
echo "          <td width=\"61\"><img src=\"themes/ChromoWB/images/hd/hdr_03.jpg\" alt=\"\" width=\"61\" height=\"98\"></td>\n";
echo "        </tr>\n";
echo "      </table>\n";
 

 
View user's profileSend private messageVisit poster's website Reply with quote

Noto
Reputation: 1072.7 Add RepSubtract Rep
votes: 13
Local time: 12:40 PM
Location: Sunny UK !
uk.gif

Site Admin
Site Admin

0.60 posts per day
Medals: 3 (View more...)
Site Supporter (Amount: 1)
Theme Guru
Theme Guru
Joined: May 03, 2007
Last Visit: 26 May 2012
Posts: 1118
Points: 73959 

Post Chromowb header edit Posted: Sat Dec 10, 2011 9:23 pm

You need to remove the fixed width from the cell that has your image inside it. then align the same cells contents to center.

Change this line:
Code:
echo "          <td width=\"398\"><img src=\"themes/ChromoWB/images/hd/logo.jpg\" alt=\"\" width=\"398\" height=\"98\"></td>\n";

To:
Code:
echo "          <td align=\"center\"><img src=\"themes/ChromoWB/images/hd/logo.jpg\" alt=\"\" width=\"398\" height=\"98\"></td>\n";
 

Tactical Combat Evolved - Sig Showcase  
View user's profileSend private messageVisit poster's website Reply with quote

KillerBee123
Reputation: 12.5 Add RepSubtract Rep
Local time: 7:40 AM
Location: England
uk.gif

Armour Whore
Armour Whore

0.04 posts per day
Medals: 0

Joined: May 14, 2009
Last Visit: 25 May 2012
Posts: 42
Points: 2242 

Post Re: Chromowb header edit Posted: Sat Dec 10, 2011 9:36 pm

Thank you for the reply noto. i have changed the code and got the image centred, the problem i have now is the background does not work. if you want to take a look on the site you might see what i mean better than i can describe lol.

you can check it here on our evo test site. www.evo.1stmsob.net

again thank you
 

 
View user's profileSend private messageVisit poster's website Reply with quote


Noto
Reputation: 1072.7 Add RepSubtract Rep
votes: 13
Local time: 12:40 PM
Location: Sunny UK !
uk.gif

Site Admin
Site Admin

0.60 posts per day
Medals: 3 (View more...)
Site Supporter (Amount: 1)
Theme Guru
Theme Guru
Joined: May 03, 2007
Last Visit: 26 May 2012
Posts: 1118
Points: 73959 

Post Re: Chromowb header edit Posted: Sat Dec 10, 2011 9:52 pm

Change:
Code:
echo "          <td align=\"center\"><img src=\"themes/ChromoWB/images/hd/logo.jpg\" alt=\"\" width=\"398\" height=\"98\"></td>\n";

to:
Code:
echo "          <td align=\"center\" style=\"background-image: url(themes/ChromoWB/images/hd/hdr_01_stretch.gif)\"><img src=\"themes/ChromoWB/images/hd/logo.jpg\" alt=\"\" width=\"398\" height=\"98\"></td>\n";


Then make a new logo image that dont have that bit on the left.
 

 
View user's profileSend private messageVisit poster's website Reply with quote

KillerBee123
Reputation: 12.5 Add RepSubtract Rep
Local time: 7:40 AM
Location: England
uk.gif

Armour Whore
Armour Whore

0.04 posts per day
Medals: 0

Joined: May 14, 2009
Last Visit: 25 May 2012
Posts: 42
Points: 2242 

Post Re: Chromowb header edit Posted: Sat Dec 10, 2011 9:59 pm

Thank you VERY much noto, you da man! Angel

all fixed. and about the logo... working on it right now.

again thank you.
 

 
View user's profileSend private messageVisit poster's website Reply with quote

Noto
Reputation: 1072.7 Add RepSubtract Rep
votes: 13
Local time: 12:40 PM
Location: Sunny UK !
uk.gif

Site Admin
Site Admin

0.60 posts per day
Medals: 3 (View more...)
Super Dedicated User (Amount: 1)
Theme Guru
Theme Guru
Joined: May 03, 2007
Last Visit: 26 May 2012
Posts: 1118
Points: 73959 

Post Re: Chromowb header edit Posted: Sat Dec 10, 2011 10:01 pm

Your welcome m8.
 

 
View user's profileSend private messageVisit poster's website Reply with quote

Post new topic   Reply to topic  
   www.clanthemes.com Forum Index » PhpNuke Theme Edits

«««« Quick Reply »»»»
 
5 Replies / 273 Views
Page 1 of 1
All times are GMT
Display posts from previous:   
 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum