Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: H02c9rejc073fdsoJ on May 03, 2007, 01:29:50 PM

Title: category links, guests vs registered
Post by: H02c9rejc073fdsoJ on May 03, 2007, 01:29:50 PM
http://onlineg.com/index.php?action=forum
When a guest clicks on a forum category, they are returned to the home page. However, logged in registered users click the category and are shown the category.

For example, my categories are:
Main
Free Multiplayer Games
Demo / Trial Multiplayer Games

Guests show these links for those categories.
http://onlineg.com/index.php#1
http://onlineg.com/index.php#2
http://onlineg.com/index.php#3

Registered users show these links for those categories.
http://onlineg.com/index.php?action=collapse;c=1;sa=collapse;#1
http://onlineg.com/index.php?action=collapse;c=2;sa=collapse;#2
http://onlineg.com/index.php?action=collapse;c=3;sa=collapse;#3

Is there any way to fix the guest links to not go to the home page, but rather go to the category?

Thank you
Title: Re: category links, guests vs registered
Post by: Sarge on May 03, 2007, 02:09:20 PM
Quote from: madmaxbeyond on May 03, 2007, 01:29:50 PM
When a guest clicks on a forum category, they are returned to the home page.

http://onlineg.com/index.php#1
...

It looks like a TP bug to me; the installation of TP should have modified category links. For example, this:
http://onlineg.com/index.php#1
should be like this:
http://onlineg.com/index.php?action=forum#1

It's easy to fix. Open Sources/BoardIndex.php

Find:

'href' => $scripturl . '#' . $row_board['ID_CAT'],


Replace with:

'href' => $scripturl . '?action=forum#' . $row_board['ID_CAT'],
Title: Re: category links, guests vs registered
Post by: H02c9rejc073fdsoJ on May 03, 2007, 11:44:56 PM
Thank you. I will try this.
Title: Re: category links, guests vs registered
Post by: Sarge on May 04, 2007, 07:29:31 AM
Posted in the TP bugtracker:
http://www.tinyportal.net/index.php?action=bugtracker;sa=bug208