Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 11809
Latest: Rheingauner
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 41640
Total Topics: 7280
Most Online Today: 92
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 38
Total: 38

Author Topic: Stats on Index  (Read 2996 times)

0 Members and 1 Guest are viewing this topic.

Offline jacci

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
    • maths made easy
Stats on Index
« 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

Offline propyl

  • Full Member
  • ***
  • Posts: 159
    • View Profile
Re: Stats on Index
« Reply #1 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.



 

Related Topics

  Subject / Started by Replies Last post
2 Replies
3891 Views
Last post April 08, 2007, 03:50:21 am
by joh87swe
5 Replies
5460 Views
Last post May 04, 2009, 11:01:59 pm
by jacci
1 Replies
2415 Views
Last post June 01, 2012, 09:04:04 am
by SMFHacks
10 Replies
2408 Views
Last post October 18, 2018, 12:12:28 pm
by SMFHacks
5 Replies
2900 Views
Last post October 19, 2021, 01:10:42 pm
by mickjav

+- Recent Topics

Logo and Category? by tank_fv101
January 10, 2022, 08:03:11 am

Questions about SMF Gallery Pro Folders and Gallery URL by scso1502
January 05, 2022, 03:48:27 pm

$subcats_linktree by mickjav
January 05, 2022, 03:08:29 pm

New Photos Won't Upload - Gallery Pro 8.0 or 9.0b - Old Photos Still Visible by scso1502
January 05, 2022, 02:23:16 pm

Additional Recommendations for SMF Store by SMFHacks
January 03, 2022, 02:37:10 pm

Seasons Greetings by SMFHacks
December 24, 2021, 10:02:42 pm

Problems with the contact mod by SMFHacks
December 22, 2021, 09:16:24 am

Gallery Pro v8.0 and PHP 7.4 by SMFHacks
December 16, 2021, 01:34:03 pm

Thanks mod SMF 2.1 by Monocero
November 27, 2021, 01:13:01 pm

How to change the font on a photo in SMF Gallery Pro? by SMFHacks
November 18, 2021, 09:28:11 am

Powered by EzPortal