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?
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.
That fixed it, thanks!
