ZenphotoCMS Forum
DownloadList Plugin - 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: DownloadList Plugin (/thread-12413.html)



DownloadList Plugin - Ralf - 2016-01-08

Hi,

I have a problem with the DownloadList Plugin - I guess it has something to do with the user rights.

I have added the printdownloadlist to the codeblock of some articles:
printdownloadlist('uploaded/subfolder')
which works fine as long as i am logged in.

Not logged in vistors see the files, but can not download them.
Example:
http://ralf-kerkhoff.de/artikel/black-white-styles

Can someone point me in the right direction and tell me which settings I have to make?

Cheers
Ralf




DownloadList Plugin - Ralf - 2016-01-08

Hi,

problem is caused by the static html plugin.
Disabling it, solves the problem.

Is there a solution other than:
Either add news.php to the excluded pages in the plugin settings or adding each page (like news.php/titlelink) in the plugin settings?

Cheers
Ralf




DownloadList Plugin - acrylian - 2016-01-08

Sadly this seems to be an incompatibility with the static_html_cache. If not logged in you get the cached pages and those do not execute the download process for yet unknown reasons. So sadly the only fix currently is to turn the cache off…




DownloadList Plugin - acrylian - 2016-01-08

You were faster ;-) I don't understand your other question. It is either exclude all news or specific ones. There is no other way. Normally you don't want to exclude that much or any since that is the point of a cache actually.




DownloadList Plugin - Ralf - 2016-01-08

Hi,
my question was if there is another solution than excluding the pages in the static html plugin or disabling the static html plugin.

Something like a 'no cache' argument in the plugin..

Cheers
Ralf




DownloadList Plugin - acrylian - 2016-01-08

No, the cache happens on a base theme page level. The downloadlist not working is simply a bug no one ever noticed before.




DownloadList Plugin - acrylian - 2016-01-08

Please try the support build (fix is in /zp-core/index.php) for a fix.




DownloadList Plugin - Ralf - 2016-01-08

Hi,
just uploaded the index.php (as described above) and voila:
download works with the static html plugin enabled.

Thanks a lot for fixing it !!!!