vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=244563

vBShout Chat Stats
by Trek
14 Jun 2010 04:05

1 Attachment(s)
vBShout Chat Stats v1.1

Requirements
--------------

vBShout v5.2.3 (LITE or PRO) - www.dragonbyte-tech.com

mIRCStats - www.mircstats.net

What's it do?
-------------
This mod creates a log file based off of your vbShout database that is consumable by the mIRCStats program. I can't take credit for the cool output that program does. =)

This runs on a vB cron, defaulted to run every hour.

Support
--------
Support is provided for this mod only, not for mIRCStats. If you'd like support for that, please use their support forums as they can much better support you than I ever could. =)

Live Demo Here

INSTALLATION/UPGRADE INSTRUCTIONS

Installation
Copy .php file into your forum root folder.
Import product
Configure in vB Settings->Shout Stat Settings
You may need to CHMOD the folder you write the log to. In short, that folder needs to be writable. CHMOD 755 or & 775 should work.

Upgrade
Overwrite old .php file with the new one.
Reimport product, selecting overwrite option.
Configure in vB Settings->Shout Stat Settings

UPDATES


v1.1

-Fixed: Now supports shoutbox instances properly.
-Added: Support for including only specific chatrooms (or all of them)
-Added: Support for IRC style /me commands

Screenshots
by Trek
14 Jun 2010 04:09

http://www.darkhandofvalor.com/image...tstats_ss1.png

http://www.darkhandofvalor.com/image...tstats_ss2.png

http://www.darkhandofvalor.com/image...tstats_ss3.png

http://www.darkhandofvalor.com/image...tstats_ss4.png

ssslippy 14 Jun 2010 20:24

This is awesome!

Bouncer222 14 Jun 2010 21:57

I gotta say this is amazing, but the different colors in one bar make it really confusing. Still reading how this works exactly..

Trek 14 Jun 2010 23:58

Quote:

Originally Posted by Bouncer222 (Post 2053670)
I gotta say this is amazing, but the different colors in one bar make it really confusing. Still reading how this works exactly..

The different colors in the bars represent different timeframes of a day. Also, all colors are fully configurable from the mIRCStats program. =)

In short, what this mod does is takes the data from vBShout and spits out a new file in the format that mIRCStats (where the real magic happens) can read. That then spits out a set of HTML files and CSS that produce the data such as in the screenshots.

Bouncer222 15 Jun 2010 01:58

So does this track ONLY those registered on your site? Or anyone in irc?
If not, could it be made to track only those registered on the site? Or better yet only those in specific usergroups?

Thanks.

Trek 15 Jun 2010 02:58

Quote:

Originally Posted by Bouncer222 (Post 2053759)
So does this track ONLY those registered on your site? Or anyone in irc?
If not, could it be made to track only those registered on the site? Or better yet only those in specific usergroups?

Thanks.

Normally, mIRCStats is used only for IRC.

What I've done is adapt it to use vBShout's logs and then let it do it's stuff. So it's any vBShout instance and chatroom that it'll use. So anything said in that chatroom is included in the output file I generate.

I'll see about limiting it to specific usergroups, I know it can be done. I just need to work out the SQL query to do it. =) Normally though, these stats are much more fun and interesting the more people involved. But I suppose if whatever usergroup you'd want to use has enough active chatters in it, it'll probably work out well enough for you.

Bouncer222 15 Jun 2010 17:10

Thanks for the fast reply.
I am still in the process of reading about installing and configuring mircstats.
The same question goes for regular IRC. If memory serves me right, there are a couple irc mods on vbulletin.org that when you connect to irc, it uses your forum name, OR it only lets registered users on the site connect to it.

But then again, anyone on the internet can connect to an irc from another site (I don't know if irc's can use passwords, but I don't want to set one anyway).

So the question is, can it be made to track those registered on our site only as well for a regular IRC?

The reason being so, we have a bot that we're going to install on our irc, and it's going to spit out chat from all our gaming servers into the irc, that's going to be a lot of useless information that it will record in the mircstats system.

Trek 15 Jun 2010 22:31

Quote:

Originally Posted by Bouncer222 (Post 2054062)
Thanks for the fast reply.
I am still in the process of reading about installing and configuring mircstats.
The same question goes for regular IRC. If memory serves me right, there are a couple irc mods on vbulletin.org that when you connect to irc, it uses your forum name, OR it only lets registered users on the site connect to it.

But then again, anyone on the internet can connect to an irc from another site (I don't know if irc's can use passwords, but I don't want to set one anyway).

So the question is, can it be made to track those registered on our site only as well for a regular IRC?

The reason being so, we have a bot that we're going to install on our irc, and it's going to spit out chat from all our gaming servers into the irc, that's going to be a lot of useless information that it will record in the mircstats system.

BTW, I'd check out mibbit if you're looking for vB->IRC integration. I used that on my website and it worked very well. Just not enough interest from my members in IRC so I removed it.

Most of your questions really revolve around mIRCStats and what it can do for you. I'll try and answer as best I can.

You'd need a way to signify someone as a member of your website or not. Since people can use any name they want in IRC, or change their name there, that's not really going to be easy. About all I can think of right now is making everyone that connects through the website auto voiced in IRC, then only include voiced people in your stats or something.

As for the bot spitting out all of the data, you can exclude specific nicks from being included in the stats through mIRCStats as well, so that won't be a problem for you at all (I used to have a bot doing the same sort of things you're talking about years ago).

Zombo 24 Jun 2010 18:41

you should mention you need to chmod the folder with the log

Trek 24 Jun 2010 18:49

Quote:

Originally Posted by Zombo (Post 2058907)
you should mention you need to chmod the folder with the log

I guess that depends on where you dump it, I used a tmp folder. But I'll make a note of it for those that might put it somewhere more secure.

Zombo 24 Jun 2010 19:20

also i have a problem with the main chatroom which is id 0.

if you decide to import id 0 chatroom it doesnt do anything

edit: NM, my instance id was 1, not 0 for some reason...

Brew 24 Aug 2010 21:20

I'm totally unfamiliar with Mirc and Mircstats.

I know you said you can't support MircStats, but can you please instruct on how to set it up to use with the shoutbox?

I'm completely left out to dry trying to figure this out.

Thanks for any and all help

B


All times are GMT. The time now is 12:05.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.