Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Disable BBCodes/Smilies Per Users/Usergroups Details »
Disable BBCodes/Smilies Per Users/Usergroups
Mod Version: 1.4, by MarkFL (Coder) MarkFL is offline
Developer Last Online: Jan 2018 I like it Show Printable Version Email this Page

vB Version: 4.2.x Rating: (4 votes - 5.00 average) Installs: 20
Released: 05 Apr 2016 Last Update: 03 Aug 2016 Downloads: 92
Not Supported Uses Plugins Additional Files Translations  

Overview:

This product is in response to the request posted by The Mailman here:

Disable [img] bb code for specific user or usergroup?

This product allows you to designate a list of BBCodes and a list of Smilies that will be disabled for the users/usergroups you select. You may also restrict users individually, with their own separate lists of restrictions. The affected BBCodes/Smilies will be disabled only in the areas you select, and you can elect to have them disabled in signatures and previews (corresponding to the other areas selected) as well. You can disable only the display of restricted content, or you can choose to prevent restricted content from being saved to the database altogether.

Updates:

Version 1.1:
  • Fixed HTML encoding issue.

Version 1.2:
  • Added option to disable smilies.
  • Added option to select usergroup membership type (primary only/secondary only/primary and secondary).
  • Added option for individual custom restrictions by username.
  • Replacement message can be set for BBcodes only, smilies only, both BBCodes and smilies, or turned off.
  • Quoted posts/PMs of restricted users now has BBCodes/smilies disabled.

Version 1.2.5:
  • Fixed bug with non-Latin characters.

Version 1.2.6:
  • Fixed reported issue with PMs.

Version 1.3:
  • Added the option to prevent restricted content from being saved to the database, and old restricted content to be removed.
  • Moved the code that parses content to an external script to avoid redundancy.

Version 1.3.1:
  • Fixed reported issue with Signatures.

Version 1.4:
  • Fixed multi-quote issue.

Compatibility:

Tested and working on VB 4.2.x and may work on all 4.x versions of vBulletin.

Backup/Warning:

This product does not alter your database on installation, however it is always good practice to make regular backups and you should make a backup before installing ANY new mod.

As always, products are USE AT YOUR OWN RISK. I will provide support and do my best to help but no absolute guarantee is offered.

To Install:
  1. Download and extract the attached .zip file.
  2. Upload the contents of the "upload" folder to your server's root directory.
  3. Follow AdminCP -> Plugins & Products -> Manage Products -> Add/Import Product.
  4. Click on "Choose File" and browse to the product .xml file that was packaged in the .zip file.
  5. Click "Import."
  6. You MUST enable the product in the settings before it will function.
  7. Configure the remaining settings to your liking. Each setting has a detailed explanation of its use.



Support for this product can be found here:

Download Now

Only licensed members can download files, Click Here for more information.

Supporters / CoAuthors

Screenshots

Click image for larger version

Name:	markfl_disabledbbcodes_acp.jpg
Views:	367
Size:	55.6 KB
ID:	154674  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
New Posting Features [OzzModz] Disable Maximum Images Per Post By Usergroups ozzy47 Modification Graveyard 1 06 Jul 2014 12:52

  #31  
Old 03 Aug 2016, 19:45
mx-5.de mx-5.de is offline
 
Join Date: Dec 2015
Originally Posted by MarkFL View Post
Update - Version 1.4:
Thanks a lot! We installed the update and we even upgraded to 4.2.3 PL2. I'll let you know...
Reply With Quote
  #32  
Old 04 Aug 2016, 06:50
mx-5.de mx-5.de is offline
 
Join Date: Dec 2015
Hi Mark,

seems to work fine again. Thanks a lot!
Reply With Quote
  #33  
Old 03 Sep 2016, 18:57
draco.mf draco.mf is offline
 
Join Date: Sep 2016
Hi Mark,

I encountered problem with this MOD.

Mod conflicts with vBulletin built-in double posts merge funtionality.

