Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
SubCategories
SubCategories
0
Comments
In the main category view:
Notice: Undefined index: CategoryID in /home/pushing1/public_html/forum/extensions/SubCategories/default.php on line 46
In a category with sub-categories:
Notice: Undefined variable: SessionPostBackKey in /home/pushing1/public_html/forum/extensions/SubCategories/default.php on line 75
---
This is what I was looking for to... Sweet, thanks!
I also managed to clear up the last of the dashes that seems to get in the way, though I am quite sure more dashes will appear in inappropriate places (extensions will be the main culprits). I may rethink the way I remove these dashes if it is a major problem for lots of people.
Please continue to give me your feedback on this first release.
Thanks,
Adam.
I'm not sure if this a problem or not.
edit: - parent category says 0 discussions despite subcategory having posts in it. perhaps that needs to change?
also, how many levels of sub categorys can you have? is this possible :
Subjects
-science
--biology
-technology
--gaphics
As I said in the description. I have no plans at the moment to extend to nesting categories, though I can conceive of a way that it would work quite nicely (though the coding would be complex in the background).
Cheers,
Adam.
Fatal error: Cannot redeclare class CategoryManager in /home/.pilar/xxxx/xxxxxxxxxxx.com/forums/library/Vanilla/Vanilla.Class.CategoryManager.php on line 14
seems to be some sort of a conflict.
Adam.
- 0.1.0b - First Beta
- 0.1.0 - First Release: Added parent categories links, finished removal of redundant dashes.
- 0.1.1 - Fixed one bug with categories beginning with only "-" and showing up as sub-categories in some places and another with category counts. General tidy up. Extrapolated SubCategories definition, and added a message to the Categories List Settings page. Also fixed a conflict with the Blog add-on (checks whether CategoryManager class exists before trying to include it).
Okay, unless something major comes up, I think I will call it a day, and will look into this again tomorrow. (*angelic venus goes back to working on his Drupal/Vanilla integration extensions*)Adam.
Thanks for your help so far!
Adam.
Edit:
It is just as I suspected... they both add their content at $Configuration["CONTROL_POSITION_BODY_ITEM"]-1, and are pushing each other's content around (it -shouldn't- disappear entirely). Exactly how it displays will probably depend on which extension was enabled first.
You could change either Announcements or SubCategory's default.php to set $Configuration["CONTROL_POSITION_BODY_ITEM"]-1 to $Configuration["CONTROL_POSITION_BODY_ITEM"]-2 which will raise the one you edit's position above the other (do a search and replace). This is a temporary fix, whilst I work out a more elegant way to fix the problem. (*looks at the "AddRenderControl" method in more detail*)
Adam.
Thanks.
"parent category says 0 discussions despite subcategory having posts in it. perhaps that needs to change?"
Thanks.
Main Category (with 0 posts)
Another Category (with 20 posts)
Now if "Another Category" were to be a sub-category of "Main Category" it would be confusing to have in the details on the main list of categories under "Main Category" a label saying that it has 20 discussions... when really it is empty... I think that having a list of sub-forums a parent category contains (or just a number) makes more sense.
Anyways, just my $0.02.
I will add the option in a future version, if there is enough interest?
Adam.