Question Disable editor Post-Template entry for groups without permission

Status
Not open for further replies.

angus

Customer
I wonder why the Post Template button/popup/entry at the end of the editor toolbar is shown, if there is no permission for usergroups to use the function.

I only want that moderators can use the templates. So it´s not necessery to show the function for all usergroups.
How can I do this?

Is there a possibilty to work with vb conditionals, and if so, where?
 
Change the vB Post Templates: Add To CKEditor plugin to this code:
PHP:
if ((vB::$vbulletin->userinfo['permissions']['vbpt_permissions'] & vB::$vbulletin->bf_ugp_vbpt_permissions['vbpt_use']) OR (vB::$vbulletin->userinfo['permissions']['vbpt_permissions'] & vB::$vbulletin->bf_ugp_vbpt_permissions['vbpt_use_defined']))
{
	$this->config['_extraPlugins'] .= ',PostTemplates';
	$this->config['toolbar'][count($this->config['toolbar']) - 1][] = 'PostTemplates';
}
:)
 
Status
Not open for further replies.

Legacy Post Templates

vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
42
Customer rating
0.00 star(s) 0 ratings
Back
Top