vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   vBulletin 4 Request - Disable [img] bb code for specific user or usergroup? (https://vborg.vbsupport.ru/showthread.php?t=322274)

The Mailman 04-02-2016 12:45 AM

vBulletin 4 Request - Disable [img] bb code for specific user or usergroup?
 
Anyone know of a mod that can do this? Only one I found disabled things like font and size, but not images. I don't want to disable images globally, just for some troublemakers spamming the joint.

MarkFL 04-02-2016 12:52 AM

Do you just want IMG tags and their contents to simply be removed from the posts of certain users? Or do you want them to remain in the database, but simply not display, and have this work retroactively, that is, in all their old posts as well?

The Mailman 04-02-2016 08:04 PM

I think the latter, just disabling the rending of the bb code for specific users / usergroup

though if the former was possible, sure

MarkFL 04-02-2016 09:24 PM

Quote:

Originally Posted by The Mailman (Post 2568389)
I think the latter, just disabling the rending of the bb code for specific users / usergroup

though if the former was possible, sure

You sound like you are leaning towards the latter option, and it would actually require fewer server resources, so I'll go that route (at least as long as that works for you). I will upload a product for you to test, likely within 24 hours. :)

The Mailman 04-02-2016 09:50 PM

omg! :o thanks

MarkFL 04-03-2016 03:25 AM

1 Attachment(s)
Okay, here is the first version for you to test.

Once you import the product, go to the settings for the product, and enabled it, give the comma-delimited list of BBCodes you wish to disable, selects the usergroups and/or enter the comma-delimited list of usernames, choose whether you want the BBCodes to also be disabled in signatures, and finally decide whether you want the disabled BBCodes to be replaced with a message or if you want them to simply be removed:

https://vborg.vbsupport.ru/attachmen...1&d=1459661080

Please let me know if there are any changes or added features you would like. :)

The Mailman 04-03-2016 03:27 PM

wow man, this is amazing, thank you!!! Works great

what do i owe ya? xD

MarkFL 04-03-2016 04:22 PM

Quote:

Originally Posted by The Mailman (Post 2568426)
wow man, this is amazing, thank you!!! Works great

what do i owe ya? xD

Glad to hear it! :)

If/when I decide to officially publish this mod, I will cite you as the co-author.;)

MarkFL 04-05-2016 04:23 PM

I have posted a much more robust version of this product here:

Disable BBCodes Per Users/Usergroups


All times are GMT. The time now is 09:32 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.01792 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete