TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,231
  • Total Topics: 21,353
  • Online today: 651
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 138
  • Total: 138

Head Links redirecting to portal index

Started by lonrot, May 22, 2007, 05:32:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lonrot

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

IchBin



IchBin

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>

lonrot


This website is proudly hosted on Crocweb Cloud Website Hosting.