Customizing SMF > Graphics and Templates

Removing default smflogo

(1/3) > >>

houston:
I have been trying to remove the smflogo code from the index.template.php file and keep getting parseing errors. Which code do I need to remove. My goal is to replace the logo with the shoutbox in the default theme.

Thanks

Elmacik:
this is the whole forum name and logo codes. if you remove it from the original file,
you wont be getting any parse errors.
--- Code: --- // This part is the logo and forum name.  You should be able to change this to whatever you want...
echo '
<img src="', $settings['images_url'], '/smflogo.gif" style="width: 250px; float: ', !$context['right_to_left'] ? 'right' : 'left', ';" alt="" />';
if (empty($settings['header_logo_url']))
echo '
<span style="font-family: Georgia, sans-serif; font-size: xx-large;">', $context['forum_name'], '</span>';
else
echo '
<img src="', $settings['header_logo_url'], '" alt="', $context['forum_name'], '" border="0" />';
--- End code ---

houston:

--- Quote from: elmacik on October 12, 2005, 03:36:52 PM ---this is the whole forum name and logo codes. if you remove it from the original file,
you wont be getting any parse errors.
--- Code: --- // This part is the logo and forum name.  You should be able to change this to whatever you want...
echo '
<img src="', $settings['images_url'], '/smflogo.gif" style="width: 250px; float: ', !$context['right_to_left'] ? 'right' : 'left', ';" alt="" />';
if (empty($settings['header_logo_url']))
echo '
<span style="font-family: Georgia, sans-serif; font-size: xx-large;">', $context['forum_name'], '</span>';
else
echo '
<img src="', $settings['header_logo_url'], '" alt="', $context['forum_name'], '" border="0" />';
--- End code ---

--- End quote ---

That would remove the forum name which I have replaced with my own banner. All I want to remove is the code for the default logo and replace it with the code for the shoutbox. Thanks for your quick response.

Elmacik:
then replace this code with yours:
--- Code: --- echo '
<img src="', $settings['images_url'], '/smflogo.gif" style="width: 250px; float: ', !$context['right_to_left'] ? 'right' : 'left', ';" alt="" />';
--- End code ---
and dont forget to echo your codes before you put there
i mean you have to use a structure like this:

--- Code: ---echo '     your codes    ';
--- End code ---

houston:
I give it a try.

Thanks

Navigation

[0] Message Index

[#] Next page

Go to full version