The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Advanced BBCode Permissions Details »» | |||||||||||||||||||||||||||||
Advanced BBCode Permissions 3.0 About this hack: This hack will give you advanced control on BBCode. You will be able to define for each usergroup what BBCode they may or may not use. This hack works for both standard AND custom BB code! Installation information on hack:
Version 3.0 (08/03/06):
Beta test version 4.0 here: https://vborg.vbsupport.ru/showthread.php?p=1159541 Please post your comments or suggestions for this hack. I read ALL posts. MAKE SURE YOU CLICK INSTALL! You will get an email when a new version is released. This hack is created for your use free of charge. No payment is requested. However, if you would like to donate money for the work I put in to this hack, a donation would show your appreciation. Download Now
Screenshots
Supporters / CoAuthors Show Your Support
|
Comments |
#242
|
||||
|
||||
I Noticed that When You Activate the Mod for Usergroup 6 (Admin), the Basic BBCodes get Deactivated for Guests even if the Mod is Not Set to be Active for that Usergroup, (Bold, Size, Font, etc), so there should be some Code Lines that need to be Changed to Work on vB373 PL1.
Until a Solution can be Made by the Author, perhaps this can be Useful for some of You, (took me almost all day to Search for it). Only Step: You need to Create a Plugin: Product: vBulletin Hook Place: bbcode_parse_start Title: BBCode Permissions For Usergroups - bbcode_parse_start (or any you like) Execution Order: 5 Plugin Active: Yes PHP Code: Quote:
-2. If you want to Disable another Tag, simply Copy the Following Code as many Tags you wish to Disable. Quote:
-4. To set another Rules for Disabling BBCode Tags for other Usergroup(s), simply Copy all the Code Below the Existing One in the same Plugin, and set the Usergroups and the Name of the BBCode Tags in the Code Line that I mentioned Above, for as many BBCode Tags as you need for those Specific Usergroups. An so on, you can set Different Permissions for Different Usergroups. This is a Way Around, but it Works. If somebody has a Better Solution, please Share it. I Hope Abe1 can Share With Us an Update of this Great Mod compatible with vB373 PL1 and vB37x, because is very nice to be able to Select the Options for Each Usergroup and the Mod does. My Best Regards. |
#243
|
||||
|
||||
This Can be Useful Too, for Users that are Searchig to Disable Images in the Posts but Not Links for Certain Usergroups.
I searched for it on the Forum, but there was No Answer for this, so I guess it'll be Useful for some of You. I Just did a Little Research on a Mod from Cybernetec "Advanced Permissions Based on Post Count", and Found on the Plugin "Cyb - APBOUPC - P2 (PB)", the Code needed to Disable Images and Links in Posts and in Signatures; I Edited the Code to Leave Only the Code Lines to Remove Images but Leave the Links, (it was an Test and Error process because I'm not a Coder), and I Found that it can be done with the Help of that Useful Code from Cybernetec, (all Credits are His). Only Step: Create a Plugin. Product: vBulletin Hook Place: postbit_display_complete Title: BBCode Permissions For Usergroups - IMG - postbit_display_complete (or the Title that you wish) Plugin Active: Yes PHP Code: Code:
if (is_member_of($this->registry->userinfo, 1,3,4,8)) { $this->post['message'] = preg_replace('!(\\[img)(.*)(\\[\/img\\])|<img[^>]*(src|border|title)(.*)(</img>|\/>)|[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,4}\b!siU', construct_phrase('<br /><span class="smallfont"><i>'.'[[To See Images in Posts You Must Register and Activate Your Account]]'.'</i></span><br />', $forum[linkview_nb], $cyb_apboupc_viewlinks_userpostsnr), $this->post['message'].' '); } -2. Edit the Text of [[To See Images in Posts You Must Register and Activate Your Account]], to the One you Wish Users of those Usergroups to See instead of the Images. That's it. Enjoy. My Best Regards. |
#244
|
||||
|
||||
I've Just Figured that the Previous Code for the BBCodes is for Disabling the Parsing Options when the BBCode is Being Posted, but Not to Avoid Viewing it; to Disable the Display of Custom BBCodes on Posts you should do the Following.
There should be some Extra Code that can be Removed from the Following Code Lines, but as I'm Not a Coder I Can't Optimize it; if You Find a Way to Remove the Extra Code that isn't needed, it'll be Just Great that You Post Your Solution Here for Everybody to Benefit. First Step: First You Need to Add at the Beginning of Each Custom BBCode You Wish to Restrict Viewind/Displaying the Following Text Quote:
Quote:
Again, this Uses a small part of the Code of the Mod from Cybernetec "Advanced Permissions Based on Post Count", and Found on the Plugin "Cyb - APBOUPC - P2 (PB)", the Code needed to Disable Images and Links in Posts and in Signatures; I Edited the Code to Leave Only the Code Lines to Remove BBCodes, (it was an Test and Error process because I'm not a Coder), and I Found that it can be done with the Help of that Useful Code from Cybernetec, (all Credits are His). This Can be Included in the Plugin I Posted Just Above "BBCode Permissions For Usergroups - IMG - postbit_display_complete", because it uses the same vBulletin Hook. Second Step: Create a Plugin. Product: vBulletin Hook Place: postbit_display_complete Title: BBCode Permissions For Usergroups - Custom BBCodes - postbit_display_complete (or the Title that you wish) Plugin Active: Yes PHP Code: Code:
if (is_member_of($this->registry->userinfo, 1,3,4,8)) { $this->post['message'] = preg_replace('!(<div id="private_bbcode">)(.*)(<\/div>)|[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,4}\b!siU', construct_phrase('<br />[[To See BbCodes in Posts You Must Register and Activate Your Account]]<br />', $forum[linkview_nb], $cyb_apboupc_viewlinks_userpostsnr), $this->post['message'].' '); } -2. Edit the Text of [[To See BBCodes in Posts You Must Register and Activate Your Account]], to the One you Wish Users of those Usergroups to See instead of the Custom BBCodes. That's it. Enjoy. My Best Regards. |
#245
|
|||
|
|||
I think this mod must be update soon and insert in vb standard version
|
#246
|
||||
|
||||
Quote:
I didnt see a work around for the Cyb chatbox either. =( |
#247
|
||||
|
||||
Any chance this can mod can be updated for 3.8.x ? When i had it enabled i had weird problems where randomly bbcode wouldn't parse (tags would be visible).
|
#248
|
||||
|
||||
A Interesting Way to Hide Images and Display Only Smilies, From Thread "preg_replace - Exclude Text in Search Code Line".
Quote:
|
#249
|
|||
|
|||
I'll echo this - I could make great use of this mod if it was 3.8 compatible...
|
#250
|
||||
|
||||
can i use this on vbulletin 3.8.1 if i cant then please attach the mode for vbulletin 3.8.1 coz i need it urgently.
|
#251
|
|||
|
|||
work like a charm on 3.8.3. thanks.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|