vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Prevent IMG BB Code in posts (https://vborg.vbsupport.ru/showthread.php?t=177911)

bagh1 05-03-2008 04:36 AM

Prevent IMG BB Code in posts
 
Hi,
How can I prevent IMG BB code to show up in a user's post? Some members are putting smilies that may not be appreciated by a large audience and I want to limit this.
TIA!

Lynne 05-03-2008 04:15 PM

You can disable bbcode - vboptions > bbcode settings > enable built-in bb codes - but I don't know that you can disable just the img tag without coding modifcation.

bagh1 05-04-2008 02:30 AM

I will be willing to make code changes too. Anyone have any idea on where I can do this. It's getting urgent as more and more users are doing this!
It seems like Vbulletin.org has a way to control IMG code because I can see at the bottom of my text box that [IMG] code is on. Any help would be highly appreciated.

Boofo 05-04-2008 03:22 AM

Easy. Just do a preg_replace in the postbit_display_start hook for the img tags and anything between them and replace it with and empty string.


All times are GMT. The time now is 12:13 AM.

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.01755 seconds
  • Memory Usage 1,704KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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