PDA

View Full Version : Miscellaneous Hacks - IMG-bbCode Domain-Whitelist


MrZeropage
10-02-2008, 10:00 PM
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 (http://www.vbulletin-germany.org/member.php?u=19) 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?