Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: TomFitz - heinäkuu 22, 2011, 10:10:35 AP

Otsikko: Would like to add custom logo at the top of the page.
Kirjoitti: TomFitz - heinäkuu 22, 2011, 10:10:35 AP
Please forgive my ignorance, this is my first tim attempting anythng like this. I have inly worked with HTML some years ago.

I would like to add my company's logo at the top center of the page,and remove "My Community" at the top left and remove the SMF logo on the top right..  I am using the default theme.

The fourm is at : fsi.trinityware.com/FSI_Board2/index.php
and the logo I would like to add is at:  fsi.trinityware.com/FSI_Board2/FSI_logo.png
Thanks for any assistance,

Tom.....
Otsikko: Re: Would like to add custom logo at the top of the page.
Kirjoitti: ARG01 - heinäkuu 22, 2011, 11:30:47 AP
Check Here (http://www.simplemachines.org/community/index.php?topic=443147.msg3114747#msg3114747) and see if that helps.  ;)
Otsikko: Re: Would like to add custom logo at the top of the page.
Kirjoitti: TomFitz - heinäkuu 22, 2011, 01:20:19 IP
Thanks for your reply....
I'll give it a try when I get home (at work right now) and let you know how it works...

Tom....
Otsikko: Re: Would like to add custom logo at the top of the page.
Kirjoitti: TomFitz - heinäkuu 22, 2011, 03:30:41 IP
OK, Before I go and mess everything up I just wanted to check with you to see if I have it correct..
Below is the code that I will be replacing::

Code: [Select]
function template_body_above()
{
   global $context, $settings, $options, $scripturl, $txt, $modSettings;

   echo !empty($settings['forum_width']) ? '
<div id="wrapper" style="width: ' . $settings['forum_width'] . '">' : '', '
<div class="centertext"><a href="http://fsi.trinityware.com/FSI_Board2/index.php/"><img src="',$settings['images_url'],'/fsi_logo.png" /></a></div><br />
   <div id="header"><div class="frame">
      <div id="top_section">
         <h1 class="forumtitle">
            <a href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? $context['forum_name'] : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" />', '</a>
         </h1>';

It that it?

Thanks again for your help..

Tom
Otsikko: Re: Would like to add custom logo at the top of the page.
Kirjoitti: ARG01 - heinäkuu 23, 2011, 12:18:42 AP
Looks good to me. Just make sure to keep a backup of your file before making any changes.  ;)
Otsikko: Re: Would like to add custom logo at the top of the page.
Kirjoitti: TomFitz - heinäkuu 24, 2011, 08:04:46 AP
Thanks So Much!  ....Just what I needed..

I used to do HTML years ago but haven't in years.. Now a lot older, my mind is not as quick in learning all the new developments and methods as it was years ago..  (going a little senile I guess   :-[ )

Thanks again..