Token and count reset

Phoca Download - download manager
gulp
Phoca Member
Phoca Member
Posts: 33
Joined: 09 Oct 2012, 12:45

Token and count reset

Post by gulp »

Hi,
is there a way to auto reset the token download count for a file when the token get changed ?
Should always be the admin to manaul reset this count while changing the token ?

P.S.: I've made a custom update to the admin component for those who need this behaviour:
1. open file
administrator/components/com_phocadownload/models/fields/phocadownloadtoken.php
2. go to row 44
3. add

Code: Select all

document.getElementById(\'jform_tokenhits\').value = \'0\';
before the "return true;" code
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48566
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Token and count reset

Post by Jan »

Hi, thank you for the guide.

Jan
If you find Phoca extensions useful, please support the project
Post Reply