-
Wiki Tabs
I'm looking to hide the edit tab for a certain user group. However, I want to allow them to do quick edits. I've been looking around, and can't quite find the code for the wiki tabs.
Would it be in the templates found in the Forum CP? If it is, where? :)
-
Wiki tabs are currently controlled in the factory/postbit.php class. If you wanted to disable the tab, you should look for the hook location vault_contentaction_prepare. Sounds like you want a plugin like:
Code:
if (is_member_of($this->registry->userinfo, USERGROUP_ID))
{
unset($content_actions['edit']);
}
-
Thank you, that did the trick! Never had experience with writing a plugin before. Was cool to do.
Here's a resource for anyone else looking to do this:
http://www.vbulletin.org/forum/showthread.php?t=82625