Advertisement:

Author Topic: [tip/trick] Logo and Banners in 1.1.x  (Read 44738 times)

Offline coucnilhomeswap

  • Full Member
  • ***
  • Posts: 533
  • Gender: Male
[tip/trick] Logo and Banners in 1.1.x
« on: February 14, 2009, 08:54:03 AM »
i do not know if this is in the right place. if its not could the mods move it to the appropriate board.

this tip will do two things to the default (core) theme on SMF 1.1.8 and i think other versions too. I did these with out using mod's adn you can to. but if someone wishes to make them into mods then please feel free to do so and give me a bit of credit at least please.

tip 1, to remove the SMF logo in the Core theme look for this code in index.template.php
Code: [Select]
<img src="', $settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" />Highlight all of that code in your index.template.php and then delete it then save the file and if you did it correctly you should see that the SMFlogo has gone.

tip 2, to center you custom banner on the Core theme go back to your index.template.php and find the following code.

Code: [Select]
<img src="', $settings['header_logo_url'], '" style="margin: 4px;" alt="', $context['forum_name'], '" />';
Replace with
Code: [Select]
<div style="text-align: center;"><img src="', $settings['header_logo_url'], '" style="margin: 4px;" alt="', $context['forum_name'], '" /></div>';
save the file and your custom banner will now be centered

both tips are so easy that even a 3 year old could do it. but if you are having problems then ask me and i'll see what i can do for you.

*EDIT* if you use this tip could you post a reply here so i know if its working cheers
« Last Edit: July 06, 2009, 07:12:34 PM by H »

Offline phpMyTony

  • Sophist Member
  • *****
  • Posts: 1,192
  • Gender: Male
  • PereX
    • Tony's Free Fun Sites
Re: [tip/trick] for SMF 1.1.8 users
« Reply #1 on: February 14, 2009, 09:13:44 AM »
Wicked, thanks :)

Offline coucnilhomeswap

  • Full Member
  • ***
  • Posts: 533
  • Gender: Male
Re: [tip/trick] for SMF 1.1.8 users
« Reply #2 on: February 14, 2009, 09:22:46 AM »
your welcome CSS. i found a mod that removes the smf logo for people. but sometimes it dont work if another perticular mod is installed thats why id like some clever cloggs to do a mod for these tips that will do it in one go

Offline phpMyTony

  • Sophist Member
  • *****
  • Posts: 1,192
  • Gender: Male
  • PereX
    • Tony's Free Fun Sites
Re: [tip/trick] for SMF 1.1.8 users
« Reply #3 on: February 14, 2009, 09:30:14 AM »
Oh, I see.

Offline Kermit

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,365
  • Gender: Male
Re: [tip/trick] for SMF 1.1.8 users
« Reply #4 on: February 14, 2009, 09:44:45 AM »

Don't use <center> as that tag is deprecated.

Rather use <div style="text-align: center;"> {stuff} </div> instead.
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

Offline coucnilhomeswap

  • Full Member
  • ***
  • Posts: 533
  • Gender: Male
Re: [tip/trick] for SMF 1.1.8 users
« Reply #5 on: February 14, 2009, 10:14:19 AM »
ok thanks duncan85. The center tag does seem to work ok on my site though

Offline coucnilhomeswap

  • Full Member
  • ***
  • Posts: 533
  • Gender: Male
Re: [tip/trick] for SMF 1.1.8 users
« Reply #6 on: February 14, 2009, 10:15:46 AM »
read the first post again Duncan85 and see if thats ok

Offline Kermit

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,365
  • Gender: Male
Re: [tip/trick] for SMF 1.1.8 users
« Reply #7 on: February 14, 2009, 10:16:11 AM »
ok thanks duncan85. The center tag does seem to work ok on my site though


I didn't claim,that it won't work ^^

For centering it should be better used div tags


read the first post again Duncan85 and see if thats ok

Yep,it's ok now  :)
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

Offline coucnilhomeswap

  • Full Member
  • ***
  • Posts: 533
  • Gender: Male
Re: [tip/trick] for SMF 1.1.8 users
« Reply #8 on: February 14, 2009, 10:18:50 AM »
thanks for your help Duncan85 as always greatly appreciated

