The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Fully integrated IRC Stats Details »» | |||||||||||||||||||||||||
Hi,
this is my second hack and I hope you like it. Background: I am running a quakenet IRC Channel and I've seen some hacks here to check who is actually on the chan. This is nice but not enough. I wanted to have stats for my board which are 1st for free and 2nd fully integrated And here we go: INSTALL: Time to install: depending on what you're using for a method 10-120 minutes Difficulty: middle Database changes: none File changes: none Templates: 1 added Screenshots: attached History: 1.0 Integrated the stats 1.1 Added show stats on who is online page 1.2 Added multilanguage support 1.3 Added info on different ways to get the stats First of all you need to download the free stats generator PISG If you're running eggdrop or whatever to get a logfile from a chan configure pisg to create stats files it. See the pisg documentation for that. I have no eggdrop or something installed but I have a pc running at home 24/7 so I used this. I installed mirc, connected to the chan and enable log file creation in mirc. Then I used pisg to analyze the logfile and write two different files. One in german and one in english. I use the ftp command and the sheduled task option of windows to transfer those two files every night to my webserver. IMPORTANT: Use as output file the following: ircstats.pisg (for english) and ircstats_languadeid (e.g. ircstats_de) for other languages you want to use. Add the following Template to your style: IRCStats with the following content (case sesitive!) HTML Code:
$stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> <title>$vboptions[bbtitle]</title> $headinclude </head> <body> $header $navbar <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="alt1"> <table cellSpacing="0" cellPadding="0" width="100%" border="0" id="table1"> <tr> <td class="alt2" align="center"><b><font size="3" face="Verdana">IRC Stats</font></b> </td></tr> <tr> <td> <if condition="$bbuserinfo[languageid]== '3' OR $bbuserinfo[languageid]== '2'">$ircstatsdata_de <else />$ircstatsdata </if> </td> </tr> </table> </td> </tr> </table> $footer </body> </html> PHP Code:
As an example I added a second language above (ircstats_de.pisg). Uncomment the line if you need a second language and see the pisg documentation which languages are available. In /includes/functions_online.php find: PHP Code:
PHP Code:
Find: PHP Code:
PHP Code:
Search for the image names for example red-h.png and change it everywhere to images/misc/red-h.png. Do so for all images. The last thing you have to do is to change the default.css of pisg. Kill all tags that are use by vb and change the others like you want. I've done this also with a simple search and replace method). Place a link to ircstats.php whereever you want. In the navbar or the footer template for example. Thats it! Show Your Support
|
Comments |
#2
|
||||
|
||||
I take this thread to paste updates on this later on
LiveDemo: http://www.clanforums.com/forum/cfn_ircstats.php If you like this hack then please click on INSTALL Update: Added new attachment of FORUMHOME Template integration |
#3
|
||||
|
||||
How would we implement that with an embedded IRC chat such as jpilot?
|
#4
|
||||
|
||||
Quote:
|
#5
|
||||
|
||||
I'm sure it can. My point is some of us might not know where to get the log files or what to do with them in the case of embedded chats.
But this concept is very good and might actually liven up dead chats, though I'm guessing in the case of embedded chats, a cron job via the admin cp might be a good call? |
#6
|
||||
|
||||
The only thing is a log file that pisg can convert.
Small hint: If you use Mirc on a windows machine to create the logfiles and now also want to run pisg on the same machine but pisg is written in perl then download and install Active Perl On my installation all the stuff is done on a windows 2003 server and only the .pisg files are transfered to the webserver one a day. |
#7
|
||||
|
||||
Hmm, well I'm using pjirc and I'm not sure that creates logfiles. I'll have a look at the pisg info.
|
#8
|
||||
|
||||
The extension does not matter also. Important is that pisg knows what to do with the file. Check the pisg documentation.
Some of the languages supported are: EN | DE | DK | FR | ES | PL| PT | NO | NL | SE | EE | IT | HU | SI | FI Supported logfile formats: * X-Chat * mIRC * mIRC6 * Eggdrops * bxlog for +++++X * irssi * virc98 * dancer * Trillian * Grufti * mbot * winbot * zcbot * muh * energymech * ircII * psybnc * ircle * infobot * axur * bobot++ * oer * perlbot * Vision * pircbot * KVIrc * HydraIRC * sirc * moobot * supybot * blootbot * dircproxy |
#9
|
||||
|
||||
I intend to install this... if I can ever figure out how to have an embedded IRC chat on the server that writes log files to the server. That's assuming PISC can be used with on-server log files.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|