Page 1 of 1

Token and count reset

Posted: 06 Nov 2014, 11:07
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

Re: Token and count reset

Posted: 07 Nov 2014, 00:30
by Jan
Hi, thank you for the guide.

Jan