4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 Smart coders? Can you help? (what's the code for this?)
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
toadeny
Junior WebHelper
Junior WebHelper


Joined: 11 Mar 2003
Posts: 7

PostPosted: Wed Mar 12, 2003 5:07 am (14 years, 8 months ago) Reply with QuoteBack to Top

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.
OfflineView User's ProfileFind all posts by toadenySend Personal Message
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Wed Mar 12, 2003 7:01 am (14 years, 8 months ago) Reply with QuoteBack to Top

Yes, it wouldn't work without having a PHP page to set the {} variables.

Anyway, why the new topic? Did you try the script I suggested here:

http://www.4webhelp.net/forums/viewtopic.php?t=1333

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
toadeny
Junior WebHelper
Junior WebHelper


Joined: 11 Mar 2003
Posts: 7

PostPosted: Wed Mar 12, 2003 6:44 pm (14 years, 8 months ago) Reply with QuoteBack to Top

can you give me some sample code then?
OfflineView User's ProfileFind all posts by toadenySend Personal Message
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Wed Mar 12, 2003 6:54 pm (14 years, 8 months ago) Reply with QuoteBack to Top

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']);

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




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.050436 seconds :: 19 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme