adding my own logo and removing smf logo

Started by damien4482, July 12, 2008, 05:29:30 PM

Previous topic - Next topic

damien4482

i have searched all over and have found many answers however i am unable to find the correct fix
no.1 removing smf logo
i have looked through my Classic YaBB SE Theme (2.0 Beta 3 Public) index.template.php file only to not be able to see the line i need to alter
no.2 adding my logo
i have tryd to put my logo url into Theme URLs and Configuration but will not display i just get a red x
i am running the forum myself so i no that the logo is there and the path is correct. I'm not sure if there is a set format or size for the logo which is causing the problems so any help with both  problems i would be greatfull

Nathaniel

There should be a setting in the SMF Admin area for each theme's logo, under 'Admin' -> 'Configuration' -> 'Themes and Layout Settings' -> 'Themes Settings' tab -> Edit theme by clicking on name, then finally you want to change the  "Logo image URL:" setting under "Theme Options and Preferences".
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

damien4482

Quote from: LHVWB on July 12, 2008, 06:26:23 PM
There should be a setting in the SMF Admin area for each theme's logo, under 'Admin' -> 'Configuration' -> 'Themes and Layout Settings' -> 'Themes Settings' tab -> Edit theme by clicking on name, then finally you want to change the  "Logo image URL:" setting under "Theme Options and Preferences".
this is where i tryd to input my logo however i have found that i hadnt put the .gif on the end now this works.
i still cant get rid of the smf logo
and is it posible to put my logo as a banner across the top of the page

Bulakbol

You can delete the smflogo.gif from images directory and rename your logo as smflogo.gif. Or, in the index.template.php, you can delete this line or change the smflogo.gif with the name of your logo.
Quote<td valign="middle" align="left"><img src="', !empty($settings['header_logo_url']) ? $settings['header_logo_url'] : $settings['images_url'] . '/smflogo.gif', '" alt="" /></td>
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

damien4482

ok i managed to changed my logo for the smf one by changing its name however when i look in the index.template.php file i am unable to find that line you are referring to. i have checked and double checked and still cant see it. i thought it would have been in Beginning on line 126:
function template_body_above()
i am using
SMF 2.0 Beta 3.1 Public  SMF Default Theme - Core

Bulakbol

#5
yay sorry, maybe I gave you the one from 1.1.5. Here's from 2.0 beta 3 classic/index.template.php
Quote<td valign="middle" align="left"><img src="', !empty($settings['header_logo_url']) ? $settings['header_logo_url'] : $settings['images_url'] . '/smflogo.gif', '" alt="" /></td>

edit
Oppss it's the same thing. Search for smflogo.gif and you'll find the line.
/edit
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

damien4482

#6
looked through the script and cant find any mention of smflogo.gif
i have looked in the Babylon Theme and the line is there.guess its the way that template has been made.
what if i was to put a huge banner from left to right what code would i ned to change and to what?
thx for the help.


edit..
i have made a new banner in .gif format however when i add the url it is way to big for the screen how do you get it to fit from left to right on screen.?
also still cant find the code i need in Classic YaBB SE Theme

Rumbaar

It should look like:
<img src="', !empty($settings['header_logo_url']) ? $settings['header_logo_url'] : $settings['images_url'] . '/smflogo.gif', '" alt="" /> in the Classic index.template.php file.

Now if you define a URL in the Classic theme settings for LOGO it will automatically replace that image anyways.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

yocks

Quote from: Rumbaar on July 16, 2008, 05:06:24 AM
It should look like:
<img src="', !empty($settings['header_logo_url']) ? $settings['header_logo_url'] : $settings['images_url'] . '/smflogo.gif', '" alt="" /> in the Classic index.template.php file.

Now if you define a URL in the Classic theme settings for LOGO it will automatically replace that image anyways.

so how to do this in smf - core theme ?

thnx.

NickC

This is what to remove in the SMF 2.0 Beta 3 Public default theme.


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


It would be better practice to create a new theme from the default theme in the admin center and modify that, though.

Deprecated

I've written a mod package that comments out the SMF logo in the default theme. I'm planning on rolling it into a bigger mod with more features. My mod is tested on 2.0b3.1 and works on the default theme only. If anybody wants it, reply to this thread and I'll upload it tomorrow. I wrote this mod for people who are not comfortable modifying their source directly. It changes only one line of code in one file. To reverse it you can either uninstall it or just copy a backup of your old $themedir/index.template.php over it. Might even work in other themes, I dunno...

damien4482

thx for all the help i gave up on looking for all the code snipits as i just couldnt find them. i have however managed to get my banner working. also reverted back to 1.1.5 as found the templates worked better

Advertisement: