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

Register | Forgot Password

Downloadlink
Add Downloadlink on the categoryview

Version: 2.3.6
printPrint


Downloadlink
Werni68
Beginner

Usergroup: Member
Joined: Jul 10, 2006
Location: Vienna
Total Topics: 2
Total Posts: 6
Posted 08/22/06 - 07:38 AM:
quote post
#1
I want to add the downloadability of the attachment to the categoryview.

Iīve allready added the code to the displaylink.tpl and the downloadlink appears but when i move the mouse over the link i see that the ATTACHID Field isnīt filled. and when i cick on it i only can download the download.php file.

It looks like:

download.php?id=335&attachid={ATTACHID}&action=download

Which code must i implement in which PHP-Script ?

thanks for help

Werner
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6339
Posted 08/22/06 - 05:03 PM:
quote post
#2
To give a download link for an attachment you have to be within the scope of the attachment. Since there can be multiple attachments per item, there's a <!-- BEGIN LINK ATTACHMENTS --> area in the template where the {ATTACH variables apply. If you want to give a link outside of that, download.php?id={IMAGEID}&action=download should grab the first available attachment for the item.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.