PDA

View Full Version : IMG-bbCode Domain-Whitelist


MrZeropage
03 Oct 2008, 11:06
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
09 Oct 2008, 21:24
* Reserved

newmasalaboard
20 Feb 2009, 13:13
Awesome !!

I was looking for this only :)

Thanks :D

MentaL
02 Sep 2009, 23:27
cheers , damn cookie stealers.

Fraxter
29 Mar 2010, 13:35
btw, works with vB 4.0.x perfectly. :)

bulbasnore
25 Dec 2011, 19:55
Señor ZEROPAGE! Thanks for this great mod.