Quote:
Originally Posted by RS_Jelle
You need to include /includes/class_downloads.php in your forum home (using a plugin) to be able to use the $dl class. Then you can put {$dl->stats['files']} (and others) everywhere you want in a forum home template.
Try adding a plugin to the forumhome_start hook location with this content:
PHP Code:
require_once('./includes/class_downloads.php');
$dl = new vB_Downloads();
(I didn't test it, but it should work normally.)
|
The plugin worked great thanks!
Can you give a list of variables we have available once class_downloads.php is hooked into forumhome?
I currently have:
{$dl->stats['files']}
{$dl->stats['downloads']}
working wonderfully. I tried to use: {$dl->stats['bandwidth']} but it seems the bandwidth variable is only used in downloads.php, in the do=stats function.
It would be great if someone could make a true forumhome stats vbulletin mini-product for DownloadsII so that we can display stats like:
- total files
- total categories
- total diskspace used
- total bandwidth
- total contributors
- etc.
I'd love to do it, but my vB plugin writing skills are not up to the task.
Also, I saw mention in earlier posts in this thread (some from over 1 year ago) that version 6 of DownloadsII was "coming soon". Any ETA on the release?
I'd love to donate by purchasing a branding free option, but it seems you said that you must wait till version 6 to offer that.
Thanks for a really awesome vB addon! :up: