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,234
  • Total Topics: 21,353
  • Online today: 606
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 446
  • Total: 446

Forum Linktree messed up

Started by thefunkyone, March 25, 2007, 10:53:03 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

IchBin

Yes but TP doesn't touch the categories. If you go to your board index you'll see that all your categories have the number on them as well. Which is why I don't think its a TP problem. Just my opinion.

thefunkyone

Tiny portal does alter the linktree (well the linktree im talking about)....

I have wrote down the SMF original (which is what my TP seems to be using) and what the TP moddified linktree is supposed to be....


SMF original linktree structure
Text  : MySiteName | CategoryName | BoardName                | Threadname
Links : index.php     | index.php#X    | index.php?board=XX.0 | index.php?topic=XXX.0 (X's can be any ID number)

To

TP Modified linktree structure
Text : MySiteName | Forum                        | CategoryName                    | BoardName                | Threadname
Links : index.php    | index.php?action=forum | index.php?action=forum#X    | index.php?board=XX.0 | index.php?topic=XXX.0


As you can see its quite a difference between the 2..... I tried looking around the TP sources for something which could cause this, but my knowlege of php coding isnt that great.....  :(

IchBin

What I'm talking about is if you view your forum so that you're looking at all the board categories you'll notice that the links on the actual categories is wrong. I'm not talking about the linktree. But I noticed that on your board. You can also see that it happens on the default theme of your board. I know that TP adds to the linktree, but I don't think it touches the categories, which is where I think you're having the problem. And the linktree just happens to be picking it up.

thefunkyone

On the board categories view the links of the categorys appears fine..... pretty much everything on my forum is working fine....

But for some reason the TP modified linktree is not being used, its using the SMF default linktree... All links everywhere on my forums are working correct, with no problems apart from the linktree at the top (the one i circled in the picture i posted) which is using the SMF linktree instead of the TP linktree !!!

IchBin

All of your category titles do this. Hence, the reason I think your linktree is messed up. Notice the #3 on the end of the link for your category?

thefunkyone

Thats how the the categorys are meant to look like on an unmodified SMF forum....

As i have said it would appear that the TP modifications are not taking place on my install. I have reuploaded fresh SMF 1.1.2 files and uploaded fresh TP 0.9.8 files and still no change....

As i have said before, everything was working perfectly before i upgraded to TP 0.9.8, i made no alterations anywhere else during the TP update, then once the TP update is done i have this mess....

Don't suppose you have any suggestions as to why the TP modifications arent happening ?

G6Cad

Do you have any other mods installed ? or Search friendly urls ?

It might be that the code TP searches for doesent get replaced if some other mod have changed the code TP needs to change.
How do you install TP ?  Manually or through the manager ? Any errors during the install ? Any errors in the error log ?

IchBin

Check and make sure you have this bit of code in your Load.php.
                // 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']
                        )),
array_reverse($board_info['parent_boards']),
array(array(
'url' => $scripturl . '?board=' . $board . '.0',
'name' => $board_info['name']
))
);

thefunkyone

G6, The only other mod i have installed is SMFlinks, and search friendly URLS is disabled. Originally i installed TP via the package manager, and i updated it via the package manager, i also tried a manual install, i never got any error messages at all during the installs.

I did check the error logs and i seem to have a ton of "8: Undefined index:" errors relating to many different files in the "Themes/default/" folder.... i may have to look into what could be causing them !!!  :-\

IchBin, i checked my Load.php file and i never had those modfications in it.. This is what mine looked like..
// Build up the linktree.
$context['linktree'] = array_merge(
$context['linktree'],
array(array(
'url' => $scripturl . '#' . $board_info['cat']['id'],
'name' => $board_info['cat']['name']
)),
array_reverse($board_info['parent_boards']),
array(array(
'url' => $scripturl . '?board=' . $board . '.0',
'name' => $board_info['name']
))
);


I modified mine to look like the code you put and the categorys seem to link properly now (though im still missing the "forum" link part of the linktree).... It's a bit worrying that i may be missing some other important TP code changes !!!  :-\

IchBin

You should go through the files and check for the edits. The modifications are in an html file in the package if you'd like to go through them.

This website is proudly hosted on Crocweb Cloud Website Hosting.