PDA

View Full Version : Automatically parse images


eScrewDotCom
12-02-2002, 11:16 PM
I need to display images by automatically parsing the URL of the image. How do I do that?

Erwin
12-03-2002, 12:09 AM
You should be able to do this already.

Go to Admin CP -> vBulletin Options -> Posting Code allowances (vB code / HTML / etc) -> Allow Dynamic URL for [img] tags?

Set to YES.

Then just use the img tags.

eScrewDotCom
12-03-2002, 02:18 AM
I don't want to use IMG tags. I want to paste the URL of the image and I want to display the image automatically. It's the same as URL parsing but for images.

Erwin
12-03-2002, 02:26 AM
I see what you mean... that needs hacking of functions.php... when I have time I will look at it...

eScrewDotCom
12-03-2002, 03:03 AM
cool.

eScrewDotCom
12-08-2002, 04:03 AM
I don't really care if UserCP option to turn off IMG code is working or not. I really need that simple IMG parse hack. :bunny:

Logician
12-08-2002, 12:05 PM
Originally posted by eScrewDotCom
I don't want to use IMG tags. I want to paste the URL of the image and I want to display the image automatically. It's the same as URL parsing but for images.
And how the script is suppose to know whether your URL is a URL or an image if you dont use tags? You may code the script to look for the ending chars like "jpg" or "gif" but an URL without these chars can still be an IMAGE. One example is vb attachment images.

So this is why IMG tags are for: Only the poster can know it if it's an image or not..