Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12367
Latest: tech9
New This Month: 7
New This Week: 0
New Today: 0
Stats
Total Posts: 40205
Total Topics: 7079
Most Online Today: 55
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 30
Total: 30

Author Topic: Stats on Index  (Read 2703 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: 154
    • 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
3355 Views
Last post April 08, 2007, 03:50:21 am
by joh87swe
0 Replies
2576 Views
Last post October 31, 2007, 03:43:11 pm
by sasawawa
5 Replies
4712 Views
Last post May 04, 2009, 11:01:59 pm
by jacci
1 Replies
1779 Views
Last post June 01, 2012, 09:04:04 am
by SMFHacks
10 Replies
1252 Views
Last post October 18, 2018, 12:12:28 pm
by SMFHacks

+- Recent Topics

Error message with latest SMF 2.1 Github build by Hatshepsut
May 25, 2020, 01:43:26 am

smfblog not working on 2.0.17 by tech9
May 20, 2020, 01:44:34 pm

Copyright removal by stbc
May 18, 2020, 01:27:57 am

Mod Verified User i can't square the image by Rock Lee
May 07, 2020, 07:56:10 pm

SMF4Mobile 2.0 released for SMF 2.0.x by SMFHacks
May 06, 2020, 12:13:14 pm

SMF Social Login Pro - Discontinued? by Nicole
May 02, 2020, 05:47:04 pm

Likes by SMFHacks
April 30, 2020, 09:50:35 pm

Upgrade Issue - by SMFHacks
April 28, 2020, 12:40:13 pm

Issues regarding Licenses and Domain by SMFHacks
April 28, 2020, 10:59:41 am

[Mod]SMF2WPBridge - Wordpress Login Bridge by js
April 28, 2020, 05:04:54 am

Powered by EzPortal