Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: Surferbird - huhtikuu 10, 2006, 05:07:55 IP

Otsikko: How to do?
Kirjoitti: Surferbird - huhtikuu 10, 2006, 05:07:55 IP
When put own logo, using the right place and http in default theme setuo/config, how to remove SMF logo and the blue bar? Now the logo come there but overlapping the old blue and smf logo is still there. This not look very nice.
Otsikko: Re: How to do?
Kirjoitti: Deaks - huhtikuu 10, 2006, 05:09:29 IP
have you got a screenshot?
Otsikko: Re: How to do?
Kirjoitti: Surferbird - huhtikuu 10, 2006, 05:54:52 IP
Like this here, and i would like the smf logo removed. Also my own logo bg and not the blue bar there?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fsalamatutka.webspacedepot.net%2Fstuff%2F2.gif&hash=4b0bca51fd92502c33b53636b1ab11fec4ff7510)
Otsikko: Re: How to do?
Kirjoitti: Deaks - huhtikuu 10, 2006, 06:34:10 IP
copy your index.template.php

and in the old one look for this

<body>';

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>';


now to remove the blue look for

<td class="catbg" height="32">';

and replace with

<td>';

then look for

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


and delette
Otsikko: Re: How to do?
Kirjoitti: Surferbird - huhtikuu 10, 2006, 07:02:41 IP
Thanks, where should i put my own logo/banner, like here in this forum at top? Is the place in theme setup ok place?
Otsikko: Re: How to do?
Kirjoitti: Deaks - huhtikuu 10, 2006, 07:05:45 IP
to be honest its your choice what ive said wont effect your banner much
Otsikko: Re: How to do?
Kirjoitti: Surferbird - huhtikuu 11, 2006, 05:06:38 IP
Thanks, your help was big to me, now all looks much betterĀ  :D
Otsikko: Re: How to do?
Kirjoitti: Deaks - huhtikuu 11, 2006, 05:09:28 IP
 your welcome :)