|
|
Joined: Sep 2000
Posts: 71
Member
|
Member
Joined: Sep 2000
Posts: 71 |
This probably doesn't count as a hack as you don't edit any of the UBB files, if so sorry. All this does is find the total member count, last member, number of forums, number of topics and number of posts and you can easily display it on your own formatted page. http://www.ppn.f2s.com/stats.phps It can probably be improved a little.
|
|
|
|
Joined: Feb 2001
Posts: 127
Member
|
Member
Joined: Feb 2001
Posts: 127 |
|
|
|
|
Joined: May 2001
Posts: 2,798
Member
|
Member
Joined: May 2001
Posts: 2,798 |
This is awesome ! Thanks alot ..
|
|
|
|
Joined: Mar 2001
Posts: 326
Member
|
Member
Joined: Mar 2001
Posts: 326 |
Can you do it as a perl script as well and include via SSI?
|
|
|
|
Joined: Mar 2001
Posts: 326
Member
|
Member
Joined: Mar 2001
Posts: 326 |
Hi,
Well this runs, but you need to have some error control, a good example is:
$i = 1; while($i <= $forumcount) { $d = file("$noncgi_dir/Forum$i/lastnumber.file"); $topics = $d[1] + $topics; $posts = $d[2] + $posts; $i++; }
That's all fine and good, but not every forum DIR carries that file. Thus you end up getting a full page of error messages. PLEASE FIX.
God I wish there was a perl version of this.
|
|
|
|
Joined: May 2001
Posts: 8
Junior Member
|
Junior Member
Joined: May 2001
Posts: 8 |
Also, a lot of busy boards like mine prune posts to save space especially when we were running 5.x
How about counting the post counts from each member in the member files instead. This gives a true count and since this page will not be called every time someone visits it won't be such a load on the server.
Steve
|
|
|
|
Joined: Mar 2001
Posts: 326
Member
|
Member
Joined: Mar 2001
Posts: 326 |
Wouldn't that take longer? I mean you might have 10 or 100 forums, yet have thousands of members. It already takes roughly 1 second to load, surely checking all those member files would take things through the roof?
I'm no good with PHP, but I'm trying to add some 'error' control so if files are missing then it will ignore them. That's a start, we need somebody more skilled on this.
Perl/CGI ver would be even better =).
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 21,079
Joined: March 2000
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|