Add "forum" to linktree to SimplePortal

by Mick 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'],
        );
    }
Mick is an American theme designer for Simple Machines Forum software currently living in South Florida, USA. He runs idesignSMF 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.
    
0 Comments

Get more stuff like this

Subscribe to our mailing list and get interesting content and updates.