TinyPortal

Development => Support => Topic started by: lonrot on May 22, 2007, 05:32:43 PM

Title: Head Links redirecting to portal index
Post by: lonrot on May 22, 2007, 05:32:43 PM
In my forum, when I hit on the head links (Board Links), for example:
TinyPortal > Forum > Development > Support > etc

It redirects me to the portal index, and not the corresponding forum.
I'm using TP 0.9.8 and TP Theme SoftMC_Blue

Thanks
Title: Re: Head Links redirecting to portal index
Post by: IchBin on May 22, 2007, 06:00:01 PM
A link to your board please?
Title: Re: Head Links redirecting to portal index
Post by: lonrot on May 22, 2007, 07:24:59 PM
www.consolemaniak.com
Title: Re: Head Links redirecting to portal index
Post by: IchBin on May 22, 2007, 07:31:54 PM
It appears that the code in Load.php may not have been modified properly. Can you take a look at the file and see if the TP modifications are done?

Here are the modifications:
Open file:
Sources/Load.php

<search for>
$settings = $themeData[0];


<add after>
if (!empty($context['TPortal']['front_type'])){
$settings['TPortal_front_type'] = $context['TPortal']['front_type'];
}
</add after>

<search for>
// Start the linktree off empty..
$context['linktree'] = array();
</search for>
<replace>
        // Start the linktree off empty..not quite, have to insert forum
        $context['linktree'] = array(array('url' => $scripturl . '?action=forum', 'name' => 'Forum'));
</replace>

<search for>
// Build up the linktree.
$context['linktree'] = array_merge(
$context['linktree'],
array(array(
'url' => $scripturl . '#' . $board_info['cat']['id'],
'name' => $board_info['cat']['name']
)),
</search for>
<replace>
                // Build up the linktree (adding TPortal forum index)
                $context['linktree'] = array_merge(
                        $context['linktree'],
                        array(array(
                                'url' => $scripturl . '?action=forum#' . $board_info['cat']['id'],
                                'name' => $board_info['cat']['name']
                        )),
</replace>

<search for>
// The theme is the forum's default.
else
$ID_THEME = $modSettings['theme_guests'];
</search for>

<add after>

// TinyPortal
$newtheme=TP_loadTheme();
if($newtheme!=$ID_THEME && $newtheme>0)
$ID_THEME=$newtheme;
// end TinyPortal
</add after>
Title: Re: Head Links redirecting to portal index
Post by: lonrot on May 22, 2007, 08:13:40 PM
Thank you very much, it works 100%