Webmastersite.net
Register Log In

hotlink liink?
How to display?

Comments on hotlink liink?

djc


Usergroup: Member
Joined: Jan 16, 2006

Total Topics: 3
Total Comments: 10
djc
Posted Jul 15, 2006 - 4:13 AM:

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
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jul 17, 2006 - 7:56 AM:

Ideally you should give them the download.php link. <img src="{DIRURL}/download.php?id={IMAGEID}&attachid={ATTACHID}">. You can use a direct filename if you insist using the attachments template variable for that: scripts.webmastersite.net/w...allery/manual/articles/312
djc


Usergroup: Member
Joined: Jan 16, 2006

Total Topics: 3
Total Comments: 10
djc
Posted Jul 26, 2006 - 10:10 PM:

when I attemp to use the download link within the <img src...> tag, all that is displayed is:

".. "

Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jul 27, 2006 - 9:02 AM:

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 Comments: 10
djc
Posted Jul 31, 2006 - 1:12 AM:

A ha.

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

Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jul 31, 2006 - 5:50 PM:

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
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.