Offline Marcus Forsberg

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,608
  • Gender: Male
    • marcus.t.forsberg on Facebook
    • marcusforsberg on LinkedIn
    • @marcusforsberg on Twitter
    • marcusforsberg.net
Re: [tip/trick] for SMF 1.1.8 users
« Reply #9 on: February 15, 2009, 03:52:00 AM »
Moved to Tips and Tricks and added to Tips and Tricks (index). Thanks for your tip.

Offline dollarbabe

  • Semi-Newbie
  • *
  • Posts: 13
Re: [tip/trick] for SMF 1.1.8 users
« Reply #10 on: February 16, 2009, 05:49:57 AM »
thanks for this great tip allan1979.. ive been looking for something like this for weeks and this helps a lot. now my banner is already centered... youre a champ.. thanks again..

Offline coucnilhomeswap

  • Full Member
  • ***
  • Posts: 533
  • Gender: Male
Re: [tip/trick] for SMF 1.1.8 users
« Reply #11 on: February 16, 2009, 06:21:43 AM »
your very welcome dollarbabe.

Offline MissyNL

  • Full Member
  • ***
  • Posts: 643
  • Gender: Female
Re: [tip/trick] for SMF 1.1.8 users
« Reply #12 on: February 25, 2009, 04:37:47 PM »
great tips :)

but i think with tip 1, i replaced the image with my own PNG image.. with no effort i have a decent logo with the background transparant and with a dropshadow :) It looks very nice :)

Also.. for the TS.. i would rename this topic to Tips for 1.1.8 - Logo  or something. This would be more clear for users who run thru the tips :)
Sorry for my poor English, but i think it's probably better then your Dutch :)

Offline TDNY

  • Jr. Member
  • **
  • Posts: 330
Re: [tip/trick] for SMF 1.1.8 users
« Reply #13 on: March 02, 2009, 03:48:17 PM »
Wow Thanks again for the tip, I did the first part step 1. removed the logo
thanks for the tip ;)

A little nervous to do step 2 I would love to center my site title, make it bigger, a different color and font style. I'll keep looking around, thanks so much.

TD

Offline coucnilhomeswap

  • Full Member
  • ***
  • Posts: 533
  • Gender: Male
Re: [tip/trick] for SMF 1.1.8 users
« Reply #14 on: March 02, 2009, 03:54:50 PM »
centering the logo is easy. no need to worry. the other stuff is probably a css issue i think

Offline TDNY

  • Jr. Member
  • **
  • Posts: 330
Re: [tip/trick] for SMF 1.1.8 users
« Reply #15 on: March 02, 2009, 03:59:02 PM »
centering the logo is easy. no need to worry. the other stuff is probably a css issue i think

I'll center it for now, I was just nervous cause I saw what Duncan said about using Div instead of center. If the code in your 1st post is good to go let me know, thanks.

TD

Offline coucnilhomeswap

  • Full Member
  • ***
  • Posts: 533
  • Gender: Male
Re: [tip/trick] for SMF 1.1.8 users
« Reply #16 on: March 02, 2009, 04:10:56 PM »
yes i replaced my code with the code duncan gave me and its working fine.

Offline TDNY

  • Jr. Member
  • **
  • Posts: 330
Re: [tip/trick] for SMF 1.1.8 users
« Reply #17 on: March 02, 2009, 04:14:36 PM »
yes i replaced my code with the code duncan gave me and its working fine.

Not working :( is it supposed to take effect right away? I reloaded my site logged in and out, nothing, my site title is still on the left.
TD

Note, I don't have a custom banner I'm trying to move my default site title to center.
TD
« Last Edit: March 02, 2009, 04:19:06 PM by TDNY »

Offline coucnilhomeswap

  • Full Member
  • ***
  • Posts: 533
  • Gender: Male
Re: [tip/trick] for SMF 1.1.8 users
« Reply #18 on: March 02, 2009, 04:24:55 PM »
it will not work with the site name you need a custom banner for it to take effect

Offline TDNY

  • Jr. Member
  • **
  • Posts: 330
Re: [tip/trick] for SMF 1.1.8 users
« Reply #19 on: March 02, 2009, 04:28:28 PM »
it will not work with the site name you need a custom banner for it to take effect

Phewf well thanks for that, thought I screwed something up. I need to get a banner I guess.

Should I change the codes back or just leave it?

Thanks again so much for your help, advice and support I really appreciate it.

TD