MyBB Community Forums
Basic forum Stats - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: MyBB 1.2 Series (https://community.mybb.com/forum-3.html)
+------ Forum: MyBB 1.2 General Support (https://community.mybb.com/forum-4.html)
+------ Thread: Basic forum Stats (/thread-32.html)



Basic forum Stats - Installaboard - 2004-06-08

Ok, I want to have like the general forum starts gointo an iframe that i have on everypage. I know one thing i will have to do is change the iframes file to a .php file, and i will need to put <?php and ?> before and after the code. Can anyone help me with getting the forum stats into this file?

Stats i want:

Total Posts
Total Members
Newest Member (only 1 member)
And If possible
Most users online Date/Time.



RE: Basic forum Stats - Todd B. - 2004-06-08

You can always use the built in MyBB statistics page?

http://www.mybboard.com/community/stats.php

Just link to it in the header. Just remember that the iframe tag isn't supported by all browsers. Smile


RE: Basic forum Stats - Installaboard - 2004-06-08

The thing is i dont want to link that, I want the stats to appear by them selves.

like

Most ever online: 18
Total Member: 56
Total Posts: 1500
ect. ect...


RE: Basic forum Stats - Todd B. - 2004-06-08

Hm, I'm at work and haven't gotten a chance to look at the RC3 code yet.

If you are familiar with PHP/MySQL you could probably make a few custom queries to the MyBB database to pull this information on another page.

I'd have to check when I get home though.

The thing is that the variables for each statistic are already in the stats.php file, so you would have to grab them and parse them to display on your own page.


RE: Basic forum Stats - Installaboard - 2004-06-08

Hmm, Well im pretty familiar with MySQL, but no to much so with PHP as MySQL has taken a little more time to learn and im still not done learning it.

Thanks for your help


RE: Basic forum Stats - Dale Hay - 2004-06-09

Just like what i use?

Members: $membersnum Threads: $threadsnum Posts: $postsnum<br />
Welcome to our newest member, <b>$newestmember</b>