PDA

View Full Version : BB Code Enhancements - Restrict external images in [img] BBCode


Sph1nX
05-28-2008, 10:00 PM
For what?
If u have your own imagehost and you hate the speed of other hosts like imageshack,
this will be great for you ;)

For which version?
Tested only on vBulletin 3.6.10 and works fine for me
it`s simple php so it should work on all versions

Where does this work?
It`s global, so it works for posts and signatures

How does it work?
It checks the url in every picture included by bbcode and replaces the image with
a text if the host is not you or the one you want

File edits: [I]1
Supported: no
Time to install: <1 minute
Level: easy
You have to replace YOUDOMAIN.com with your own domain ;)

If you like it, please click as installed (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=180865)

Update:
-Images will be replaced with a message AND linked to the wrong uploaded image!
-Images will be scaled to 400x300 (if liked)
-Resized images will be displayed using lytebox (if wanted)

redlabour
05-29-2008, 01:19 PM
Not a Product and File edits. :down:

MrZeropage
05-29-2008, 04:34 PM
so sad there is no hook in the in class_bbcode so this really could be done using a plugin... but I know there is NO other way to do this, so *cheers*

Hornstar
05-30-2008, 05:35 AM
hopefully if enough people request that hook, vb will include that hook within 8 weeks ^^

etom
06-12-2008, 05:26 PM
Why not make use of any global hooks or a postbit-hook meanwhile ?

pnosko31
07-25-2008, 05:23 AM
is there a way to make it display the text in a popup before actually making the post so that I dont have a bunch of threads with just the message in it?

Sph1nX
07-30-2008, 11:34 AM
is there a way to make it display the text in a popup before actually making the post so that I dont have a bunch of threads with just the message in it?

This is possible, you just have to add a popupcode or the message in the newreply/newthread template.
then making a post/thread will display a popup...but popups just suck so a textmessage near the postingbutton would be better ;)

Rocket_Man
09-15-2008, 07:24 PM
This only allows one URL/imagehost? If I have a list of allowed imagehosts, say 10 URLs, how do I allow those?