When Your mod is enabled and when any user use any BB code (even not restricted by this mod) - when user adds next post in sam thread, mod duplicates the post content after automatic double posts merging.

When Your mod is disabled it works correctly.

See attached screenshot to understand the problem:

http://dl.dropbox.com/s/exzrsfh8aupov1d/bug.png

Are You able to help?
Reply With Quote
  #34  
Old 03 Sep 2016, 19:22
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
I will look into this soon. Right now I have a lot going on, so it may be a while before I can get to it.

You may want to actually download it and mark it as installed in the meantime.
__________________


Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #35  
Old 03 Sep 2016, 20:10
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
I just ran some tests, and I'm not able to duplicate the issue. You likely have another mod that is conflicting with this one.
__________________


Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #36  
Old 03 Sep 2016, 22:34
draco.mf draco.mf is offline
 
Join Date: Sep 2016
It is weird because when i disable Your MOD everything working fine...

vBulletin 4.2.3 Patch Level 2

Steps to reproduce:

1. Create a post
2. Add another post with BBCode
3. In result the latest post should be merged with another previous and content of merged post will be duplicated.

Last edited by draco.mf; 03 Sep 2016 at 22:40.
Reply With Quote
  #37  
Old 04 Sep 2016, 00:14
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
Since my mod works as it should for me, I am left to assume that you have some mod installed that I don't, which in combination with mine, produces the issue you reported.
__________________


Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #38  
Old 04 Sep 2016, 03:51
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
 
Join Date: Sep 2008
Real name: Michael Miller Jr
Mannnnnnnn I'mm'a just have to scroll your mods list on your profile one day for a good minute, how'd I miss this one? Useful which equates to being pretty nifty in my book!
__________________
Daddy Does Dios and Figs!
https://www.linkedin.com/in/thelastsuperman - Custom vBulletin Modifications, Styles, and Services.
Need a Host? I recommend URLJet.

Search - Use the search feature to find similar issues/answers.
Information - Include screenshots, copy/pasted error codes, url etc.
Fixed - Please return to your thread/post and let us know how it was fixed!
Thanks - For participating! Click the "Like" on a post if someone helped you!
Reply With Quote
  #39  
Old 04 Sep 2016, 04:01
draco.mf draco.mf is offline
 
Join Date: Sep 2016
Originally Posted by MarkFL View Post
Since my mod works as it should for me, I am left to assume that you have some mod installed that I don't, which in combination with mine, produces the issue you reported.
OK. Thanks for You explanation.
In this case I need to uninstall it
Reply With Quote
  #40  
Old 04 Sep 2016, 04:21
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
Originally Posted by draco.mf View Post
OK. Thanks for You explanation.
In this case I need to uninstall it
Or you could try turning off your other mods one at a time and see which has the conflict. Then you can let me know, and I will download it and install it on my dev site, and see if I can resolve the conflict.

I wish to get this working for you, but until I know which product is not playing well with mine, there's not much I can do.
__________________


Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #41  
Old 04 Sep 2016, 04:38
draco.mf draco.mf is offline
 
Join Date: Sep 2016
Will try to detect and let You know
Reply With Quote
  #42  
Old 04 Sep 2016, 05:01
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
Originally Posted by draco.mf View Post
Will try to detect and let You know
Thank you! I appreciate it and apologize for the inconvenience. I am hoping you don't have a huge number of products installed and it won't be a Herculean effort to find it.
__________________


Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #43  
Old 11 Mar 2017, 17:42
Tom_Jones Tom_Jones is offline
 
Join Date: Feb 2015
I'm looking for a mod that does sort of the reverse of this one. I have a set of BBCodes that I only want specific users/usergroups to be able to use (and potentially a different set of users/groups per BBCode). In essence, I wish to enable, instead of disable, certain BBCodes per user/usergroup. Does something like this exist?
Reply With Quote
  #44  
Old 12 Mar 2017, 20:22
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
Yes, I also like this idea. Abe's mod does this, but it is pretty complicated to set up.
Reply With Quote
  #45  
