PDA

View Full Version : [IMG] BBCode File Caching (copying hotlinked files locally)


eviltechie
06-13-2008, 07:00 PM
I had an idea for my forum, and was wondering if anyone had heard of such a thing, or if I'd have to do it myself.

I'd like to modify the way [ IMG ] BBCode tags are handled. What I'd like is for them to cause the hotlinked image to be copied to my server and subsequently loaded from my server as opposed to fro mthe hotlink location.

Basically, say if someone did this:
[ IMG ]http://photobucket.com/blah/somephoto283786.jpg[ /IMG ]

I'd like it to copy that file to my server and automatically change the BBCode to the following:
[ IMG ]http://myserver.com/imagecache/7283466.jpg[ /IMG ]

The BBCode would not try to copy locally files that already exist on my server, so after the first copy and BBCode update, it wouldn't require any additional processing.

The reason for this is often people post photos that either exceed their bandwidth allowance, or that they later move or delete, causing the thread to be full of broken images.

Has that been done? If not, would anyone be interested in doing it? I may end up doing this myself, but would rather not duplicate an existing project for the sake of time.

I know members could just use the attachment feature, but a lot of people don't like to take the time.

Dismounted
06-14-2008, 06:34 AM
To my knowledge, I don't believe there is a modification for that at the moment. I had though of doing this myself before, but due to the lack of time, I did not.

kpmedia
12-18-2011, 01:08 AM
I know I'm bumping an old post...

... But did anything ever come of this? This would be an excellent mod.

Having a site with broken images is excessively aggravating, especially when the person had posted how-to guides.

Thanks.

kh99
12-18-2011, 03:38 AM
I haven't tried it, but there's this mod: https://vborg.vbsupport.ru/showthread.php?t=123338 . One post near the end of the thread says it was working for vb 3.8.7