TinyPortal
Development => Support => Topic started 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
A link to your board please?
www.consolemaniak.com
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>
Thank you very much, it works 100%