Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

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
  #22  
Old 07-04-2016, 12:43 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For the BBCodes, your enter them without brackets as a comma-delimited list. for example, if you want to disable the CODE, HTML and PHP BBCodes, you could enter:

code,html,php
Reply With Quote
  #23  
Old 07-04-2016, 05:11 PM
280ZX 280ZX is offline
 
Join Date: Mar 2016
Location: Germany
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is, what I have done. So, at least my settings seem to be right.
But nevertheless, if i turn on the script, no thread will be loaded. The only exception is, when I leave the field for BBCode Tag Names blank.

My vBulletin version is 4.2.2 Patch Level 5
Reply With Quote
  #24  
Old 07-04-2016, 05:39 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When you installed the product, did you follow step 2? Which is:

Upload the contents of the "upload" folder to your server's root directory.
Reply With Quote
Благодарность от:
280ZX
  #25  
Old 07-04-2016, 07:15 PM
280ZX 280ZX is offline
 
Join Date: Mar 2016
Location: Germany
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, we only uploaded the PHP to the root directory. Now we added the folder and everything is ok. So it was our fault...
Thank you for your help. :up:
Reply With Quote
2 благодарности(ей) от:
alcazarx, MarkFL
  #26  
Old 07-04-2016, 09:10 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 280ZX View Post
Ok, we only uploaded the PHP to the root directory. Now we added the folder and everything is ok. So it was our fault...
Thank you for your help. :up:
I'm glad it was something easy to fix! Thank you for your patience and for letting me know. :up:
Reply With Quote
  #27  
Old 07-05-2016, 04:56 AM
280ZX 280ZX is offline
 
Join Date: Mar 2016
Location: Germany
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
Thank you for your patience and for letting me know. :up:
Thank you for all the effort! :up:
Reply With Quote
  #28  
Old 08-01-2016, 03:19 PM
mx-5.de mx-5.de is offline
 
Join Date: Dec 2015
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Mark,

there seems to be a problem with your Add-on V1.3.1 and VB Suite 4.2.3 PL1.

We have a strange behaviour with multiple quotes after upgrading.

VB before: 4.2.2 PL 5 Suite
PHP before: 5.3

VB after: 4.2.3 PL 1 Suite
PHP after: 5.6

Update went fine and all seems to work properly, except multiple quoting. When selecting some posts for multiple quotes, only the last posting ist quoted, but as often as posts are selected.
Example:
Post 1, Author 1
Post 2, Author 2
Post 3, Author 3

-> all three posts selected for quoting

In the text area:
"Quote from Author 1: Text from Post 3"
"Quote from Author 2: Text from Post 3"
"Quote from Author 3: Text from Post 3"

In other words: when selecting multiple posts for quote, the number of quotes is correct, the quoted authors, too. Quoted text is always the same in all quotes; it's the text from the last qoute.

I've disabled all plugins selectively, and the error occurs when your add-on is active; independent from other plugins. And it's reproducible: your add-on active -> error, your add-on inactive -> all ok.

I would be glad if you find a solution for that. If I might help you, let me know.

Greets
Andreas
Reply With Quote
  #29  
Old 08-01-2016, 04:30 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am able to replicate this issue, and will find a solution as time permits. In the meantime, please download and mark as installed.
Reply With Quote
  #30  
Old 08-01-2016, 04:52 PM
mx-5.de mx-5.de is offline
 
Join Date: Dec 2015
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
In the meantime, please download and mark as installed.
Done
Reply With Quote
2 благодарности(ей) от:
MarkFL, Stratis
  #31  
Old 08-03-2016, 02:14 AM
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.4:
  • Fixed multi-quote issue.
Reply With Quote
Reply

Thread Tools

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 01:21 AM.


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.06656 seconds
  • Memory Usage 2,352KB
  • Queries Executed 29 (?)
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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (9)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)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_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