Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: Moif - elokuu 08, 2006, 11:15:40 AP

Otsikko: SOLVED: Replace the 'Home' link with custom URL
Kirjoitti: Moif - elokuu 08, 2006, 11:15:40 AP
Hi gang,

As the topic states I would like to have the 'Home' link take users back to a designated URL when they click it.

Can anyone advise me on how to go about this? Thanks.

I'm presuming it's somewhere in here:


// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'home' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '">' , $txt[103] , '</a>
</td>' , $current_action == 'home' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
Otsikko: Re: Replace the 'Home' link with custom URL
Kirjoitti: Moif - elokuu 08, 2006, 11:28:08 AP
Sorted it :)

basically I changed


<a href="', $scripturl, '">


to


<a href="http://www.websitegoeshere.co.uk">


:D