News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Custom Picture in forum header

Started by dkitchen, May 21, 2009, 01:03:52 AM

Previous topic - Next topic

dkitchen

How do I add my own custom pic or logo in the forum header?

[SiNaN]

Admin > Current Theme > Logo image URL:

Enter the logo image url there, like: http://yoursite.com/images/mybanner.gif
Former SMF Core Developer | My Mods | SimplePortal

dkitchen

How do i center the pic on the forum?

[SiNaN]

./Themes/default/index.template.php

Code (Find) Select
<td class="catbg" height="32">';

Code (Replace) Select
<td class="catbg" height="32" style="text-align: center;">';

Code (Find and Remove) Select
<td align="right" class="catbg">
<img src="', $settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" />
</td>
Former SMF Core Developer | My Mods | SimplePortal

tfs

Might this one have been broken by RC1-1?  The instructions don't seem to be correct anymore.
A good tree cannot bring forth evil fruit, neither can an evil tree bring forth good fruit.

[SiNaN]

That was for SMF 1.1 versions. If you are using SMF 2.0 RC1-1:

Same file.

Code (Find) Select
<div class="catbg">
<img class="floatright" id="smflogo" src="' , $settings['images_url'] , '/smflogo.gif" alt="Simple Machines Forum" />


Code (Replace) Select
<div class="catbg" style="text-align: center;">
Former SMF Core Developer | My Mods | SimplePortal

tfs

Hey thanks!  That put the picture where I wanted it, and centered it.

Do you also know how to make it so that if the banner image is very wide (the one I want to use is 1300x160) to have it gracefully work when the browser window is narrower than the image?  I'd like it to stay centered and to have the left and right edges of the banner just disappear and slip behind the edges of the forum, not stick out of the forum boundary like it does now.
A good tree cannot bring forth evil fruit, neither can an evil tree bring forth good fruit.

GPz750

Try this:

<img class="floatright" id="smflogo" src="' , $settings['images_url'] , '/smflogo.gif" alt="Simple Machines Forum" width="100%" />

That should stretch the image across the header regardless of the window size.

alke

Quote from: GPz750 on May 28, 2009, 04:56:31 PM
Try this:

<img class="floatright" id="smflogo" src="' , $settings['images_url'] , '/smflogo.gif" alt="Simple Machines Forum" width="100%" />

That should stretch the image across the header regardless of the window size.

This is obviously for 1.1.x is there a similar code for 2.0 RC1-1
ATHLONEONLINE.COM
        "The Talk Of The Town"

[SiNaN]

This is for SMF 2.0 RC1-1 SMF Default Theme - Core. It might be different though, if you are using a custom theme.

Quote from: [SiNaN] on May 26, 2009, 04:50:28 AM
That was for SMF 1.1 versions. If you are using SMF 2.0 RC1-1:

Same file.

Code (Find) Select
<div class="catbg">
<img class="floatright" id="smflogo" src="' , $settings['images_url'] , '/smflogo.gif" alt="Simple Machines Forum" />


Code (Replace) Select
<div class="catbg" style="text-align: center;">
Former SMF Core Developer | My Mods | SimplePortal

tfs

Can someone update this one for SMF 2.0 RC2?
A good tree cannot bring forth evil fruit, neither can an evil tree bring forth good fruit.

tfs

Still looking for help centering the banner image on SMF 2.0 RC2.
A good tree cannot bring forth evil fruit, neither can an evil tree bring forth good fruit.

Jakob Fel

<center><img src='http://img138.imageshack.us/img138/3848/joquanlogoproto.jpg'</center> is the code I use on my main forum, joquanltdhq.smfforfree.com (use your own image please  ;) )

Go to Admin->Manage Styles->Headers and Footers and enter the code in the section marked "Headers"

Hope that helped!
Freelance writer and advocate for security, privacy & DRM-free distribution
Support and Community Management at SMFNew Free Forum Hosting

tfs

I don't seem to have a "Manage Styles" in my admin menu.  Might you have a mod installed that I don't have?
A good tree cannot bring forth evil fruit, neither can an evil tree bring forth good fruit.

Gurbet_42

#14

* Admin Center »
    * Themes and Layout »
    * Theme Settings »
    * (Choose your theme from the list) »
    * Logo Image URL »
    * Save

Jakob Fel

Quote from: tfs on January 22, 2010, 11:29:59 PM
I don't seem to have a "Manage Styles" in my admin menu.  Might you have a mod installed that I don't have?

No, I have no mods whatsoever on my site. What is your site hoster? (smfforfree, mysmf, etc?) It is under the admin menu.

Configuration->Manage Styles->Headers/Footers

If you cannot figure it out, I will try to get a video of me doing it with my test forum.
Freelance writer and advocate for security, privacy & DRM-free distribution
Support and Community Management at SMFNew Free Forum Hosting

tfs

Quote from: Gurbet_1907 on January 24, 2010, 03:05:35 PM

* Admin Center »
    * Themes and Layout »
    * Theme Settings »
    * (Choose your theme from the list) »
    * Logo Image URL »
    * Save

I'm confused as to what your post means.  There's no "Manage Styles" in any of the menus you posted.  ?
A good tree cannot bring forth evil fruit, neither can an evil tree bring forth good fruit.

tfs

Quote from: Joquan Games Studios on January 24, 2010, 03:58:53 PM
Quote from: tfs on January 22, 2010, 11:29:59 PM
I don't seem to have a "Manage Styles" in my admin menu.  Might you have a mod installed that I don't have?

No, I have no mods whatsoever on my site. What is your site hoster? (smfforfree, mysmf, etc?) It is under the admin menu.

Configuration->Manage Styles->Headers/Footers

If you cannot figure it out, I will try to get a video of me doing it with my test forum.

My host is 1and1, but I'm not sure what that could have to do with it.  I'm talking about the admin menu inside of SMF 2.0 RC2.

Perhaps if you could post the URL of the path to the Manage Styles that you're talking about?
A good tree cannot bring forth evil fruit, neither can an evil tree bring forth good fruit.

Jakob Fel

Quote from: tfs on January 24, 2010, 04:46:37 PM
Quote from: Joquan Games Studios on January 24, 2010, 03:58:53 PM
Quote from: tfs on January 22, 2010, 11:29:59 PM
I don't seem to have a "Manage Styles" in my admin menu.  Might you have a mod installed that I don't have?

No, I have no mods whatsoever on my site. What is your site hoster? (smfforfree, mysmf, etc?) It is under the admin menu.

Configuration->Manage Styles->Headers/Footers

If you cannot figure it out, I will try to get a video of me doing it with my test forum.

My host is 1and1, but I'm not sure what that could have to do with it.  I'm talking about the admin menu inside of SMF 2.0 RC2.

Perhaps if you could post the URL of the path to the Manage Styles that you're talking about?

I have SMF 1.1, but I think you are misunderstanding our directions. Follow the exact path of this and it should show up.

Configuration->Manage Styles->Headers/Footers

Freelance writer and advocate for security, privacy & DRM-free distribution
Support and Community Management at SMFNew Free Forum Hosting

tfs

We seem to be at an impasse.  I have both 1.1.11 forums and 2.0 forums, and the menu path you give does not exist in either of them.

As I mentioned above, why don't you give us the URL of where you're at?  As an example...

http://www.simplemachines.org/community/index.php?action=post;topic=311936.0;num_replies=18

That is the url to what I'm posting right now.  You could sanitize it to remove the path to your forum if you like, such as this...

http://www.xyz/index.php?action=post;topic=311936.0;num_replies=18

A good tree cannot bring forth evil fruit, neither can an evil tree bring forth good fruit.

Advertisement: