|
Author |
Message |
toadeny
Junior WebHelper

Joined: 11 Mar 2003
Posts: 7
|
Posted:
Wed Mar 12, 2003 5:07 am (22 years, 1 month ago) |
  |
hi there. i dunno if anyone could help me. i really like the site stats that are on the main page of this site. if anyone could tell me or help me write a similar code it would be greatly appreciated. i have tried exporting and cutting up the code from the 'subSilver/index_body.tpl' but with no success. it just displays the, um, variable refs. but, please if anyone could help me or if anyone has any idea how to do this sort of thing properly. please post it here. |
|
|
    |
 |
Daniel
Team Member


Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Wed Mar 12, 2003 7:01 am (22 years, 1 month ago) |
  |
|
    |
 |
toadeny
Junior WebHelper

Joined: 11 Mar 2003
Posts: 7
|
Posted:
Wed Mar 12, 2003 6:44 pm (22 years, 1 month ago) |
  |
can you give me some sample code then? |
|
|
    |
 |
Daniel
Team Member


Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Wed Mar 12, 2003 6:54 pm (22 years, 1 month ago) |
  |
In a phpBB enabled page, the following code would produce some stats:
Code: | echo(get_db_stat('postcount'));
echo(get_db_stat('usercount'));
$newest_userdata = get_db_stat('newestuser');
echo($newest_userdata['username']);
echo($newest_userdata['user_id']); |
|
________________________________
 |
|
    |
 |
|
|
You cannot post new topics in this forum. You cannot reply to topics in this forum. You cannot edit your posts in this forum. You cannot delete your posts in this forum. You cannot vote in polls in this forum.
|
Page generation time: 0.113123 seconds :: 17 queries executed :: All Times are GMT
Powered by phpBB 2.0
© 2001, 2002 phpBB Group :: Based on an FI Theme
| |