Solved: Stories sho...
 
Notifications
Clear all

Solved: Stories showing up in category and subcategory - should be subcategory o

3 Posts
2 Users
0 Reactions
1,385 Views
(@estirose)
Posts: 2
New Member
Topic starter
 

The answer to this is probably staring me right in the face, but for the life of me, I can't figure out what setting I need to adjust it.

I just recently upgraded to efiction 3.3 on my archive. The problem seems to have occurred in  the upgrade, like some new feature was installed and turned on by default.

I have an archive ( http://inkwell.estirose.net/weblibrary/ ) where I have categories and subcategories. Previous to the upgrade, if I put a story in subcategory y of category x, it would display only in subcategory y. Now, all stories in subcategory y also display in category x, defeating (at least for me) the purpose of having the subcategories in the first place. This is regardless of the category or subcategory. I'd like to get it back to what it was, but I seem to have missed the setting to do so. What adjustment do I need to make?


 
Posted : 15/06/2007 2:44 pm
(@tammy)
Posts: 2577
Member Moderator
 

It's an unintended consequence of making it so if you select a category in the sort list it'll sort to that category and all sub-categories.  Open browse.php and find the following section:


$categories = array( );
// Get the recursive list.
foreach($catid as $cat) {
if($cat == "false" || empty($cat)) continue;
$categories = array_merge($categories, recurseCategories($cat));
}

Change it to:


$categories = array( );
// Get the recursive list.
if($type == "categories") $categories = $catid;
else {
foreach($catid as $cat) {
if($cat == "false" || empty($cat)) continue;
$categories = array_merge($categories, recurseCategories($cat));
}
}

You're adding the "if else" stuff.  It shoudl be around line 88.  I'll have it fixed in the next update.


 
Posted : 16/06/2007 12:23 pm
(@estirose)
Posts: 2
New Member
Topic starter
 

That fixed it, thanks!


 
Posted : 17/06/2007 4:54 pm
Share: