Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jan 2000
Posts: 114
Member
Member
Offline
Joined: Jan 2000
Posts: 114
This isn't too complex a script, nor does it add any real functionality, but the data it produces is still interesting from a webmaster's point of view. This script basically goes through your member database, counts how many people joined each day, and gives you break downs on the average new members per day for each month and your UBB's future membership numbers based on your current rate of growth. I'm no statistician, so the future estimates are more or less educated guesses, still, they're worth checking out. Anyway, here's the script:

http://www.magictraders.com/ubb/reginfo.txt

Here's the output that my site generated:

http://www.magictraders.com/ubb/regdata.txt

Just download the script, rename it to reginfo.pl or something appropriate, upload it to your UBB CGI directory, set permissions, and run it via telnet or the web (telnet is highly recommended for larger sites). If you run it via telnet, it will print a "." for each member while it's processing to indicate that it hasn't hung the server. Once you get the "Done." message, you'll find a file named regdata.txt in your UBB web directory that will have all the info. You really only need to run this once every week or so for the data to change much. If someone want to make a more appealing HTML layout for the data with bar graphs and whatnot, you're more than welcome to, I'm just more of a raw data person. If anyone has any interesting stat formulas they'd like to see included, let me know.

------------------
Leshrac
leshrac@magictraders.com
Founder, Owner - Magic Online Trading League (MOTL)
http://www.magictraders.com
MOTL Bulletin Board

Sponsored Links
Joined: Feb 1999
Posts: 1,379
cal Offline
Programmer
Programmer
Offline
Joined: Feb 1999
Posts: 1,379
I'm very interested in making a graphical front end to this (graphs 'n' stuff). I'll post again tomorrow when I'm back in the office.

Just a thought [Linked Image]

Joined: Feb 2000
Posts: 25
Member
Member
Offline
Joined: Feb 2000
Posts: 25
This is a wonderfully useful script, thanks for posting it. I am also waiting to see Cal's graphical front-end, even though I am a pure "numbers" guy myself, pictures can speak a thousand words [Linked Image]

-Chris

------------------
Chris Schreiber
[email protected]
Fast 4GL Systems, Inc.
http://www.fast4gl.com/
UBB: http://www.progresstalk.com/

Joined: Mar 2001
Posts: 69
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 69
Hm.. maybe enhance this script and intigrate it with the ubb? [Linked Image]

Joined: Feb 2000
Posts: 25
Member
Member
Offline
Joined: Feb 2000
Posts: 25
Me2Be-

Yes it looks like it just writes to data file whenever you run the script on demand. Of course you could set up a daily/weekly cron job to run it automatically, or just insert a link to the script from the control panel links page.

-Chris

------------------
Chris Schreiber
[email protected]
Fast 4GL Systems, Inc.
http://www.fast4gl.com/
UBB: http://www.progresstalk.com/

Sponsored Links
Joined: Jun 2000
Posts: 263
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 263
Nice hack!
I wonder if we install it ion this board, what will the prediction for how many will join be? [Linked Image]

Joined: Feb 1999
Posts: 1,379
cal Offline
Programmer
Programmer
Offline
Joined: Feb 1999
Posts: 1,379
I'm back [-crowd cheers-]. I will start work tomorrow morning (GMT).

Just a thought [Linked Image]

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Excellent hack...it will be useful for me...Won't have to check my board at the beginning and end of the day to check the number of registered.

------------------
I wish I were a Canuck
All they have to do is drink beer, play hockey, and say "Eh"

* No offense meant to any Canadians

Joined: Feb 2000
Posts: 116
Member
Member
Offline
Joined: Feb 2000
Posts: 116
Can we see an example?

------------------
Please Join My UBB
We are now accepting Moderators!!

Joined: Feb 2000
Posts: 116
Member
Member
Offline
Joined: Feb 2000
Posts: 116
I'm so stupid I thought it was a CGI script, great hack Leshrac!!! It's Very Useful

------------------
Please Join My UBB
We are now accepting Moderators!!

Sponsored Links
Joined: Feb 1999
Posts: 1,379
cal Offline
Programmer
Programmer
Offline
Joined: Feb 1999
Posts: 1,379
Okay - here's my first attempt at it. I have modified Leshrac's script a little in the way that it save data. My new version is available here: http://ubbcodehacking.com/ubb/uploads/reginfo2.txt

The main part of this hack is the "dispinfo.cgi" file which reads and formats the data from the info files. You can get this here: http://ubbcodehacking.com/ubb/uploads/dispinfo.txt

Finally, you need these two little pictures in your non cgi folder (you'll see why): http://ubbcodehacking.com/ubb/uploads/bar.gif http://ubbcodehacking.com/ubb/uploads/bar2.gif

Feedback would be appriciated, as would a link to see it working (only used it on my offline board).

Just a thought [Linked Image]

Joined: Feb 2000
Posts: 25
Member
Member
Offline
Joined: Feb 2000
Posts: 25
Cal-

Works wonderfully! And it's so pretty [Linked Image]

Here's a link for everyone to see it in action:
http://www.fast4gl.com/ubbcgi/dispinfo.cgi

-Chris


------------------
Chris Schreiber
[email protected]
Fast 4GL Systems, Inc.
UBB: http://www.progresstalk.com/

Joined: Feb 1999
Posts: 1,379
cal Offline
Programmer
Programmer
Offline
Joined: Feb 1999
Posts: 1,379
!!!NOTICE!!!

The first version wont work for anyone with older boards (age, not version). This version will: http://ubbcodehacking.com/ubb/uploads/dispinfo2.txt

Thanks to Me2Be for finding that one!

Just a thought [Linked Image]

Joined: Feb 2000
Posts: 7
Junior Member
Junior Member
Offline
Joined: Feb 2000
Posts: 7
Thanks for version 2 Cal.... I killed v1 after downloading 4MB or so.....

Came back here and saw the new one....

Last edited by Gizmo; 08/17/2016 2:05 PM.
Joined: Feb 1999
Posts: 1,379
cal Offline
Programmer
Programmer
Offline
Joined: Feb 1999
Posts: 1,379
Due to non exhastive testing (hehe). Anyway - what do people think of it?

Just a thought [Linked Image]

Joined: Feb 1999
Posts: 1,379
cal Offline
Programmer
Programmer
Offline
Joined: Feb 1999
Posts: 1,379
Opps - another bug. I left some debug info in the file.

here's the latest version : http://ubbcodehacking.com/ubb/uploads/dispinfo3.txt

To patch it your self, just delete the code:
Code
code:

Also, to change to US date format replace
Code
code:
with
Code
code:

That's all for now.

Just a thought [Linked Image]

Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
Once again Cal, good job.
Good job to you to Leshrac.
Cal or Leshrac, how do i intigrate this into the UBB itself?

Joined: Feb 2000
Posts: 25
Member
Member
Offline
Joined: Feb 2000
Posts: 25
MasterMind-

I wouldn't make something like this public, just edit your cp.html Control Panel and add in the links for the scripts to run them from there.

-Chris

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Excellent work you two!! This is how hacks should be done...a lotta work and imput from the author and others.

------------------
I wish I were a Canuck
All they have to do is drink beer, play hockey, and say "Eh"

* No offense meant to any Canadians

Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
Chris, after i posted that message, i thought of that. That is exactly what i will do. Thanx. [Linked Image]

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Plain vanilla version works well.. thank you. http://www.stand318.com/ubb/regdata.txt

Graphic version (using v3) only gives me the title and my board's background graphic: http://www.stand318.com/ubbcgi/dispinfo3.cgi

If anyone wants to look and give me a hint for the problem. I am on a NT server/ IIS 4 with perl 5.005

------------------
Allen

- http://www.stand318.com


- Allen wavey
- What Drives You?
Joined: Feb 1999
Posts: 1,379
cal Offline
Programmer
Programmer
Offline
Joined: Feb 1999
Posts: 1,379
AllenAyres - You need to run my version of the data collection script first (reginfo2.cgi).

Chris - Why not add the data building link to the CP and the display link to Ultimate.cgi - users might want to see this sort of data.

Just a thought [Linked Image]

Joined: Feb 2000
Posts: 25
Member
Member
Offline
Joined: Feb 2000
Posts: 25
Quote
quote:
Yes I guess letting the users see the display part wouldn't be a terrible idea. I just display the total number of registered users, which I guess I think is enough. The display script is also a bit resource intensive as well, so I wouldn't want everyone running that on my board.

-Chris



------------------
Chris Schreiber
[email protected]
Fast 4GL Systems, Inc.
UBB: http://www.progresstalk.com/

Joined: Feb 1999
Posts: 1,379
cal Offline
Programmer
Programmer
Offline
Joined: Feb 1999
Posts: 1,379
I have a plan - I'll change my script so that it integrates with Leshrac's, making a html file that can be accessed statically. God I'm stupid sometimes.

Just a thought [Linked Image]

Joined: Feb 1999
Posts: 1,379
cal Offline
Programmer
Programmer
Offline
Joined: Feb 1999
Posts: 1,379
Here we go: Just run it and it'll generate an HTML file. Put a link to this somewhere in Ultimate.cgi to allow your members to see the forum stats.

Reg Info X : http://ubbcodehacking.com/ubb/uploads/reginfox.txt

Just a thought [Linked Image]

Joined: Feb 2000
Posts: 25
Member
Member
Offline
Joined: Feb 2000
Posts: 25
Great work Cal! Now I don't have a problem posting a link to the html stats from my board.... I am sure many people will like offering this to their users.

Thanks,
-Chris

------------------
Chris Schreiber
[email protected]
Fast 4GL Systems, Inc.
UBB: http://www.progresstalk.com/

Joined: Feb 2000
Posts: 25
Member
Member
Offline
Joined: Feb 2000
Posts: 25
Cal-

I think I spotted a minor typo in the very last line of reginfox: It seems the link is incorrect.

-Chris

------------------
Chris Schreiber
[email protected]
Fast 4GL Systems, Inc.
UBB: http://www.progresstalk.com/

Joined: Feb 1999
Posts: 1,379
cal Offline
Programmer
Programmer
Offline
Joined: Feb 1999
Posts: 1,379
One day i'll get it right. Here's the latest version, all zippped up with instructions: http://ubbcodehacking.com/ubb/uploads/Stats.zip

Just a thought [Linked Image]

Joined: Jan 2000
Posts: 26
Member
Member
Offline
Joined: Jan 2000
Posts: 26
I have encountered a problem with the latest version of the script (the all in one zipped copy). Basically it seems to be doing most things but appears that the script doesn't finish running for some reason because although the graphics work only half the HTML shows up on the finished page (it doesn't get as far as processing the footer etc.
Is anybody else having this problem?

Joined: Feb 1999
Posts: 1,379
cal Offline
Programmer
Programmer
Offline
Joined: Feb 1999
Posts: 1,379
can we have a URL? This hack is still in beta (i think) so don't expect perfect results (hehe).

Just a thought [Linked Image]

Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
I am having a worse problem.
The instructions said to CHMOD it to 777, how can you run a script if it is CHMOD'ed to 777?
I figured it was 755. lol.

Joined: Feb 1999
Posts: 1,379
cal Offline
Programmer
Programmer
Offline
Joined: Feb 1999
Posts: 1,379
Guess whether I use NT (where we don't use CHMOD). Sorry 'bout that.

Just a thought [Linked Image]

Joined: Mar 2000
Posts: 20
Member
Member
Offline
Joined: Mar 2000
Posts: 20
Worked great out of the box for version 5.38c.

Thanks

Joined: Feb 1999
Posts: 1,379
cal Offline
Programmer
Programmer
Offline
Joined: Feb 1999
Posts: 1,379
Some good news at last (hehe)

Just a thought [Linked Image]

Joined: Feb 1999
Posts: 1,379
cal Offline
Programmer
Programmer
Offline
Joined: Feb 1999
Posts: 1,379
This hack has been added to the database. Get the latest version (with the right CHMOD instructions!) there.

Just a thought [Linked Image]

Joined: Jan 2000
Posts: 170
Member
Member
Offline
Joined: Jan 2000
Posts: 170
I love this hack, thank you guys. [Linked Image]


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
isaac
isaac
California
Posts: 1,157
Joined: July 2001
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
WebGuy 2
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)