Add "forum" to linktree to SimplePortal

in Tutorials on 25 Mar 2010

Open....
Sources/Subs-Portal.php

Find...
    if ($modSettings['sp_portal_mode'] == 1)
        $context['linktree'][0] = array(
            'url' => $scripturl . '?action=forum',
            'name' => $context['forum_name'],
        );


Replace with...
    if ($modSettings['sp_portal_mode'] == 1)
    {
        array_unshift($context['linktree'], array(
            'url' => $scripturl,
            'name' => $context['forum_name_html_safe']
        ));
       
        $context['linktree'][1] = array(
            'url' => $scripturl . '?action=forum',
            'name' => $txt['sp-forum'],
        );
    }



idesignSMF Team
Mick is an American theme designer for Simple Machines Forum software currently living in South Florida, USA. He runs idesignSMF.com and started tinkering with SMF in 2006 where he created several SMF forums of his own before he founded idesignSMF in 2009 to which he is dedicated full time.

idesignSMF.com | SimpleMachines.org



0 Comments


rocket_launch

Awesome Support. Download our themes, you also get theme support.