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.
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.
In the code to add to "class_bbcode" (that Wild-Wing posted) there is the code:
if ($vbulletin->options['allowedbbcodes'] & ALLOW_BBCODE_ADMINWARN)
Isn't that then using going to use the new bitcodes that we defined to control these new tags. And my extension to your hack then lets you switch them on and off in the admincp (and that seems to does work).
In the code to add to "class_bbcode" (that Wild-Wing posted) there is the code:
if ($vbulletin->options['allowedbbcodes'] & ALLOW_BBCODE_ADMINWARN)
Isn't that then using going to use the new bitcodes that we defined to control these new tags. And my extension to your hack then lets you switch them on and off in the admincp (and that seems to does work).
I still dont understand. I think you are missing a word some where in your post.
Wild Wing code adds the [admin] and [mod] tag into class_bbcode and like the standard bbcodes he does a check if a bit is set or not to see if someone has permission to use them. What I was trying to do was add setting those bits to your script so that they can be toggled in the admincp in your hack.
Wild Wing code adds the [admin] and [mod] tag into class_bbcode and like the standard bbcodes he does a check if a bit is set or not to see if someone has permission to use them. What I was trying to do was add setting those bits to your script so that they can be toggled in the admincp in your hack.
Got it.
I would not recommend adding to vb bitfields for 2 reasons.
1) What if vb added to it?
2) What if another coder addes to it? Best no coders add to it.
All good points but if it worked reliably as I've tweaked it I'd take the chance on using it and deal with any future conflicts as they came up..
Are you making progress in getting this to work without this type of hack?
100% yes.
I've been working on the hack for the past week. Hours and hours. Last night I finaly finished how to save custom BBcodes permissions. I have the usergroup settings page listing all custom bbcodes already. I have to get that page though to show the current settings now and then work on removing the custom bbcodes if you dont have permissions to use it. I have found the place to do it already.
I suspect you are going to become even more popular when you release this!
I think so also.
BTW, I just totaly completed the usergroup permissions. It works perfectly. The usergroup permissions page pulls all custom codes and gives you an option for them.
I will now be working to actualy remove the bbcodes not allowed to be used because of a setting.