![]() |
|
Downloadlist howto - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Downloadlist howto (/thread-10032.html) |
Downloadlist howto - Laurent - 2012-05-30 Hi, I don't remember how to assign a ID number to the downloadlist function. I look at this page Thanks Downloadlist howto - acrylian - 2012-05-30 You don't assign the id yourself, the plugin does that automatically. You only provide the url. Sorry about the broken link, that is because the doc and these links are generated automatically. There is a missmatch because of restructuring (a little more complicated). You can always look at the plugin file comments (which is what the doc shows) or visit the doc directly. http://www.zenphoto.org/documentation/plugins/_zp-extensions---downloadList.php.html Downloadlist howto - Laurent - 2012-05-30 Thanks for the link but how can how can i do to find the ID. http://www.yourdomain.com/download.php?file=. If i remember, before there was a command to the function that generate a page with the name of the file attach to the ID. Downloadlist howto - acrylian - 2012-05-31 The id is assigned automatically and there is no "page" for a download. Either you specify a download path with the file with the downloadlink function or you specify a folder path with the downloadlist function. The plugin then looks at the stored downloads and either reuses the existing ID or assignes a new one. Downloads are stored in the plugin_storage table. You should never need this id directly but you can use the class method getItemID to get it, too. Did you look at the documentation? Downloadlist howto - Laurent - 2012-05-31 Yes i read it but i don't understand something. Now my file xxx.zip is in my uploaded directory. What is the syntax i have to write in the html code : if i understand well it's : Downloadlist howto - acrylian - 2012-05-31 The id is given on discovery. It is not meant to create these links manually. Use the functions for that. Downloadlist howto - Laurent - 2012-05-31 Ok, I believe i miss something. Where i can discover the id. Downloadlist howto - acrylian - 2012-05-31
Downloadlist howto - fretzl - 2012-05-31 All you have to do is: Downloadlist howto - Laurent - 2012-05-31 Ok, I stop for today, i will continue to search this week-end. Laurent Downloadlist howto - fretzl - 2012-06-01 Looks like something is indeed not right. Downloadlist howto - Laurent - 2012-06-01 Hi, Downloadlist howto - fretzl - 2012-06-03 Please try the nightly build trunk. Things should work now. Downloadlist howto - Laurent - 2012-06-06 Thank for all. Laurent Downloadlist howto - micheall - 2012-06-11 I just installed a brand new copy of the latest nightly (zenphoto-2012-06-10-trunk.zip) and am getting the same functionality from the ticket. Clicking a download link item goes back to the same page, and repeats the downloadID at the end of the link. I'm using the following call in it: Edit: Nevermind, appears I have to use a full filepath instead of relative, works fine now. Downloadlist howto - sbillard - 2012-06-11 You could also use the relative path "zenHttpbl/zenHttpbl-current.zip". Relative paths are from the download folder. |