Add a Download Counter for Photos/Files/Videos/etc

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
Quote · 21 Sep 2014

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(
            'type' => 'value',
            'value' => $aInfo['DownloadsCount'],
            'caption' => _t('Number of downloads')
        ); 
       
        return $aForm;
    } 

Rules → http://www.boonex.com/terms
Quote · 21 Sep 2014

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!

2016-02-20.png · 52.3K · 505 views
Quote · 20 Feb 2016

AlexT: Please reply to this!

Quote · 24 Mar 2016

 

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
Quote · 26 Mar 2016
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.