SimplePortal

Support => English Support => Topic started by: inter on April 07, 2012, 09:58:10 AM

Title: linktree bug?
Post by: inter on April 07, 2012, 09:58:10 AM
See the picture
http://simpleportal.net/index.php?action=forum

how to make that link led to the home page and not on the forum page?
Title: Re: linktree bug?
Post by: andy on April 07, 2012, 10:34:18 AM
Link bahavior left that way pointing to forum:
http://simpleportal.net/index.php?topic=3834.msg

If the answer there is satisfactory please marked it solved for us  :)
Title: Re: linktree bug?
Post by: inter on April 07, 2012, 01:26:09 PM
Link bahavior left that way pointing to forum:
http://simpleportal.net/index.php?topic=3834.msg

If the answer there is satisfactory please marked it solved for us  :)

Thanks!  :nervous-happy:

I'm a little touched up the code:
Code: ("Find (Sources/Subs-Portal.php)") [Select]
    if ($modSettings['sp_portal_mode'] == 1)
        $context['linktree'][0] = array(
            'url' => $scripturl . '?action=forum',
            'name' => $context['forum_name'],
        );

Code: ("Replace:") [Select]
global $board, $topic;
if ($modSettings['sp_portal_mode'] == 1)
{
if ((!empty($_REQUEST['action']) and $_REQUEST['action'] == 'forum') or !empty($board) or !empty($topic))
{
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'],
);
}
else
$context['linktree'][0] = array(
'url' => $scripturl,
'name' => $context['forum_name_html_safe'],
);
}

Title: Re: linktree bug?
Post by: AngelinaBelle on April 09, 2012, 09:16:54 PM
I hope you all won't mind that I split off the topic about the potential virus on igirisjin's site: http://simpleportal.net/index.php?topic=11047.0

Inter -- did this fix your problem?
SimplePortal 2.3.8 © 2008-2024, SimplePortal