SMFHacks.com

Downloads System Pro => Support => Topic started by: jacci on May 14, 2009, 08:15:06 am

Title: Stats on Index
Post by: jacci on May 14, 2009, 08:15:06 am
Is it possible to pull the stats onto the main index page for total files so that it can read smt like
total members , total posts, total files

i have tried a few different things to get it into my index.template.php for my theme and have not been able to succeed. I am not even sure if i have the right bit of code:
Code: [Select]
<tr>

<td class="windowbg2" width="50%">', $txt['downloads_stats_totalfiles'] ,  '</td>

<td class="windowbg2" width="50%"  align="right">', comma_format($context['total_files']) , '</td>

</tr>

any help greatly appreciated, thanks
Title: Re: Stats on Index
Post by: propyl on May 14, 2009, 01:52:46 pm
youll need the code that declares the value for total_files otherwise total_files will just return "" or nothing between two quotes

my guess is you'd have to include a reference to the downloads file in the source folder, but im no expert at all at this stuff.