Quote:
Originally Posted by Darat
Although I can't get it to work you can alter the Advanced bbcode permissions mod to control the usergroups that can use the new tags.
Download the Advanced permission add-on and edit the bitfield_advancedbbcodepermissions.xml file to add these two lines to the group options:
<bitfield name="allow_bbcode_admin" group="advanced_bbcode_permissions" phrase="allow_bbcode_admin">1024</bitfield>
<bitfield name="allow_bbcode_mod" group="advanced_bbcode_permissions" phrase="allow_bbcode_mod">2048</bitfield>
Save that. Then open the product-advancedbbcodepermissions.xml file and add these two lines:
<phrase name="allow_bbcode_admin"><![CDATA[[ADMIN]]]></phrase>
<phrase name="allow_bbcode_mod"><![CDATA[[MOD]]]></phrase>
Save that file.
Then install the Advanced permissions product as per the instructions and you can then use that to control permissions to the new "admin" and "mod".
(Word of warning - I can't at the moment test this but it should work!)
|
Can you tell me why this should work? There is more then just adding bitfields to allow or not allow BBCODES. The bitfield numbers I use are vbulletin's numbers and I over ride them in my hack. Custom BBcodes dont get a bitfield. There is no reason why these insructions should work.
I am trying to work on a way to get permissions for custom bbcodes.