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.
Can I keep private categories discussion tags from showing up in Popular Tags?
I have a moderator's area, and I'd like them to be able to tag their discussions without those tags showing up for every user.
Tagged:
0
Best Answer
-
hgtonight MVP
Yes. It is possible, but might get a little messy. You would have to validate permissions to view each discussion that has a tag and filter the results in the module.
Something like this will get you started:
// Loop through the IDs in the tagging $DiscussionModel = new DiscussionModel(); $Discussion = $DiscussionModel->GetID($ID); $Sender->Permission('Vanilla.Discussions.View', TRUE, 'Category', $Discussion->PermissionCategoryID);
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
2
Answers
Yes. It is possible, but might get a little messy. You would have to validate permissions to view each discussion that has a tag and filter the results in the module.
Something like this will get you started:
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Just implemented this on our forum, these are the changes i made; (Not sure how fast it is on sites with many many discussions and tags)