Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Disable BBCodes/Smilies Per Users/Usergroups Details »»
Disable BBCodes/Smilies Per Users/Usergroups
Version: 1.4, by MarkFL MarkFL is offline
Developer Last Online: Jun 2020 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.2.x Rating:
Released: 04-04-2016 Last Update: 08-02-2016 Installs: 27
Uses Plugins
Additional Files Translations  
No support by the author.

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

File Type: zip MarkFL - Disable BBcodes and Smilies Per User and Usergroups v1.4.zip (8.2 KB, 82 views)

Screenshots

File Type: jpg markfl_disabledbbcodes_acp.jpg (55.6 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
4 благодарности(ей) от:
Alan_SP, mx-5.de, TAIFUN_T, TheLastSuperman

Comments
  #42  
Old 09-04-2016, 01:38 AM
draco.mf draco.mf is offline
 
Join Date: Sep 2016
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will try to detect and let You know
Reply With Quote
Благодарность от:
MarkFL
  #43  
Old 09-04-2016, 02:01 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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.
Reply With Quote
  #44  
Old 03-11-2017, 03:42 PM
Tom_Jones Tom_Jones is offline
 
Join Date: Feb 2015
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Благодарность от:
Alan_SP
  #45  
Old 03-12-2017, 06:22 PM
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, I also like this idea. Abe's mod does this, but it is pretty complicated to set up.
Reply With Quote
  #46  
Old 12-17-2017, 12:49 PM
Peter Walker Peter Walker is offline
 
Join Date: Oct 2005
Location: Germany
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #47  
Old 12-22-2017, 09:07 PM
Peter Walker Peter Walker is offline
 
Join Date: Oct 2005
Location: Germany
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have solved my problem, but not with this Mod. It appears to be flawed and does not work properly, I uninstalled it.

It turns out that another similar Mod, by the same author, does work properly and with a minor change, will do exactly what I needed.

The Mod is Hide BBCodes/Signatures From Guests/Users and I explain what needs to be changed, there in post #110. I even provide my updated product file.

So if you need to enable a BBCode in just some forums of your choice, that is the way to do it.
I have implemented it on my forum and it works well.

I hope this helps.
Reply With Quote
  #48  
Old 12-22-2017, 10:27 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Peter Walker View Post
I have solved my problem, but not with this Mod. It appears to be flawed and does not work properly, I uninstalled it.
Your use of the product was the inverse of the intended usage, so that was where the issue was. As far as I know, everyone who uses this for its intended purpose finds it works correctly.
Reply With Quote
  #49  
Old 12-22-2017, 11:32 PM
Peter Walker Peter Walker is offline
 
Join Date: Oct 2005
Location: Germany
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tested it as it was intended, and even then it was not reliable. Now this could be something that was specific to my forum. Either way for me, the other mod was reliable from the start - this one was not.
Reply With Quote
  #50  
Old 12-23-2017, 04:41 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It could be your use of secondary usergroups gave you results you didn't expect. If a user is a member of an allowed group and also a member of a disallowed usergroup, the net result is they will be disallowed.
Reply With Quote
  #51  
Old 03-10-2019, 04:21 AM
two dogs two dogs is offline
 
Join Date: Dec 2013
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Mark,

I've recently installed this excellent mod on a couple of vBulletin 4.2.5 forums that I administer.

As it was working well on the first one I installed it on, I installed it on the second one. Soon after, I was informed by a user that he was receiving the following requester on clicking on the Post Quick Reply button, after typing a response into the Quick Reply panel:

Attachment 157371

This had never happened previously, and the normal behaviour returned on disabling the mod. A little more testing determined that with the mod enabled, but no tag names specified, the problem didn't occur!

I didn't notice the problem on the first forum, as I had disabled the Quick Reply option on it. When I temporarily enabled it there, the problem manifested itself.

Wondering if there was a conflict with some other mod, I tried disabling them all on a test version of the production forum, but the problem persisted.

I've just now done an install of a new, clean, V4.2.5 forum, with no changes to the default configuration. Yes, Click Not Required was the default for the Quick Reply option.

After creating a thread, and doing a couple of Quick Replies, without any problem, I installed the mod, and the problem manifested itself (again, only when a tag name was specified). So, it would seem that the problem isn't caused by any conflict with another mod?

Any ideas?

Cheers,
Julian
Reply With Quote
Reply


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


All times are GMT. The time now is 08:37 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04777 seconds
  • Memory Usage 2,359KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (6)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete