UBB.Dev
Posted By: Sapphy Image protection ubbcode not working - 12/13/2003 11:22 PM
I'm pretty certain that this isn't as a result of something I've done but it is always possible!

On my site I allow users to upload their images. I protect my bandwidth by passing all images through a php file that checks the referring url and if it is listed it allows the image to load.

When the picture is uploaded it returns the following code:
[Linked Image]
ready to be copied and pasted into a post.

The problem is that when I now paste the code into a new post it just shows up as code. All the images loaded and posted whilst using the previous versions of threads still load ok, it's only new posts.

An example of my problems can be seen HERE

Is there some ubbcode verification that stops the php script from working?
Posted By: Turbosport Re: Image protection ubbcode not working - 12/14/2003 12:26 AM
BUG in ubbt.inc.php see here:

http://community.infopop.net/eve/ubb.x?a=tpc&s=729094322&f=6183028913&m=9651083967
Posted By: Rick Re: Image protection ubbcode not working - 12/14/2003 12:59 AM
The actual problem is that's a dynamic image. .threads doesn't allow that since basically that could be a script that would allow an offsite user to log all of your user's activitiy.
Posted By: Sapphy Re: Image protection ubbcode not working - 12/14/2003 1:19 AM
Thanks for your help clint.

Rick - it still needs to have a .jpg or .gif extension so would that still be needed? Is there another form of image protection I could run?
Posted By: Turbosport Re: Image protection ubbcode not working - 12/14/2003 2:02 AM
posted new workaround Hugh.
Posted By: Turbosport Re: Image protection ubbcode not working - 12/14/2003 10:56 PM
New Hack available here:

https://www.ubbdev.com/forum/showflat...5/o/all/fpart/1
© UBB.Developers