Counter user's chan with php script

These are old archives. They are kept for historic purposes only.
Post Reply
TuSaiChi
Posts: 13
Joined: Sun Feb 03, 2013 12:31 pm

Counter user's chan with php script

Post by TuSaiChi » Wed Feb 20, 2013 2:48 pm

How do I have a php script type counter, which displays the page only the number of connected users in the channel.
With a string like this:
http://www.mywebsite.com/counter.php?chan=mychan

Stealth
Head of Support
Posts: 2086
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Re: Counter user's chan with php script

Post by Stealth » Wed Feb 20, 2013 5:33 pm

The best way to do this would be to have a stats service put user counts and information in a database that can be accessed using PHP by simply pulling the information from the common database (most likely some form of SQL or flatfile database).

Syzop
UnrealIRCd head coder
Posts: 1875
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Re: Counter user's chan with php script

Post by Syzop » Wed Feb 20, 2013 7:54 pm

Indeed. First, install and run Denora stats. Second, if you have knowledge of PHP+SQL or know someone who does (or any other such language) then you can write your own script to fetch the user count of a channel and do all kinds of other things with it.
Also check out the MagIRC Web Frontend on that site, it's quite nice :). You could also consider using just that (with Denora stats), and not code anything yourself.

TuSaiChi
Posts: 13
Joined: Sun Feb 03, 2013 12:31 pm

Re: Counter user's chan with php script

Post by TuSaiChi » Sat Mar 02, 2013 5:03 pm

Thank you, we use Denora stats statistics server. But also ircstats.
Thank you for your comprehensive answer, but I know of no one who can create the script in php. You could tell someone, or some site?

katsklaw
Official supporter
Posts: 1114
Joined: Sun Apr 18, 2004 5:06 pm

Re: Counter user's chan with php script

Post by katsklaw » Sun Mar 03, 2013 11:08 am

TuSaiChi wrote:Thank you, we use Denora stats statistics server. But also ircstats.
Thank you for your comprehensive answer, but I know of no one who can create the script in php. You could tell someone, or some site?
Simply googling "php irc channel stats" (without the quotes) will answer that question for you.

Post Reply