Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Sep 2000
Posts: 71
Member
Member
Offline
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.


vBulletin Team
[email protected]
Sponsored Links
Joined: Feb 2001
Posts: 127
Member
Member
Offline
Joined: Feb 2001
Posts: 127
thx

Joined: May 2001
Posts: 2,798
Member
Member
Offline
Joined: May 2001
Posts: 2,798
This is awesome ! Thanks alot ..

Joined: Mar 2001
Posts: 326
Member
Member
Offline
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
Offline
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.

Sponsored Links
Joined: May 2001
Posts: 8
Junior Member
Junior Member
Offline
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
Offline
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 =).


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)