Page 1 of 2
Re: Phoca Download Plugin
Posted: 21 May 2009, 22:33
by Jan
Hi, try to check all the settings (section, category, file - access level), there should be nothing else to prevent giving the file for download

Re: Phoca Download Plugin
Posted: 18 Sep 2009, 00:18
by jfquestiaux
I have the same issue : section, category and file access level set to "public" but I always get the "you must login first" message.
You can check for yourself at
http://www.euf.eu.com/what-is-euf/objec ... id-22.html
I tried wit or without SEF and there is no change.
Re: Phoca Download Plugin
Posted: 24 Sep 2009, 13:37
by Jan
try to check cache too
Re: Phoca Download Plugin
Posted: 24 Sep 2009, 17:14
by jfquestiaux
I have often deleted the cache files if this is what you mean.
I tried also with cache on and off (in the global configuration). The plugin sytem - cache is not activated.
If you mean something else about the cache, could you be more specific ?
Re: Phoca Download Plugin
Posted: 24 Sep 2009, 17:33
by Jan
I meant this what you did. But no idea what can be wrong there. Did you set the file for registered only. Try to see the settings in Edit - File.
Jan
Re: Phoca Download Plugin
Posted: 01 Oct 2009, 12:36
by jfquestiaux
OK, I found the problem (but not a solution yet) : all but one or two documents are for registered members only, so the menu link to the Phoca download component is set to registered and the plugin gets this Itemid, so it redirects to the login page.
I think I am not a isolated case, so I guess a solution would be to add a parameter in the plugin to add or not the itemid to the link (or better, choose which Itemid you want to append to the link).
Re: Phoca Download Plugin
Posted: 05 Oct 2009, 17:27
by Jan
Hi, this needs to be customized in the code. For now the hack with finding the Itemid is used. It is not 100% but works on most servers. The itemid is problem because modules and plugins don't have any. So the hacks need to be used for solving this problem in Joomla!
Jan
Re: Phoca Download Plugin
Posted: 08 Oct 2009, 07:49
by codejunkie
Jan wrote:Hi, this needs to be customized in the code. For now the hack with finding the Itemid is used. It is not 100% but works on most servers. The itemid is problem because modules and plugins don't have any. So the hacks need to be used for solving this problem in Joomla!
Jan
I would recommend looking into customizing the router.php file a bit more. I know it picks up the correct ItemID if the site is set for SEF URLs. However, the router does not get executed if the site does not use SEF URLs. Figuring out how to run the router or a similar function to acquire the correct ItemID is needed.
I'm still contemplating this custom router. I just need to find the time to code it and the appropriate place to place it in this component. This may need to extend the JRouter class.

Re: Phoca Download Plugin
Posted: 05 Dec 2009, 02:23
by dbrownnh
I have a similar problem with public/unregistered users. I have been using the Phoco Download 1.2.1 successfully and with the Phoco Download Plugin. It had been working great until a couple of days ago. The user could go to the Section listing, Category listing and download a file. I used the Download Plugin in articles and referenced the file number. It worked great.
Now, when a user links on file download link provided by Phoco Dowload Plugin in an article (same article as before that had previously worked), they are redirect to the "login" page"to access a private area of the site". If that same user goes to the Phoco Download page linked to from the menu and goes to the right category folder, then can get the file.
While we have documents for our members, we also have documents for the public we like to share.
Any ideas? Thanks!
Re: Phoca Download Plugin
Posted: 08 Dec 2009, 00:13
by Jan
Hi, which version do you use now. In last version the rights were added to plugin, so you cannot access the file throgh plugin if this cannot be accessed through the menu link.
Check if the file is authorized
Jan