The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Admin/Mod BBcodes Details »» | |||||||||||||||||||||||||
this is an easy hack for admins and mods who edit their users' posts and always wanna leave a msg at the bottom of it!
check the screenshots! download the zip file for installation instructions! For those who are looking to restrict the use of these bbcodes for normal users, please use this hack: Advanced BBcode Permissions http://www.oneforum.org Show Your Support
|
Comments |
#32
|
|||
|
|||
well,
nice addition BUT it has a serious security hole.*anybody* with a username can go to www.yourboard.com/forum/misc.php?do=bbcode this generates a list of bbcode tags your board uses.The "advanced bbcode permissions hack" only handles permissions for bbcode build into vbulletin not custom bbcode tags so without some way to restrict this it is pretty useless also ...... DO NOT TURN ON DEBUG MODE ON LIVE SITES danger Will Robinson danger ..... |
#33
|
||||
|
||||
Quote:
[high]* Smiry Kin's going to uninstall, unless a fix is made soon[/high] |
#34
|
||||
|
||||
Quote:
|
#35
|
|||
|
|||
well,
you could add a plugin on hook location bbcodeparse_start which checks the individual permissions using the bitfields from the advanced bbcode permissions hack.But you need to modify this hack a bit. i'll have a look later no time for it now |
#36
|
|||
|
|||
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!) |
#37
|
|||
|
|||
I've got this working now - rather embarrassing I'd been mucking around class_bbcode a little while ago on my test forum to see if I could implement this and forgot about them, once I started from original files it all worked first time!
I've modified the advanced bbcode permissions to handle the new tags and that works so the codes can only be used by a mod or admin however if I use more then one mod box in the thread only the first one is parsed correctly the subsequent ones are ignored as if I didnt have permission to use the tag, |
#38
|
|||
|
|||
well,
if u use that hack called "advanced bbcode permissions" then something like this should work PHP Code:
|
#39
|
|||
|
|||
I've got the advanced bbcode hack installed and working but if I post more then one tag in a thread only the first one is correctly parsed, the subsequent tags are ignored as if I had no permission.
|
#40
|
||||
|
||||
Quote:
Quote:
Details please ! |
#41
|
|||
|
|||
Quote:
Quote:
|
#42
|
||||
|
||||
Quote:
I am trying to work on a way to get permissions for custom bbcodes. |
#43
|
|||
|
|||
Quote:
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). |
#44
|
||||
|
||||
Quote:
|
#45
|
|||
|
|||
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.
|
#46
|
||||
|
||||
Quote:
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|