Where is the header code? in 1.1.4

Started by wrongwood, October 21, 2007, 11:55:40 PM

Previous topic - Next topic

wrongwood

I would like to replace the entire table that contains the header code with a custom logo ie banner.

I have looked up and down on this forum and not been able to find a current question regarding this topic.

I don't want my logo to the extreme right I would like it to take up the entire table so that it doesn't look like a .gif is placed there.

I would like the logo to look like it is a part of the forum.  My background on my .gif is already transparent but it still stretches the table which I don't want.

My solution would be to replace the code or the table all together.  Unless someone knows of a better way.  Please respond with the code changes here if you would.

Anyone know how to do this?

guppy

Post in Graphics and Templates for theme related support.

Open Themes/your_theme/index.template.php. Find this code:

echo '
<div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' : '', '>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="catbg" height="32">';

if (empty($settings['header_logo_url']))
echo '
<span style="font-family: Verdana, sans-serif; font-size: 140%; ">', $context['forum_name'], '</span>';
else
echo '
<img src="', $settings['header_logo_url'], '" style="margin: 4px;" alt="', $context['forum_name'], '" />';

echo '
</td>
<td align="right" class="catbg">
<img src="', $settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" />
</td>
</tr>
</table>';


Can't picture what you were saying. But the above code is where your logo and SMF logo are located.

wrongwood

I appreciate that however, I know that and have been able to completely wipe the header out but deleting that entire line that you referenced.

I am asking how to stretch out the .gif so that it take up the entire area (table)

or....after deleting the above referenced code put in a code that would call on my banner.

If I am not being too clear then let me say again: put a logo in place of the code that you have above. 

Would it be just a url code?  How would it be written in php?  or does it even have to be written in php?

NathanKP

Just use HTML code.  Use an <img> tag and make sure to set the width="100%"   Make sure, though, that your logo has the right size and/or proportions, or the logo will be stretched out of shape.

wrongwood

Thanks for your reply:

are you saying that I should delete the current code which is mentioned above by another member and then insert an image code?  or are you saying that somewhere in the code I should place the image code?

Also, if it wouldn't be too much trouble...how about an example?  where the code goes and what it is exactly?

Advertisement: