I have access to all my files restricted to registered members, but I have "Display Inaccessible file" set to Yes.
However, none of these files show up in the "Most Downloaded Files" area for guests.
How can I get that section to show up for guests?
Thanks!
Public viewing of Most Downloaded Files for registered files
-
- Phoca Member
- Posts: 26
- Joined: 23 Aug 2009, 01:22
- Jan
- Phoca Hero
- Posts: 48574
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Public viewing of Most Downloaded Files for registered f
Hi, they are only displayed in standard view - in category view, to display them in most download files, this needs to be customized in the code.
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 26
- Joined: 23 Aug 2009, 01:22
Re: Public viewing of Most Downloaded Files for registered f
I tried commenting out the following in models/categories.php:
This seemed to work, although I don't know if it will break anything else... What do you think?
Code: Select all
$wheres[] = " c.access IN (".$userLevels.")";
- Jan
- Phoca Hero
- Posts: 48574
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Public viewing of Most Downloaded Files for registered f
Hi, in categories view, the rescriction is only to view the files - downloading of files is set in category/download view so this should not break the download rule (you can see the files in categories view but you cannot download them when you are public)
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 26
- Joined: 23 Aug 2009, 01:22
Re: Public viewing of Most Downloaded Files for registered f
Great - thanks!