vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How to get .jpg url from attached images? (https://vborg.vbsupport.ru/showthread.php?t=234340)

hiker 01-28-2010 12:14 AM

How to get .jpg url from attached images?
 
1 Attachment(s)
I heard this may be available finally on VB4 and would like to know if this is true.

Currently when I right click and "Copy Image Location" or go to the properties of an attached jpg image, it gives me the attachmentid number.

I would like the url, as in http://www.website.com/XXXXXX/XXXXXXX.jpg

Example, this image:
http://z.about.com/d/cruises/1/0/P/R...r_paris003.jpg

When uploaded, I can only seem to grab this url:
https://vborg.vbsupport.ru/attachmen...1&d=1264644599

I understand this will still work in VB forums as a hotlink, but I'll attempt to hotlink with this url in phpbb forums as well and it will not work.

I am currently using the "Folder" method for storing my images, not the database.

Can you tell me if it's possible to obtain the .jpg url of the image by default?

Thanks.

ageurtse 01-28-2010 04:22 AM

Attachments aren't stored with that kind of extension, see my mod AJGattach in here i get the attachmentpath

i use
Code:

$image = fetch_attachment_path($userid, $post['filedataid'],$thumb,'');
this done within a plugin, also there is somthing that display's the attachment.

hiker 01-28-2010 01:04 PM

I appreciate your response, but is there a simple setting where any user can just right click and copy the image location, like on other websites? (and grab the image url?)

I plan on watermarking my attached images, and I want my members to be able to hotlink these images easily on other websites and forums, thus advertising the watermarked url.

Thanks.

ageurtse 01-28-2010 04:27 PM

i don't think that this is possible.
because within small board often the attachments are stored in the database.

Paul M 01-28-2010 06:04 PM

Quote:

Originally Posted by bogley (Post 1968497)
I heard this may be available finally on VB4 and would like to know if this is true.

Where did you hear that ?

hiker 01-28-2010 06:22 PM

Quote:

Originally Posted by ageurtse (Post 1969098)
i don't think that this is possible.
because within small board often the attachments are stored in the database.

Right, but I'm storing mine in a file, not the database.

Quote:

Originally Posted by Paul M (Post 1969187)
Where did you hear that ?

I'll have to find my post on vbulletin.com , but I'm having trouble opening their forum right now.

--------------- Added [DATE]1264714292[/DATE] at [TIME]1264714292[/TIME] ---------------

Quote:

Originally Posted by Paul M (Post 1969187)
Where did you hear that ?

OK, I found it, by Lynne:
http://www.vbulletin.com/forum/showt...=1#post1863165

netshaq 01-29-2010 02:27 AM

testing https://vborg.vbsupport.ru/

i have vb4 and it worked for me

link below
http://www.netshaq.com/forum/attachm...5&d=1264521456

hiker 01-29-2010 12:37 PM

Quote:

Originally Posted by netshaq (Post 1969500)

Right, but I want to be able to promote my forum by hotlinking images in phpbb forums. This will not work in phpbb forums, they cannot read "attachmentid" links.

Frankly I find it strange that this has not been an issue in the past for those wanting to hotlink images to different types of forums. :(


And... when I go Live with my VB4 installation next week from phpbb2, what's going to happen to all of those other hotlinked images that I have on other forums, driving traffic to my site?


All times are GMT. The time now is 11:50 AM.

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.01065 seconds
  • Memory Usage 1,738KB
  • 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_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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