PDA

View Full Version : How to get .jpg url from attached images?


hiker
01-28-2010, 12:14 AM
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/3/eiffel_tower_paris003.jpg

When uploaded, I can only seem to grab this url:
https://vborg.vbsupport.ru/attachment.php?attachmentid=111263&stc=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 (https://vborg.vbsupport.ru/showthread.php?t=233261) in here i get the attachmentpath

i use $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
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
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.

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 1264714292 at 1264714292 ---------------

Where did you hear that ?

OK, I found it, by Lynne:
http://www.vbulletin.com/forum/showthread.php?329687-How-to-get-jpg-url-from-uploaded-attachment&p=1863165&viewfull=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/attachment.php?attachmentid=165&d=1264521456

hiker
01-29-2010, 12:37 PM
testing http://www.netshaq.com/forum/attachment.php?attachmentid=165&d=1264521456

i have vb4 and it worked for me

link below
http://www.netshaq.com/forum/attachment.php?attachmentid=165&d=1264521456

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?