Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-28-2010, 12:14 AM
hiker's Avatar
hiker hiker is offline
 
Join Date: Sep 2009
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How to get .jpg url from attached images?

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.
Attached Images
File Type: jpg eiffel_tower_paris003.jpg (64.1 KB, 0 views)
Reply With Quote
  #2  
Old 01-28-2010, 04:22 AM
ageurtse ageurtse is offline
 
Join Date: Apr 2009
Location: almelo
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 01-28-2010, 01:04 PM
hiker's Avatar
hiker hiker is offline
 
Join Date: Sep 2009
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 01-28-2010, 04:27 PM
ageurtse ageurtse is offline
 
Join Date: Apr 2009
Location: almelo
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i don't think that this is possible.
because within small board often the attachments are stored in the database.
Reply With Quote
  #5  
Old 01-28-2010, 06:04 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bogley View Post
I heard this may be available finally on VB4 and would like to know if this is true.
Where did you hear that ?
Reply With Quote
  #6  
Old 01-28-2010, 06:22 PM
hiker's Avatar
hiker hiker is offline
 
Join Date: Sep 2009
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ageurtse View Post
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 View Post
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 View Post
Where did you hear that ?
OK, I found it, by Lynne:
http://www.vbulletin.com/forum/showt...=1#post1863165
Reply With Quote
  #7  
Old 01-29-2010, 02:27 AM
netshaq netshaq is offline
 
Join Date: Jan 2010
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

testing

i have vb4 and it worked for me

link below
http://www.netshaq.com/forum/attachm...5&d=1264521456
Reply With Quote
  #8  
Old 01-29-2010, 12:37 PM
hiker's Avatar
hiker hiker is offline
 
Join Date: Sep 2009
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by netshaq View Post
testing

i have vb4 and it worked for me

link below
http://www.netshaq.com/forum/attachm...5&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?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:46 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05747 seconds
  • Memory Usage 2,259KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (1)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete