News:

Wondering if this will always be free?  See why free is better.

Main Menu

make "smflogo.png" clickable?

Started by hefe, September 07, 2011, 11:01:16 PM

Previous topic - Next topic

hefe

I created a follow us on facebook logo about the same size as the original smflogo.png and named it smflogo.png, I then uploaded it and over wrote the old one.. and I must say, I like the way it looks!
what is the proper way to make that "clickable"?

here is the original code


// the upshrink image, right-floated
echo '
<img id="upshrink" src="', $settings['images_url'], '/upshrink.png" alt="*" title="', $txt['upshrink_description'], '" style="display: none;" />';
echo '
', empty($settings['site_slogan']) ? '<img id="smflogo" src="' . $settings['images_url'] . '/smflogo.png" alt="Simple Machines Forum" title="Simple Machines Forum" />' : '<div id="siteslogan" class="floatright">' . $settings['site_slogan'] . '</div>', '
</div>
<div id="upper_section" class="middletext"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>
<div class="user">';



I am gonna call it a night for now, but Thanks in advance for the help!

Jeff

Illori


hefe

sorry, no..
I am using v2
I should have said that

Illori

well i believe the same concept should apply to 2.0 you would just need to manually do the edits.

ballin

Just put link tags around it? I'm pretty sure that's what you're asking.




// the upshrink image, right-floated
echo '
<img id="upshrink" src="', $settings['images_url'], '/upshrink.png" alt="*" title="', $txt['upshrink_description'], '" style="display: none;" />';
echo '
', empty($settings['site_slogan']) ? '<a href="facebooklink"><img id="smflogo" src="' . $settings['images_url'] . '/smflogo.png" alt="Simple Machines Forum" title="Simple Machines Forum" /></a>' : '<div id="siteslogan" class="floatright">' . $settings['site_slogan'] . '</div>', '
</div>
<div id="upper_section" class="middletext"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>
<div class="user">';


Just change "facebooklink" to your Facebook group page etc.

hefe


rufioho

I like the idea of replacing the normal banner with a follow us on facebook... but what are you doing for your logo/banner?
My 2 personal sites: http://howtocookfantasticfood.com [nofollow] & http://www.magicentric.com [nofollow]

hefe

here is a screen cap of what I did

and the image I used
although I am NOT a photoshopper..
I bet you can do MUCH better
it is just a generic Facebook image I found On google images
and I made it transparent to fit my needs

Advertisement: