Category links on i...
 
Notifications
Clear all

Category links on index are going directly to category main page

8 Posts
4 Users
0 Reactions
2,425 Views
(@lonebard)
Posts: 74
Trusted Member
Topic starter
 

When clicking on a category link from the index you're taken to categories.php with a list of all categories rather than directly to the one you clicked on.

https://efiction.org/forums/index.php?topic=6347.0 Someone else having this same problem with an older version of eFiction. To which Tammy responds and tells them to upgrade. But I'm already running  3.4.3

The person with the problem in the other thread said they ended up taking the 3.3.1 and grabbed the browse/categories.php and browse.php and up-loaded them over the current ones.

Any ideas?


 
Posted : 27/09/2008 11:12 am
(@babaca)
Posts: 722
Member Moderator
 

Can we have a link to your page? Sometimes seeing the problem makes it easier to come up with suggestion.


******************************************
Mucking around in eFiction since circa 2001 (ver. 1.0)
Now running v.3

 
Posted : 27/09/2008 1:13 pm
(@lonebard)
Posts: 74
Trusted Member
Topic starter
 

http://www.themasque.net/wiktt/


 
Posted : 27/09/2008 2:20 pm
 Elle
(@jenny)
Posts: 594
Honorable Member
 

I think this is common.

eFic is calling the "id" parameter, instead of "catid".

My archive's category links works (and I'm on the latest version), but I probably edited this earlier during upgrade.

blocks/categories/categories.php

line ~44:

$tpl->assign("categorytitle", "<a href=""browse.php?type=categories&amp;[b"]id=".$categories['catid']."">".$categories['category']."</a>");

... change "id" to "catid". I think that's the correct file. As I said though, mine displays OK so I just took a guess. (I'm assuming the category links on the main page are via the category block.)


archive: dramione.org
site: accio.nu

Available for skin/mod commission! πŸ™‚

 
Posted : 27/09/2008 4:26 pm
(@lonebard)
Posts: 74
Trusted Member
Topic starter
 

Thanks Jenny. Seems to have worked.

Maybe it's a bug in 3.3.x+?


 
Posted : 27/09/2008 7:40 pm
 Elle
(@jenny)
Posts: 594
Honorable Member
 

Hm, there's another instance around line 57 in browse/categories.php. (If you look at the line, you should see what to change.)

I'll download a clean version and see. πŸ™‚

Edit: The categories link to the correct page on the latest ...


archive: dramione.org
site: accio.nu

Available for skin/mod commission! πŸ™‚

 
Posted : 27/09/2008 7:45 pm
(@lonebard)
Posts: 74
Trusted Member
Topic starter
 

Yeah sorry I posted too quickly and you responded as I edited!

I guess it was cached or something the first time I tried it I still had the problem. But since it's been working properly.

I changed both lines, just to be sure.


 
Posted : 27/09/2008 7:48 pm
(@misskitten)
Posts: 26
Eminent Member
 

For me it seems to happen every now and then. Most of the time the correct page will open and other times I get the main category list... it's weird. But I'll try that change and see if that fixes it permanently.


FanNation - where stories never have to end...

 
Posted : 28/09/2008 11:04 am
Share: