php forum
php mysql forum
php mysql smarty
 
Topic Options
#43517 - 07/29/01 01:43 PM Daily active topics and total posts storer
treszoks Offline
Member

Registered: 04/29/01
Posts: 58
What this script does:
This script stores the total number of active topics and total posts made everyday into a file. This mod is executed when the old dailyindex file is deleted and a new one is created. The stand-alone script is simply a way of viewing the results from the web. It puts all the data in a table with the date, active topics, and total posts along with a little graph similar to my member graph script. Thanks kshock and Thermit for the ideas!

As usual, make a backup of ubb_library2.pl first!

Let's begin:

In "ubb_library2.pl" FIND:
unlink ("$NonCGIPath/$dfile");

ADD ABOVE it this:
&storedailes("$dfile");

Same file ADD this subroutine to the bottom before the "1;"

Code:
code:


Done with ubb_library2.pl. Re-upload.

Now download the following script and follow the instructions inside:

http://www.baylorfans.com/tmp/dailies.txt

That's it!

[ July 30, 2001: Message edited by: treszoks ]

Top
#43518 - 07/29/01 08:21 PM Re: Daily active topics and total posts storer
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
Sounds Great, Do you have a demo for it?

Top
#43519 - 07/29/01 09:34 PM Re: Daily active topics and total posts storer
treszoks Offline
Member

Registered: 04/29/01
Posts: 58
I just uploaded a new copy of dailies.txt with two small bug fixes.

Here's a plain html file of what it might look like:
http://www.baylorfans.com/tmp/dailies.html

Top
#43520 - 07/30/01 02:47 AM Re: Daily active topics and total posts storer
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
Looks pretty good, Has it been tested so it works and there are no bugs?

Top
#43521 - 07/30/01 09:42 AM Re: Daily active topics and total posts storer
treszoks Offline
Member

Registered: 04/29/01
Posts: 58
Okay, just added one more bugfix to the above code for "ubb_library2.pl".

I'm pretty sure everything is okay now, but if you wait one more night I'll know for sure! smile

Top
#43522 - 07/31/01 03:20 AM Re: Daily active topics and total posts storer
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
I'll Wait then, Don't want to run into problems. wink

Top
#43523 - 07/31/01 09:28 AM Re: Daily active topics and total posts storer
treszoks Offline
Member

Registered: 04/29/01
Posts: 58
Okay, everything seems fine and in working order.

Top
#43524 - 08/01/01 02:59 AM Re: Daily active topics and total posts storer
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
Thats great, I'll install it when I get some time. wink

Top
#43525 - 08/01/01 11:03 AM Re: Daily active topics and total posts storer
NBAustin Offline
Member

Registered: 01/12/00
Posts: 565
I'd like to point something out.

In the dailies.txt, you say just to change the ext to .cgi and upload.

You refer to the file in the code as:

mydailyindex.cgi

I suggest you make the typographical changes in your instructions or code.

Top
#43526 - 08/01/01 04:37 PM Re: Daily active topics and total posts storer
NBAustin Offline
Member

Registered: 01/12/00
Posts: 565
I have found out that UBB 5.39 lacks this in ubb_library2.pl:

unlink ("$NonCGIPath/$dfile");

What do I need to change in 5.39?

Top
#43527 - 08/01/01 06:38 PM Re: Daily active topics and total posts storer
treszoks Offline
Member

Registered: 04/29/01
Posts: 58
NBAustin,

Those are two separate files:) The dailies.txt file needs to be changed to .cgi so it can be run from the web. The mydailyindex.cgi file is where the info is stored. Good question on 5.39. That's a fairly old version;) Is there a subroutine called "cleandailies" in ubb_library2.pl? If so, can you post it?

Top


Who's Online
1 registered (Deb), 28 Guests and 7 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
How to hide sub forums from summary page
by Ruben Rocha
Today at 02:58 PM
Spell Check [beta]
by Bill B
Yesterday at 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
Yesterday at 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
Yesterday at 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
Yesterday at 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
David DelMonte, nick1, Begbie, cenk, MATTO
13363 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks