
Phoca Download Plugin
- Jan
- Phoca Hero
- Posts: 48799
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Download Plugin
Hi, try to check all the settings (section, category, file - access level), there should be nothing else to prevent giving the file for download 

If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 17
- Joined: 17 Sep 2009, 13:30
- Location: Nîmes
- Contact:
Re: Phoca Download Plugin
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.
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.
- Jan
- Phoca Hero
- Posts: 48799
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Download Plugin
try to check cache too
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 17
- Joined: 17 Sep 2009, 13:30
- Location: Nîmes
- Contact:
Re: Phoca Download Plugin
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 ?
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 ?
- Jan
- Phoca Hero
- Posts: 48799
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Download Plugin
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
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 17
- Joined: 17 Sep 2009, 13:30
- Location: Nîmes
- Contact:
Re: Phoca Download Plugin
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).
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).
- Jan
- Phoca Hero
- Posts: 48799
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Download Plugin
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
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Professional
- Posts: 167
- Joined: 11 Apr 2009, 01:30
- Contact:
Re: Phoca Download Plugin
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.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'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.

Download Phoca Download Menu Module for listing Sections or Categories.
-
- Phoca Newbie
- Posts: 2
- Joined: 05 Dec 2009, 02:13
Re: Phoca Download Plugin
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!
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!
- Jan
- Phoca Hero
- Posts: 48799
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Download Plugin
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
Check if the file is authorized
Jan
If you find Phoca extensions useful, please support the project