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
  #2  
Old 04-06-2016, 04:04 PM
Rhodium Rhodium is offline
 
Join Date: Apr 2016
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any way to disable smileys too?

Regards
Reply With Quote
  #3  
Old 04-06-2016, 05:20 PM
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent. This is something I was waiting. Something similar Abe1 had made, but it had it's own problems why I didn't used it (mainly the way all new BBcodes were disabled by default for all usergroups, what was PITA to set up and maintain, especially if you have a lot of usergroups, and especially that disabled using BBcodes for users who are in multiple usergroups and one can use BBcode, and one (or more) can't).

Does this mod has the last problem, for users in multiple usergroups? For example, does it allows use of BBcode for someone who has more than one usergroup and one allows, and one disallows using BBcode? If not, please enable best case scenario for that usergroup, so user can use BBcode if at least one usergroup allows use of BBcode.

There's also one use I was planning to use such mod: Having special BBcodes for staff members, that regular users can use, but of course, can see their effect.

Also, is it possible if user who can't use BBcode, when quoting post with disabled BBcode don't see that BBcode at all (BBcode and content within it)? Just to see empty space (last option suggests something like that, but not sure at the moment if it works that way).

Also, is it possible to have separate mod, but with inverted function, that we enter BBcode list and usergroups and/or users who can use them, and that this two mods can work together? Or, having one mod that could have different rules for different BBcodes, e.g.:

img|+6,7 - This means BBcode img can use only usergroups 6 and 7
b|-3,2 - This means that BBcode b (bold) can't use usergroups 3 and 2

Or something similar?

Anyway, great mod.

I had idea about making some posts "official", i.e. only staff members could make them. And that posts would look differently from normal posts (different background image, color, font..., basically different CSS). So users would know it is not "normal" post from staff members, but "official". Now I could make something similar, using BBcode that moderators can use, but regular users, which could have similar effect.

Which also leads me to idea, if I use image for that BBcode, can that image be disabled for users who couldn't use that BBcode? So moderators can use it in easier manner?
Reply With Quote
Благодарность от:
MarkFL
  #4  
Old 04-06-2016, 05:46 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This product uses the "is_member_of()" function when it comes to usergroups...and so no matter how many usergroups to which a user belongs, if he/she is a member of any usergroup which you select, then the BBCodes you set will be disabled for them. I don't see this as a "problem," because that's the way I intended this product to work. I can add the option to only have primary usergroups used though..

I will also look into allowing the specification of BBCodes that are by default disabled except for users/usergroups you set.
Reply With Quote
  #5  
Old 04-06-2016, 05:47 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 Rhodium View Post
Any way to disable smileys too?

Regards
I will see what I can do.
Reply With Quote
Благодарность от:
Rhodium
  #6  
Old 04-07-2016, 05:42 PM
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
This product uses the "is_member_of()" function when it comes to usergroups...and so no matter how many usergroups to which a user belongs, if he/she is a member of any usergroup which you select, then the BBCodes you set will be disabled for them. I don't see this as a "problem," because that's the way I intended this product to work. I can add the option to only have primary usergroups used though..

I will also look into allowing the specification of BBCodes that are by default disabled except for users/usergroups you set.
Yes, I suspected something like this.

As I mentioned, I had that problem with Abe1's mod. But, if there would be mod that allows using BBcodes to only certain usergroups, then it would work as vBulletin permission system. Now it works as vBulletin permissions for banned usergroups.

I use multiple usergroups for many users and this system, for my intentions with it, would collide and break my system.
Reply With Quote
  #7  
Old 04-07-2016, 06:00 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 Alan_SP View Post
Yes, I suspected something like this.

As I mentioned, I had that problem with Abe1's mod. But, if there would be mod that allows using BBcodes to only certain usergroups, then it would work as vBulletin permission system. Now it works as vBulletin permissions for banned usergroups.

I use multiple usergroups for many users and this system, for my intentions with it, would collide and break my system.
I have been working on this product, and so far I have included a setting for disabled smilies, and for the selection of usergroup type (primary only/secondary only/primary and secondary) and for replacement (None/BBcode Only/Smilie Only/BBcode And Smilie).

It was a massive rewrite.

I am going to figure a way to include BBCodes/Smilies that are restricted on an individual basis.

I have just come to realize that I need to account for other users who may quote the posts of restricted users.

So, it may be a while before an update is ready.
Reply With Quote
  #8  
Old 04-08-2016, 01:45 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Update - 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.
Reply With Quote
  #9  
Old 04-08-2016, 02:46 PM
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This sounds great. I can't like at the moment your posts, but you really improved your mod.
Reply With Quote
2 благодарности(ей) от:
MarkFL, Stratis
  #10  
Old 04-08-2016, 05:16 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

(Thanks Stratis!)
Reply With Quote
Благодарность от:
Stratis
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 05:13 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04881 seconds
  • Memory Usage 2,355KB
  • 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
  • (3)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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (9)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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