View Full Version : Header problems - got larger after edit?
EricKonieczny
14th of January 2005 (Fri), 22:36
I edited the header.php in dreamweaver and only changed the links and text, and then uploaded it to all 3 folders.
but the header istelf increased in size, "thicker" and I am not sure why? I changed no other code.
Do I need to edit some other file also?
How do I get it back to the original size while still keeping my links
http://www.ekreating.com/gallery/index.php?pass=public&lang=eng
Simple change but odd behavior, not sure why this would happen?
EricKonieczny
16th of January 2005 (Sun), 10:04
anyone?
Pekka
16th of January 2005 (Sun), 10:58
The extra black area is not from your header.php but your subheader.php where you have set it all black for some reason. The basic subheader code is:
<?php if ($currentpage != "index") { ?>
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#000000"><tr><td width="1" bgcolor="#<?php print ee_hexcolorshifter($s_back_color,".4"); ?>"><img src="<?php print $toroot; ?>graphs/x.gif" width="1" height="1" alt="" border="0"></td></tr><tr><td width="1" bgcolor="#<?php print ee_hexcolorshifter($s_back_color,".75"); ?>"><img src="<?php print $toroot; ?>graphs/x.gif" width="1" height="1" alt="" border="0"></td></tr><tr><td width="1" bgcolor="#<?php print ee_hexcolorshifter($s_back_color,".8"); ?>"><img src="<?php print $toroot; ?>graphs/x.gif" width="1" height="1" alt="" border="0"></td></tr><tr><td width="1" bgcolor="#<?php print ee_hexcolorshifter($s_back_color,".88"); ?>"><img src="<?php print $toroot; ?>graphs/x.gif" width="1" height="1" alt="" border="0"></td></tr><tr><td width="1" bgcolor="#<?php print ee_hexcolorshifter($s_back_color,".94"); ?>"><img src="<?php print $toroot; ?>graphs/x.gif" width="1" height="1" alt="" border="0"></td></tr><tr><td width="1" bgcolor="#<?php print ee_hexcolorshifter($s_back_color,".96"); ?>"><img src="<?php print $toroot; ?>graphs/x.gif" width="1" height="1" alt="" border="0"></td></tr><tr><td width="1" bgcolor="#<?php print ee_hexcolorshifter($s_back_color,".98"); ?>"><img src="<?php print $toroot; ?>graphs/x.gif" width="1" height="1" alt="" border="0"></td></tr><tr><td width="1" bgcolor="#<?php print ee_hexcolorshifter($s_back_color,"1.0"); ?>"><img src="<?php print $toroot; ?>graphs/x.gif" width="1" height="1" alt="" border="0"></td></tr></table>
<?php } ?>
which means it creates a fade-out from darkened background color to background color. In you page the fade -out is made of all black, so it appears as black strip. Also, above code makes sure that the fade does not appear at all on index page.
You can remove the subheader from index page by editing pagetemplates/index/default.php and changing line
@include($toroot . "subheader.php");
to
//@include($toroot . "subheader.php");
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.