Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: garylester777 - huhtikuu 22, 2011, 04:11:49 IP

Otsikko: Sky bet promo code
Kirjoitti: garylester777 - huhtikuu 22, 2011, 04:11:49 IP
I am wanting to find the Sky bet promo code (http://free-bets-uk.org/skybet-free-bet.html) to put on my Matched betting forum (http://free-bets-uk.org/matched-betting-forum) but i cannot find the Sky bet promo code (http://free-bets-uk.org/skybet-free-bet.html) on my google searches.Anybody know what the Sky bet promo code (http://free-bets-uk.org/skybet-free-bet.html) is at the moment?

I am also needing help removing the Simple machines logo.
Otsikko: Re: What is the easiest way to remove the ``simple machines forum`` logo?
Kirjoitti: kat - huhtikuu 22, 2011, 04:42:34 IP
You install a mod that does just that, funnily enough. ;)

http://custom.simplemachines.org/mods/index.php?mod=2144

EDIT: Cancel that. It's been removed. :(

In the theme's index.template.php file, find this:


echo '
<div id="mainframe">
<div class="tborder">
<div class="catbg">
<img class="floatright" id="smflogo" src="' , $settings['images_url'] , '/smflogo.gif" alt="Simple Machines Forum" />
<h1>';

if (empty($settings['header_logo_url']))
echo $context['forum_name_html_safe'];
else
echo '
<img src="', $settings['header_logo_url'], '" alt="', $context['forum_name_html_safe'], '" />';

echo '
</h1>
</div>';


and delete it.
Otsikko: Re: What is the easiest way to remove the ``simple machines forum`` logo?
Kirjoitti: Masterd - huhtikuu 22, 2011, 04:43:19 IP
Wich version of SMF are you using? 

K@, that mod is deleted from the mod site.
Otsikko: Re: What is the easiest way to remove the ``simple machines forum`` logo?
Kirjoitti: kat - huhtikuu 22, 2011, 04:45:34 IP
Yeah, I know.

That's why I edited my post. :P
Otsikko: Re: What is the easiest way to remove the ``simple machines forum`` logo?
Kirjoitti: Masterd - huhtikuu 22, 2011, 04:46:39 IP
That's for SMF 1.1.13. Code for SMF 2.0 is different.
Otsikko: Re: What is the easiest way to remove the ``simple machines forum`` logo?
Kirjoitti: Illori - huhtikuu 22, 2011, 04:48:30 IP
and according to http://www.simplemachines.org/community/index.php?topic=431133.0 this user is running 1.1.13 not 2.0.
Otsikko: Re: What is the easiest way to remove the ``simple machines forum`` logo?
Kirjoitti: kat - huhtikuu 22, 2011, 04:50:04 IP
Easiest way that I've found is to simply replace the image with a bank, transparent one, myself. ;)
Otsikko: Re: What is the easiest way to remove the ``simple machines forum`` logo?
Kirjoitti: NCSurfer - kesäkuu 26, 2011, 11:39:01 IP
So how do you remove it from RC2? I got the image removed, but now there is "Simple Machines Forum" showing up.

Thanks
Otsikko: Re: What is the easiest way to remove the ``simple machines forum`` logo?
Kirjoitti: Antechinus - kesäkuu 26, 2011, 11:45:42 IP
#smflogo,#siteslogan should be in your index.css. Just set them to display: none;
Otsikko: Re: What is the easiest way to remove the ``simple machines forum`` logo?
Kirjoitti: JohnWayne999 - lokakuu 18, 2011, 11:53:44 IP
Replacing smflogo.png with a blank is a good suggestion. Then I don't need to worry about themes. Whoever wants it, come grab it, it's blank anyway. Quick and neat without editing any code while maintains good integrity overall.

For someone totally new like me though I had a bit of trouble even finding smflogo.png. Probably not the easiest way, but just my 2c worth of contribution garylester777 for future similar situations in terms of looking for things:
If you right click on the logo, it will become apparent the logo image is smflogo.png and directory. But suppose it doesn't tell you the directory. This command will tell you where all the copies of smflogo.png are: find . -name smflogo.png

My next question was: which file is displaying this logo?
Turns out if you hover the mouse over the logo, it will say "Simple Machines Forum". To me that is saying
Lainaaalt="Simple Machines Forum"
This command will list all files that contain the string smflogo.png AND the string alt="Simple
The last part about cut ensures only file names are displayed
egrep -H -r 'smflogo.png|alt="Simple' html/* | cut -d: -f1
(If you ever want to search single quotation mark, just swap with double to enclose)
I've installed some 30 themes, so I get lots and lots of index.template.php listed.
But I am happy to bet 2c the file I need to edit is /Themes/default/index.template.php
You can just replace smflogo.png with any file of your choice, or markout the whole thing '<!-- <img id="smflogo" src="' . $settings['images_url'] . '/smflogo.png" alt="Simple Machines Forum" title="Simple Machines Forum" /> -->' to prevents the logo from showing  ;)
Otsikko: Re: What is the easiest way to remove the ``simple machines forum`` logo?
Kirjoitti: TheListener - lokakuu 19, 2011, 12:15:41 AP
Or if using 2.0, 2.0.1 you can place a motto there which removes the smf image anyway.