Old 17 Dec 2017, 14:49
Peter Walker Peter Walker is offline
 
Join Date: Oct 2005
First of all, your instructions are confusing. You tell people to upload the file into the server root directory. Many people put vBulletin in a subdirectory like /forum and they would be confused as to where to put it. After experimenting, I found you meant the forum root directory. For example, if vbulletin is installed in www.mywebsite.com/forum, then the directory and contents has to be uploaded to www.mywebsite.com/forum/markfl_disablebbcodes and NOT www.mywebsite.com/markfl_disablebbcodes which would be the server directory.

I am trying to set this up so that members of a premium secondary usergroup (30) can use the bbcodes and everyone else cannot. This is to restrict access to videos, etc. to those that have permission. I am still working out how to get this to work with your mod. It would therefore be much easier if an extra setting could be added to switch to enabling the bbcodes for just selected usergroups instead of disabling for all, but.
I originally installed the first version of this mod, before discovering version 1.4 that I have now installed under vBulletin 4.2.5.

This is how I setup the mod:
Set whether product is active or not.: Yes
BBCode Tag Names: audiop,videomp4p,videomp4vttp
Smilies:
Usergroups: Marked all usergroups except: None,All,Administrators,Premium
Usergroup Membership Type: I tested all three variants - see below.
Usernames:
Individual Restrictions:
Replace BBCodes/Smilies With Message? Yes, For BBCodes Only
Active Areas: All ticked
Suppression Type: Display

As far as I could see, this should work. Everybody who has the Premium group activated as a secondary group should be allowed to see the content, everyone else should see the error message.

I tried setting Usergroups: ALL
This blocked access for everyone.
- Primary Usergroups Only: Blocked
- Secondary Usergroups Only: Blocked
- Primary And Secondary Usergroups: Blocked

I tested this with three users:

User: Administrator
Usergroup Primary : Administrator
Usergroup Secondary: Premium
Expectation: Should by able to use the bbcode as he belongs to the premium group.

User: PremiumUser
Usergroup Primary : Registered Member
Usergroup Secondary: Premium
Expectation: Should by able to use the bbcode as he belongs to the premium group.

User: NormalUser
Usergroup Primary : Registered Member
Usergroup Secondary:
Expectation: Should by blocked from seeing the bbcode and shown an error message, instead.


Test 1:
Usergroups: All marked except: None, All, Administrators, Premium
User: Administrator (should always have access)
- Primary Usergroups Only: BBCode Displayed
- Secondary Usergroups Only: Blocked
- Primary And Secondary Usergroups: Blocked

User: NormalUser (should be denied access)
- Primary Usergroups Only: BBCode Displayed, although should be blocked
- Secondary Usergroups Only: Blocked
- Primary And Secondary Usergroups: Blocked

User: PremiumUser (should have access)
- Primary Usergroups Only: BBCode Displayed, OK
- Secondary Usergroups Only: Blocked, although member of premium usergroup!
- Primary And Secondary Usergroups: Blocked

Test 2:
Usergroups: Premium usergroup selected, ONLY (Administrator and PremiumUser have this as secondary group)
User: Administrator (should always have access)
- Primary Usergroups Only: BBCode Displayed
- Secondary Usergroups Only: Blocked
- Primary And Secondary Usergroups: Blocked

User: NormalUser (should be denied access)
- Primary Usergroups Only: BBCode Displayed, although should be blocked
- Secondary Usergroups Only: Blocked
- Primary And Secondary Usergroups: Blocked

User: PremiumUser (should have access)
- Primary Usergroups Only: BBCode Displayed, OK
- Secondary Usergroups Only: Blocked, although member of premium usergroup!
- Primary And Secondary Usergroups: Blocked


As you can see, there is no combination that works correctly. What am I doing wrong?
__________________
Regards

Peter
www.rifeforum.com
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 10:27.

Layout Options | Width: Wide Color: