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

Recent

Welcome to TinyPortal. Please login or sign up.

May 25, 2024, 02:43:38 PM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,197
  • Total Topics: 21,221
  • Online today: 144
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online

Sp1 links on TP theme not pointing to correct places

Started by sdm_36, February 10, 2006, 12:53:12 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sdm_36

hi this is only a minor niggle

but i would like to fix it as it is quite frustrating sometimes

http://www.36thchamber.co.uk/forum/


What version of SMF: 1.0.5
What version of TP: 0.8.6
Which themes are used techhead tp
Do you have other Mods installed :
       Mod Name     Version      
1.    PHP 4.4.0 Compatibility Update    1.0    
2.    TinyPortal    0.86    
3.    MySQL 5.0.12 Compatibility Update    1.0

Do you use another CMS? (Joomla or Mambo?) No

Is this a test site? No



The problem is quite simple:
when i am on a board (general discussion for instance) in the forum the inline links at the top read :
36th Chamber Forum | General Category | General Discussion

36th chamber forum link takes me to ....co.uk/forum/index.php.
i would prefer that to point at ......co.uk/forum/index.php?action=forum

General Category link points towards:
......co.uk/forum/index.php#1
which is really annoying as it makes it very difficult to navigate quickly between boards. I would prefer to have this link pointing to the index.php?action=forum as well if it's not possible to point it at the category level.

Can anyone tell me the file i need to edit in order to change this?

Oh the problem started with the Tiny Portal 0.75 version
but it hasn't gone away now i've upgraded


thanks


Xarcell

I might not understand correctly, but I think that's how SMF operates.

borgBOB

This is part of the code that generates the linktree function:
  // Show the link, including a URL if it should have one.
                echo '<b>', $settings['linktree_link'] && isset($tree['url']) ? '<a href="' . $tree['url'] . '" class="nav">' . $tree['name'] . '</a>' : $tree['name'], '</b>';

It is in index.template.php, but there is more in
Sources/Load.php:
<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>


I suspect the answer is in here. First, make sure your files match these.

sdm_36


borgBOB


IchBin


sdm_36

not at all

basically followed advice as per borgBOB's instructions

I found the  "//build up the linktree" section of code in Load.php
and replaced it with the new piece he posted in this thread.

That actually solved the problem in itself

but just to be safe i edited index.template.php
and substitued that bit of code too.

so many thanks