Page 1 of 1

Public viewing of Most Downloaded Files for registered files

Posted: 23 Oct 2013, 00:59
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!

Re: Public viewing of Most Downloaded Files for registered f

Posted: 27 Oct 2013, 00:19
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

Re: Public viewing of Most Downloaded Files for registered f

Posted: 28 Oct 2013, 21:14
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?

Re: Public viewing of Most Downloaded Files for registered f

Posted: 29 Oct 2013, 19:40
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

Re: Public viewing of Most Downloaded Files for registered f

Posted: 29 Oct 2013, 20:56
by brentwilliams2
Great - thanks!