PDA

View Full Version : Disable editor


jasharen
07-19-2009, 02:49 PM
Brian,
What is the easiest way to disable the vbeditor off of user entered links? I'd still like the editor to appear for a moderator, but be a standard textarea for standard users entering a link.

Thanks!

Brian
07-20-2009, 11:29 AM
You should be able to do that by adding a new plugin to the 'vba_links_addlink_start' hook location with the following code:
if (!is_member_of($vbulletin->userinfo, 6))
{
$vba_options['links_editormode'] = 0;
}

Replace 6 in the code above with the usergroupid that you would like to still display the editor for and that should disable it for all other groups.