vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Miscellaneous Hacks - IMG-bbCode Domain-Whitelist (https://vborg.vbsupport.ru/showthread.php?t=192578)

MrZeropage 10-02-2008 10:00 PM

IMG-bbCode Domain-Whitelist
 
Using this modification you can define domains that are allowed for direct imagelinking using the IMG-bbCode.

This means if you allow "yourdomain.com" those images from your domain will be parsed and shown, while all other IMG-tags are converted to clickable URL-tags (or any other own bbCode, for example pure text).

Please note that this only works while creating a new post or editing an existing post.
All already linked images will stay untouched, after activation of this modification all new or edited posts will run through it.

You can define the domain-whitelist and the replacement-bbCode in the vBulletin-settings (Image Settings) and turn the functionality on/off there.


Performance is not influenced while reading, this only is working on saving a new or edited post with just 2 smart plugins.


Credits go to G?rome for the original codesnippet for the plugins


Enjoy :)

Namaless 10-09-2008 08:24 PM

* Reserved

newmasalaboard 02-20-2009 12:13 PM

Awesome !!

I was looking for this only :)

Thanks :D

MentaL 09-02-2009 10:27 PM

cheers , damn cookie stealers.

Fraxter 03-29-2010 12:35 PM

btw, works with vB 4.0.x perfectly. :)

bulbasnore 12-25-2011 07:55 PM

SeƱor ZEROPAGE! Thanks for this great mod.

bulbasnore 09-06-2014 11:06 PM

This seems to be working on 4.2. Dear author, if so, please consider copying to mods 4.x?


All times are GMT. The time now is 04:18 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.01301 seconds
  • Memory Usage 1,717KB
  • 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
  • (7)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