Keeping track of how many times something is downloaded is not a feature that was built into dolphin. It will require modifications to add that ability. I did a quick search in the market and did not find anything.
Keeping track of how many times something is downloaded is not a feature that was built into dolphin. It will require modifications to add that ability. I did a quick search in the market and did not find anything. https://www.deanbassett.com |
Downloads count is only supported in Files module, to add it to files view page add the following code to modules/boonex/files/classes/BxFilesTemplate.php file at the end of getBasicFileInfoForm function: $aForm['DownloadsCount'] = array( Rules → http://www.boonex.com/terms |
After adding the files, it looks like function getBasicFileInfoForm (&$aInfo, $sUrlPref = '') { $aForm = parent::getBasicFileInfoForm($aInfo, $sUrlPref); if(!empty($aInfo['albumCaption']) && !empty($aInfo['albumUri'])) $aForm['album'] = array( 'type' => 'value', 'value' => getLink($aInfo['albumCaption'], $sUrlPref . 'browse/album/' . $aInfo['albumUri'] . '/owner/' . getUsername($aInfo['medProfId'])), 'caption' => _t('_bx_files_album') ); $aForm['DownloadsCount'] = array( 'type' => 'value', 'value' => $aInfo['DownloadsCount'], 'caption' => _t('Number of downloads') ); return $aForm; }
But it only shows on Public Files details page and download count is always 0, not increasing after downloading the files..... How to show that in Group files? Attachment below! |
AlexT: Please reply to this! |
How to show that in Group files? Attachment below!
Some custom modification is required for this, I can't provide such instructions. Rules → http://www.boonex.com/terms |