+1 for admin view of download stats
Leech - November 13, 2007 - 00:32
| Project: | Disk Node |
| Version: | 5.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
Hi,
Is there a way to position the Download counter and Download link somewhere?
I want to assign the download link to a image.
In the other hand, is possible to see the download stats in the administration side?
Thanks,
Leandro

#1
There is nice module contemplate, where you can completely customize node teaser, as well as node body.
I think positioning shouldn't be a task of module, you can do it using something like contemplate or just edit your theme.
Admin stat - there is no way to see stats at administration interface, will will think about it.
#2
Thank you for this module. It's very useful.
I would also appreciate an administrative view of file downloads: a table with file name and number of downloads.
#3
Here is a snippet that provides admin with a table view of total downloads for each disknode file.
<?php
$header = array('Filename', 'Downloads');
$rows = array();
$sql = 'SELECT files.filename, downloads.counter FROM files, downloads WHERE files.fid = downloads.fid';
$res = db_query($sql);
while ($row = db_fetch_array($res)) {
$rows[] = $row;
}
print theme('table', $header, $rows);
?>
Instructions:
1. Enter the code in a block.
2. Select PHP Code for input format.
3. Select visibility settings, e.g. Show on only the listed pages: admin/logs
The block will return a table that lists each file and its number of downloads. A screen shot is attached.
www.keelingdesign.com
#4
Thank you Keeling, it is very useful!!