The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Track IRC users using PHP... Details »» | |||||||||||||||||||||||||
Well, this really isn't a VB hack, but this is the only place I can find to post it...
To use this hack, you must have root access to a linux box. I can not say that it will work on every IRC server, as I have IRCu/srvx. If you have a different setup, and get this to work, please post here so others know. Setting it up is very simple, just follow what is below: **Use at your own risk** Here we go.. login to ssh... Code:
$ su - $ wget http://www.staticserver.com/irc/IRCuStat-2.0f.tgz $ tar -zxf IRCuStat-2.0f.tgz $ rm -f IRCuStat-2.0f.tgz $ cd IRCuStat-2.0f $ ./irc_install Once you are done setting it up... $ cd .. $ rm -rf IRCuStat-2.0f Thats it! Just follow the bit of info it gives after install, and your all set! ircbot -i installs the MySQL table ircbot -j toggles the cronjob If you want to set the cron to run differently than the default (5 minutes), then just do Code:
$ ircbot -j 10 Hope this helps some people out. I will support this, please post what you wish to be added... I will not go into detail about making a template for it. If you don't know how to pull the information from the database, then please do not use this script. The table is named `irc`. Have fun. EDIT ---------------- There is now a VB hack to go along with this. Scroll down a bit to see it. Show Your Support
|
Comments |
#2
|
|||
|
|||
*cough* http://forum.rackshack.net/showthrea...threadid=20222 *cough*
Give credit to the auther next time you copy a post. Also since this isn't a vbulletin hack this DOES NOT belong here. Maybe if you added a template eval for including ircstats.php (im pretty sure it can be done even if your on another shell, you just need to use the full server path. Make sure safemode php is off) and slaped it on its own vb page. they would let this script stay. And you dont need root access to for this script. You only need to create a shell that can make its own cron jobs. |
#3
|
|||
|
|||
*caugh* thats me *caugh*
You might want to look at the name of the poster. Thanks. I said you need root access because it needs to be placed in /usr/local. Unless you want other users to have access to run the bot whenever they want to. Anyway, I posted it here because I remember seeing a CGI based bot that was also posted here. Where were you then to bash on the author of that? Or am I your new scapegoat? But hey, thanks for sharing your thoughts. Should I delete it now, or wait a day? |
#4
|
|||
|
|||
safe mode off? please.
Thats like giving someone the keys to your car, and walking away. But this is comming from a person who has accused me of copying my own post, and stealing my own work. |
#5
|
|||
|
|||
Sorry. I was in a rush and didn't see the name :P
Why exacly does this need to be in /usr/local/ And the CGI bot got deleted :P You can also on a RS turn safemode off for a single site. |
#6
|
||||
|
||||
safemode? Should it be on or off? What are the risks? Isn't it only for people that execute stuff via ssh, etc?
|
#7
|
|||
|
|||
yes, you can turn safemode off for a site, and it should only be done that way.
The main safemode should always remain on. If it were off, and you have hosted some sites, then this could happen. Say you have foo.com and bar.com hosted. foo's siteid is 1 and bar's siteid is 2. If safemode was off for the whole server, and foo.com had vb installed, or anyother script, bar.com could issue this in a script "include("/home/virtual/site1/fst/var/www/html/forums/admin/config.php");" which is actually including foo.com's vb config file. They would actually be able to include files from anywhere on the server. So yea, you can turn it off for only one site, and thats how i do it. As I stated, if you have more users in ssh, besides root, and this bot were poorly placed, they could easily issue "./ircbot (-s -d -j -v -c -i -r)". So I guess it doesn't have to be in /usr/local, but it is the safest place for it to go. |
#8
|
|||
|
|||
This is a good hack.
You can make a template eval for this and put it in the forumn home pretty easly i think. |
#9
|
||||
|
||||
ToXiC,
Nice hack. You are currently showing up as unlicensed. To be able to download hacks and/or receive support here at vBulletin.org, we ask you to please click here (vB-germany users click here) and enter your email address, to show us that you are licensed. You will need to use your customer number and password (which will be in the email you got when you paid for your license) to access that page. Please note that your email is case sensitive. Thank you. |
#10
|
||||
|
||||
I'm going to attach that file ToXiC, I hope you don't mind... just in case your server is down, or ten months down the line you decide to delete it off your server and someone wants it etc...
(i know i hate it when download links are broken...) Note: remove .rar from the filename, it's really a .tar, vBulletin won't let me uploads tars... BTW ToXiC, good work |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|