News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

forum logo link

Started by dkharp, November 25, 2014, 01:19:48 PM

Previous topic - Next topic

dkharp

Hello:

The link back is by default set to your main forum when you click on your logo that you put in:
QuoteLogo image URL:
what .php can I edit to have a different link put it and what code would I use to change default link to an external site?

Thank you for your help

Kindred

index.template.php for every theme you use...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

dkharp

Thank you so  much for this info.

You know what my next question is: ;D where do you put the code?

Sir Osis of Liver

Varies with theme, but should look something like this -



function template_body_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;

echo !empty($settings['forum_width']) ? '
<div id="wrapper" style="width: ' . $settings['forum_width'] . '">' : '', '
<div id="header"><div class="frame">
<div id="top_section">
<h1 class="forumtitle">
<a href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? $context['forum_name'] : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" />', '</a>


Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

dkharp

awsome!

so where would I put hxxp:www.website-name-i-want.com [nonactive]?

Thanks!

Kindred

In place of...
', $scripturl, '
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

dkharp

it worked like a charm. Thank you for your time!

Diamondhead58

I have version 2.0.14 and I haven't been able to find a post on this forum with accurate instructions about how to change my logo link (in upper left corner of the forum page)  from hxxp:mywebsite.com/forum/index [nonactive] to my main website -- hxxp://mywebsite.com/index.html.   

I've replaced ', $scripturl, ' with the url mentioned above and it doesn't affect anything.

Can someone please help me out.   Thanks in advance.

Kindred

If you changed the link, as mentioned, that is the only change - the instructions have not changed for ANY version of 2.0.x (possibly for 2.1 and probably for 1.1.x as well)

If you did not SEE the change then either
a) you didn't actually change the right index.template.php file (you need to change the template for for EVERY theme)
b) you did not clear your server and browser cache

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: