Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
MUCH needed: Categories as Namespaces... aka. Subforums
I've found a bit of discussion of similar ideas on here... but nothing fresh and nothing that led anywhere.
Here's a feature that will pretty much make or break several large sites I'd like to install Vanilla on: the ability to treat categories like namepaces, à la the subforums of other forum software.
From a category page, I'd like to be able to search solely within the category, as well as display tag clouds/tag searches within that category.
Imagine a large car forum. Wouldn't it be nice to restrict your searches to the Toyota category when your Corolla transmission breaks down?
This feature would even be very useful on this very forum. I'm getting pretty tired of coming up with dozens of outdated threads on Vanilla 1 whenever I do a search.
Can anyone point me in any directions on how to implement this?
Here's a feature that will pretty much make or break several large sites I'd like to install Vanilla on: the ability to treat categories like namepaces, à la the subforums of other forum software.
From a category page, I'd like to be able to search solely within the category, as well as display tag clouds/tag searches within that category.
Imagine a large car forum. Wouldn't it be nice to restrict your searches to the Toyota category when your Corolla transmission breaks down?
This feature would even be very useful on this very forum. I'm getting pretty tired of coming up with dozens of outdated threads on Vanilla 1 whenever I do a search.
Can anyone point me in any directions on how to implement this?
Tagged:
0
Comments
@judgej - Glad I got across, thanks for restating that so well. Another operation example would be generation of tag clouds. A post in the Toyota category tagged "transmission" would be listed under a global tag cloud as well as more refined Toyota tag cloud on the Toyota category page.
Searching in categories would be great, but why not step it up a notch?
I haven't figured out much of the Vanilla code or API yet, but I'll try to jump into the code if someone can give me at least a few words of direction.
To do this, we created a bootstrap.before.php in the conf directory which contains a switch on $_SERVER["HTTP_HOST"] to determine which domain name was used to enter the site.
We then set the PATH_CONF setting to point to the config.php to use. This allows us to use different themes,plugins & defaults based on the domain name. We also set a constant that sets a DomainID to use when filtering searches.
To filter categories & discussions, we've modified the core models for discussions and categories. Been planning to try and add this as a plugin but we're still modifying the two model files on each update (the two files haven't really changed much over recent updates so it's not a big deal). A lot of our site is custom applications so we find the DomainID a useful filter.
Initially we added a DomainID column to the Category table, but we now use a custom CategoryDomain table to keep a list of DomainID/CategoryID valid combinations to filter categories by domain. Found this gave us more flexibility.
Hope this helps. There might be another way but we find this simple and gives us the flexibility we need.
Incidentally, though, I'm just noticing that the Vanilla addon database allow search by several different taxonomies. Could this be merged to the normal forums?
tags by user
tags by user's created posts
tags by user's followed posts
tags by user's participated posts
tags by category
(and any combination of the above eg. tags by user within one category)
to make things even more complex, I also hope to include do "related tags". This one in particular is more complex. Well actually its not that hard, but will get very complex if we want to do a truly scalable solution.
oh also forgot to mention "tag labels" (which also allows you to group tags together and apply a "label" to that group, and compulsory tagging (whereby a user MUST choose one or more pre-defined tags for any post)
I have done this in another app i programmed (which was built to mimic Delicious' tagging system), but will take some time to port over the logic / DB schema into Vanilla.
Do check out delicious.com (and create an account if you haven't) to get an idea of what I'm talking about...