Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 193
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 193
Total: 193

Author Topic: Stats on Index  (Read 3649 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
4387 Views
Last post April 08, 2007, 03:50:21 am
by joh87swe
5 Replies
6735 Views
Last post May 04, 2009, 11:01:59 pm
by jacci
1 Replies
3141 Views
Last post June 01, 2012, 09:04:04 am
by SMFHacks
10 Replies
4451 Views
Last post October 18, 2018, 12:12:28 pm
by SMFHacks
5 Replies
3633 Views
Last post October 19, 2021, 01:10:42 pm
by mickjav

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal