News:

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

Main Menu

Changing Header Graphic

Started by scareshack, May 01, 2009, 06:26:37 AM

Previous topic - Next topic

scareshack

Hello Newbie here to SMF.

I installed the theme "Alina".

What I am trying to do is in the header replace the smf logo with my logo.
Is this possible? If so can someone point me to a tutorial that will show me how.
I looked around a bit but no luck.

Thanks in advance.

Marcus Forsberg

Welcome to SMF, scareshack!

Have a look at ./Themes/alina/index.template.php and ./Themes/alina/style.css.
This is where the logo is located.

bullbreedluverz

alina theme has a small smf logo up on the left which will is called smflogo.gif which you can simply FTP another logo of the same size and same name to overwrite that one

if you want to have a bigger image or use different format you will need to edit style.css - the designer who made this theme usually places settings in style.css for adjusting the header images including the logo that you can play about with and adjust to have a little larger logo - look in stle.css for #logo

scareshack

Thanks for the response. Makes sense so far. I will try it over the weekend and hopefully be able to say"wow, that was easy, thanks guys".

Thanks again for the response.

Looking forward to learning more.

scareshack

Thanks again so much! Easier than I thought. Replaced it and made it bigger the first try.

You guys rock!


scareshack

 :-[
Sorry one more question.
Where/what page do I find on the header where it says.....SMF Installed Today    ?

thanks again

bullbreedluverz

if you mean the line SMF Installed Today that is in the header that is forum news

Admin > News & Newsletters > News

you can change that line and add more news items if you want


if you dont want that line to appear at all

Admin > Current theme

then deselect Enable News?


scareshack

Stikki...you rock. Thanks much

scareshack

all the text in the header.......
welcome message date and search tab.
where can I edit that or remove from above theme.

Thanks again


bullbreedluverz

how exactly do you want to edit it?

remove it?
change the text?

bullbreedluverz

actually there is easy way to edit things like this by commenting them out - that means not deleting the code but stopping it from being used

you add

/* before section of code and */ after code

so for example to remove the welcome & log in on Alina

change

// If the user is a guest, show [login] or [register].
if ($context['user']['is_guest']){
echo '', $txt['hel_lo'], ' <strong>', $txt['ge_st'], '</strong> <br />
', $txt['pl_se'],  ' <a href="' . $scripturl . '?action=login">', $txt['lo_go'], '</a> or <a href="' . $scripturl . '?action=register">', $txt['reg_y'], '</a>.';}
echo '
  </div>
<a href="'.$scripturl.'" title=""><span id="logo"> </span></a>';


to

/* // If the user is a guest, show [login] or [register].
if ($context['user']['is_guest']){
echo '', $txt['hel_lo'], ' <strong>', $txt['ge_st'], '</strong> <br />
', $txt['pl_se'],  ' <a href="' . $scripturl . '?action=login">', $txt['lo_go'], '</a> or <a href="' . $scripturl . '?action=register">', $txt['reg_y'], '</a>.';}
echo '
  </div>
<a href="'.$scripturl.'" title=""><span id="logo"> </span></a>'; */


this way you can stop sections working without actually deleting the code and if it dont do what you want you remove the comments and try another peice of code, doing it this way means if you change your mind further along in time you only have to remove the comementing out to reinstate parts you effectively "turned off" instead of having to go find the code in a clean file and work out where to place it

scareshack

stikki...thanks..is that in the style.css?

ill post forum once i get basics down. getting excited to learn this stuff. I tend to overlook basic stuff a lot.

bullbreedluverz

oh sorry, thats in index.template.php

remember always make a back up before you edit your forum files

scareshack

I tried that and here was my result.

It left the stuff I am trying to remove and deleted the whole board.

I'll try it again, I must of messed something up.

here is the forum, dont mind logo in header, will change it once it made.
http://bloodyhollywood.com/simplemachinesforum/index.php

My next question is going to be, how do I switch the forum to the main page of the domain. Im hoping its easy, but will look it up before i ask. hint

thanks again for all the help

bullbreedluverz


scareshack

just want to make it when u type in bloodyhollywood.com it goes right to the forum.
Think i may be able to just to a re-direct.
But first still need to figure out if I really want to do it. May use the site for other stuff.
I will defenitly ask for help once I make my mind up on that.

Tried the above again, to lose the text and search box in header. Same result..
not sure what im doing wrong on that.

scareshack

will attach the file shortly. maybe u can look at it to see what I did wrong.

thanks again

scareshack


bullbreedluverz

#18
Quote from: scareshack on May 03, 2009, 09:13:07 AM
just want to make it when u type in bloodyhollywood.com it goes right to the forum.
Think i may be able to just to a re-direct.
But first still need to figure out if I really want to do it. May use the site for other stuff.
I will defenitly ask for help once I make my mind up on that.

Tried the above again, to lose the text and search box in header. Same result..
not sure what im doing wrong on that.

you dont need to do a redirect, if you copy all the forum files out of simplemachinesforum folder and place them into the root of the public_html on your server then run repair_settings.php

What is repair_settings.php?

there is a link at the top of that thread "repair_settings.php" that you download repair-settings.php
move your files
upload repair_settings.php
direct your browser to http://bloodyhollywood.com/repair_settings.php

and you can change the settings in the forum files so they change to the root folder instead of the sub-folder where your files are now


once done DELETE repair_settings.php

bullbreedluverz

do you still have the file you attatched uploaded on your server or have you put a unedited back back on?

i dont run any 1.1.8 sites so i cant upload the file myself to see what it does or doesnt do to your forum

what do you want in the header section of the forum?

is it just your logo you want there and everything else removed

i.e. login, search

that section also contains the message for when you put your forum in maintenance mode and if you use approval system for new members registrations that appears there too

Advertisement: