vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Automatically parse images (https://vborg.vbsupport.ru/showthread.php?t=46315)

eScrewDotCom 12-02-2002 11:16 PM

Automatically parse images
 
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

Quote:

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..


All times are GMT. The time now is 02:41 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01185 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete