WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums


hotlink liink?
How to display?

Version: 2.3.6
printPrint


hotlink liink?
djc


Usergroup: Member
Joined: Jan 16, 2006
Total Topics: 3
Total Posts: 10
Posted 07/15/06 - 02:13 AM:
quote post
#1
I'd like to display an image URL that the user can copy/paste to other webpages to display pictures from their galleries.

similar to what sites like photobucket and imageshack do.

For instance, after upload, a message is displayed like:

copy and paste this code into your webpage: "<img src = "http://here.com/picture.wsn">

can this be done?

Thanks
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5703
Posted 07/17/06 - 05:56 AM:
quote post
#2
Ideally you should give them the download.php link. <img src="{DIRURL}/download.php?id={I MAGEID}&attachid={ATTACHID}">. You can use a direct filename if you insist using the attachments template variable for that: http://scripts.webmastersite.net/wsngallery/manua...

Edited by Paul on 07/27/06 - 07:02 AM. Reason: fixed
djc


Usergroup: Member
Joined: Jan 16, 2006
Total Topics: 3
Total Posts: 10
Posted 07/26/06 - 08:10 PM:
quote post
#3
when I attemp to use the download link within the <img src...> tag, all that is displayed is:

".. "

Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5703
Posted 07/27/06 - 07:02 AM:
quote post
#4
Replace {LINKID} with {IMAGEID} (was thinking of WSN Links). If it still doesn't work then you're placing it somewhere that those template variables don't apply.
djc


Usergroup: Member
Joined: Jan 16, 2006
Total Topics: 3
Total Posts: 10
Posted 07/30/06 - 11:12 PM:
quote post
#5
A ha.

I want users to be able to hotlink from other websites. The template variables wouldn't apply then, correct?

Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5703
Posted 07/31/06 - 03:50 PM:
quote post
#6
That depends on where you're giving them the link. If you give them the link on your gallery somewhere within the scope of the particular image attachment, the variables properly fill before they see the page. If you're giving them the link somewhere else on your site, then I don't know how you know which image you're giving them anyway.
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.