How to link back to website

Started by EverettRock, February 18, 2010, 10:11:52 AM

Previous topic - Next topic

EverettRock

I'm using ver 1.1.11 and I always have the same question when I start up a new forum.
At least this version of SMF allows the admin to add an logo image at the top.
My question is how do you set the forum up to click on that logo to return to another website?
I know there are all kinds of on-line manuals, and I have searched through them and can't find the answer to my question.
Seems as if this should be a very common question.
Any help?

Matthew K.

./Themes/default/index.template.php
Code (Find) Select
if (empty($settings['header_logo_url']))
echo '
<span style="font-family: Verdana, sans-serif; font-size: 140%; ">', $context['forum_name'], '</span>';
else
echo '
<img src="', $settings['header_logo_url'], '" style="margin: 4px;" alt="', $context['forum_name'], '" />';

echo '

Code (Replace) Select
if (empty($settings['header_logo_url']))
echo '
<a href="url" target="target"><span style="font-family: Verdana, sans-serif; font-size: 140%; ">', $context['forum_name'], '</span></a>';
else
echo '
<a href="url" target="target"><img src="', $settings['header_logo_url'], '" style="margin: 4px;" alt="', $context['forum_name'], '" /></a>';

echo '


You'll need to replace "url" in both instances with your desired link destination and then target="target" with either target="_blank" - for a new window, or target="_self" for current window.

EverettRock

#2
Tried it. Still doesn't work.
I'm using the selection "Classic YaBB SE" theme if that makes a difference.

I switched to the default theme and the link works.
I notice in the Classic YaBB SE theme. the text is different and I was wondering if you would know how to do your miracles in that theme?
Thanks

Matthew K.

Whoops, should have asked for clarification on which theme.

./Themes/Classic/index.template.php
Code (Find) Select
// The logo, user information, news, and menu.
echo '
<table cellspacing="0" cellpadding="0" border="0" align="center" width="95%" class="tborder">
<tr style="background-color: #ffffff;">
<td valign="middle" align="left"><img src="', !empty($settings['header_logo_url']) ? $settings['header_logo_url'] : $settings['images_url'] . '/smflogo.gif', '" alt="" /></td>
<td valign="middle">';

Code (Replace) Select
// The logo, user information, news, and menu.
echo '
<table cellspacing="0" cellpadding="0" border="0" align="center" width="95%" class="tborder">
<tr style="background-color: #ffffff;">
<td valign="middle" align="left"><a href="url" target="target"><img src="', !empty($settings['header_logo_url']) ? $settings['header_logo_url'] : $settings['images_url'] . '/smflogo.gif', '" alt="" /></a></td>
<td valign="middle">';

Labradoodle-360

EverettRock

Thanks alot, your a miracle worker! :)

Matthew K.

Not a problem.

Marking topic as resolved, please feel free to PM me with any further questions.
Labradoodle-360

Advertisement: