![]() |
|
Print DownloadLinkAlbumZip & JPlayer playlist - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html) +--- Thread: Print DownloadLinkAlbumZip & JPlayer playlist (/thread-10642.html) |
Print DownloadLinkAlbumZip & JPlayer playlist - rhoulian - 09-12-2012 Hi, I'm using ZP default theme with JPlayer playlist & DownloadList extensions active. I'm a music composer, and I have tracks in different albums. I'd like the registered users to be able to download the whole album, which contains mp3's (displayed in the playlist), and wav (not displayed). In each album there are some tracks I want to protect from downloading (even for registered users). I put this line in album.php : The link is not created correctly (I have to install a nightly build), but however :
Would it be possible to do that ? thanks for the help Print DownloadLinkAlbumZip & JPlayer playlist - acrylian - 09-12-2012 Yes, the link in that function had a bug sadly.
Addition: The normal downloadlist function without zip has a parameter to explude files. Print DownloadLinkAlbumZip & JPlayer playlist - rhoulian - 09-12-2012 Thank you Acrylian. About question 1 : "You would have to create a plugin first so that Zenphoto at least recognizes wave files"... I'm quite a newbie, forget about it ;-) But what if I created a zip file in my album, containing all wav ? Will it be downloaded with the mp3 files when clicking the link album zip ? And what about extension "class-any file" ? As you answered "no" to my 2nd question I will not continue with DownloadlinkAlbumZip. About question 3 : Thanks Bye Print DownloadLinkAlbumZip & JPlayer playlist - acrylian - 09-12-2012
Print DownloadLinkAlbumZip & JPlayer playlist - rhoulian - 09-12-2012 "printDownloadlist requires that you set the directory" I get it. But what is the code for a directory corresponding to the current album ? I tried Thanks again Print DownloadLinkAlbumZip & JPlayer playlist - acrylian - 09-12-2012 You need to enter the path from your site. Entering "album" would access a folder at www.domain.com/zenphoto/album (if you installed in the subfolder "zenphoto"). So to access an album you need to enter "albums/". In case you renamed the "albums" folder you can also use the constant ALBUMFOLDER for the first part. You can also use a path outside the webroot by using "../../" so no one can download the files directly. Print DownloadLinkAlbumZip & JPlayer playlist - rhoulian - 09-12-2012 OK, but what if I want to print the downloadlist of the current album (I got 18 albums in my website), I'd like the registered user to see the downloadlist of the album's items he is looking at ! Print DownloadLinkAlbumZip & JPlayer playlist - acrylian - 09-12-2012
Print DownloadLinkAlbumZip & JPlayer playlist - rhoulian - 09-12-2012 Ok, I promise I'll take a look there. The line code is now but it's still not working (nothing displays as I am connected) The extension is working when I paste : To go further I tried some codes to exclude some file formats (I'm willing to exclude some files too, but I'll take care of it later) : Print DownloadLinkAlbumZip & JPlayer playlist - acrylian - 09-12-2012 You really should take the time to learn some php basics. The first does not work because you use the variable wrong ('albums/'.$_zp_current_album->name). The 2nd does not because you didn't close the brackets correctly. You have two nested. Well, I didn't see (hear) yet if you are a better musician...;-) |