Public viewing of Most Downloaded Files for registered files

Phoca Download - download manager
brentwilliams2
Phoca Member
Phoca Member
Posts: 26
Joined: 23 Aug 2009, 01:22

Public viewing of Most Downloaded Files for registered files

Post by brentwilliams2 »

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!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48570
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Public viewing of Most Downloaded Files for registered f

Post by Jan »

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
If you find Phoca extensions useful, please support the project
brentwilliams2
Phoca Member
Phoca Member
Posts: 26
Joined: 23 Aug 2009, 01:22

Re: Public viewing of Most Downloaded Files for registered f

Post by brentwilliams2 »

I tried commenting out the following in models/categories.php:

Code: Select all

$wheres[] 	= " c.access IN (".$userLevels.")";
This seemed to work, although I don't know if it will break anything else... What do you think?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48570
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Public viewing of Most Downloaded Files for registered f

Post by Jan »

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
If you find Phoca extensions useful, please support the project
brentwilliams2
Phoca Member
Phoca Member
Posts: 26
Joined: 23 Aug 2009, 01:22

Re: Public viewing of Most Downloaded Files for registered f

Post by brentwilliams2 »

Great - thanks!
Post Reply