Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Aiheen aloitti: Ishmell - tammikuu 30, 2009, 01:57:27 IP

Otsikko: home url
Kirjoitti: Ishmell - tammikuu 30, 2009, 01:57:27 IP
Hello, how would I make the home in the menu instead of going to the forums index go to an url i want (the main site)?
Otsikko: Re: home url
Kirjoitti: shadow82x - tammikuu 30, 2009, 03:40:40 IP
In FTP ../Sources/Subs.php

Find
         'home' => array(
            'title' => $txt['home'],
            'href' => $scripturl,
            'show' => true,
            'sub_buttons' => array(
            ),
         ),


Change to
         'home' => array(
            'title' => $txt['home'],
            'href' => 'http://yourlinkhere.com',
            'show' => true,
            'sub_buttons' => array(
            ),
         ),


Make sure you have a backup of subs.php before you do any edits.

And of course remember to change "http://yourlinkhere.com" to your desired link. ;)


Edit: Forgot this was the SMF2 board. :P
Otsikko: Re: home url
Kirjoitti: Ishmell - helmikuu 01, 2009, 04:28:35 IP
Thats awesome. Thanks allot...  :D