![]() |
Irc post Notifier -no eggdrop
this is a hack in progress but i had a few people who saw us testing and after alot of begging i finally caved, (I know I am weak)
So I decided to release the current version, expect a major update on it tommorrow with a few more options. What this hack does is allow you to specify either which forum or all forums you wish to monitor and either monitor new threads or new replies, and send a notice to an irc channel when a new thread or reply is posted. Without requiring an eggdrop bot, this is 100% php, and works on servers running php in safe mode. http://www.gamer-networks.com/images/ircpost.jpg Its fully configurable, a fair amount of options in the admin panel for this, more to come tommorrow http://www.gamer-networks.com/images/ircadmin.jpg i am attaching the installer on this post and the other two REQUIRED files in the next two posts. just upload the installer to your admin directory and run install_ircaddon.php and follow the prompts and make the changes to newreply.php, newthread.php, and admin/index.php easy enough |
as promised the irc.php place it in your forums directory
|
and finally the ircadmin.php place it into your forums/admin/ directory
|
very nice hack thanks
|
Can the bot be set up to stay in the channel instead of jumping in an out every time a message is posted?
|
What's to stop this being used to spam channels that don't belong to you?
|
not in this release, in the next it will be an option, it just uses a % more bandwidth to stay in the channel for long periods of time, and we are still working a +d mode for it so it will go deaf in channels so it will ignore all messages in there otherwise it would turn into a bandwidth hog
|
Quote:
|
[01:40] sweet :) installing now, and lets hope this works!
|
Would you put all the files in a zip.
|
all zipped here
|
sweet hack, will install when the +d mode is added
|
I tried to install the hack, but as soon as I made a new thread, the newthread.php page would hang without redirecting and would sit there tying to load a page.
|
it works like a charm, thx a lot.
[high]* kreftt is eagerly anticipating the version with the resident bot :) [/high] btw: does that: Code:
Single Forum ID to show new posting from: id like to have "a few"... tia kreftt |
Damn... Is this real?! I gotta install this ASAP!!! Very nice feature! :D
|
Have anyone tested it with Win2K??? I tried to install it locally, and when I press NEXT in the installation screen, it points to /php/php.exe and says: No input file specified... I will try to re download the file.. I'm using the zipped file...
|
However, in linux it works... I'm installing it right now.
|
Is there any special requirements? It doesn't work on Linux/PHP 4.06.
|
Nice hack idea. I run an IRC network as well and I was eventually going to code one myself using socket connections or possibly via a C bot that reads from a database and outputs the content into a channel
This hack doesn't work on my server however for some reason. I am running FreeBSD 4.5 with PHP 4.1.2. It stalls after submitting the new thread / reply. |
wow just what ive been waiting 4 thanks man gr8 hack
|
i get this error when making a new post
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of fsockopen(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/sites/site140/web/newthread.php on line 268 Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of fsockopen(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/sites/site140/web/newthread.php on line 268 my server ------------ Server Type Linux / PHP v4.1.2 MySQL v3.23.37 |
aaaaaaaaaah! i get a timeout (110 seconds) error
|
Maybe some PHP/Apache/Linux versions doesn't support this hack... It doesn't work on my server... I don't have timeouts or hang ups, but when I post a post/thread the bot doesn't show up on my channel.
|
Getting this to work with an eggdrop would be simple enough; and the eggdrop would be able to cope with the bandwidth hog.
Unfortunately I know that the fsock functions have been killing my host otherwise I would give it a go. vB forums -> eggdrop -> irc you just write a TCL script on the eggdrop to listen on a certain port, the forums connect to the eggdrop and send the line of information and the eggdrop sends the information to a channel. Code:
vbulletin.tcl |
its one or all right now, the next release will have upto 5 forums you can monitor and point to different or the same channels to notify
|
Quote:
|
Quote:
|
I don't have timeouts or hang ups, but when I post a post/thread the bot doesn't show up on my channel how do i fix that?
|
theres seems to major differences between ircd versions and how the process the connections and channel joins, this version works 100% with an unreal ircd server, we are working on a bug fix for few of the other versions of ircd.
the reason you get a delay or lag when posting is the script is attempted to notify it to irc at post time, the next release will no longer have that delay, the irc.php will run silently in the background. another release change will be the bot staying in the channel where possible, but i think for a bot staying in the channel it would be wiser to use an eggdrop and allow it to pull the last posts from the database instead but we will see what we can do. if you need a test bed you can connect to irc.gamerscafe.net or irc.d2network.com and test on a channel in there, these are known to work. if your not running unreal ircd, please let me know what ircd version you are running, and if possible an address so we can test there as well. d |
Your web host may not allow you to connect to an IRC server. That is the problem I have when I run the script. I can't connect to any irc server I put in. If you run irc.php in your browser, you'll probably get a connection refused error.
|
my irc is running UltimateIRCd(Tsunami)-3.0(00).a22
|
This is what one of my servers on the IRC Network is running:
[&] Version: Unreal3.2-Selene[beta9]. Xana.MediaJoint.net CFhiIX [Linux server1.xarcos.com 2.4.9-21.0RSenterprise #1 SMP Fri Jan 25 04:25:45 CST 2002 i686 unknown=2303] I don't think it's the ircd that's the problem. I tried connecting to yours (irc.d2network.com) yesterday and it was still timing out. If any of you want to try this out on a network that uses Unreal, try my network: irc.mediajoint.net. You can find me in #gfchat if I'm around under the name "Mercarios". One of my programmers is an IRC geek along with a PHP programmer so I'm going to have him look into it and if he finds a fix for all servers I'll post the fix here. |
I'll wait untill the next release :)
btw, I'll be running it at one of the irc.sorcery.net servers (probable rivendell 'cause I know the ircop of that server very well ;)). They're running a home-made ircd (sor1.3.3.hfix2) I'll let you know when it works (or doesn't work ;)). (The next release that is, I'm not going to install this one since I don't have the time to install anything today/tomorrow :)). |
I neeeeeeeeeeeeeeeeeeeeeed this hack :)
So my server is under WindowsXP 'plz don't laugh at me) under EasyPHP (okay here you can laugh :p) This is only a test board the final one will be hosted on a linux dedicated server. But for now i configured in the admin cp all te parameters but nothing appens So i tryed .../irc.php ..... no timeout error messages, nothing...just ... nothing... :( Need help I'VE GOT to have this hack working :) And thank for your job guys !! |
i would put money that easyphp doesnt have all the functions like the socket calls the php onlinux has so thats probably not gonna be fixable until you are running on a linux server
|
I made a fix to my solution, maybe it will help some of you. I can't get it to automatically send a message to a channel yet when someone posts or replies, but I do have a pretty nice setup. When someone posts or replies, it stores it in a database as well as a text file. The textfile is then FTPed to one of my UNIX shells. The bot on that unix shell is running a TCL script that reads in the file.
So, if a user types: !top5posters, he gets a list of the top 5 posters !last5, he gets a list of the last 5 posts !lastpost, he gets the last post made to the board as well as what it said. !onlineusers, he gets a list of users currently on the board. |
I installed nothing appears to happen in IRC channal, if I run the irc.php from a browser I get:
Connection refused (111) Any ideas on cause? ta |
Nice hack, I've installing now, in newthread.php there are 2 instances of this:
Quote:
Secondly, I looked into doing this with an eggdrop, however there is limited support for mySQL and files seem hard to come by. The mySQL tcl requires quite a few libs to be installed first, as well - I couldn't get the eggie to run with it in the config. :( |
This eggdrop/tcl install works really well, very easy to install too:
http://www.bluetitan.com/~tdarugar/tcl-sql/ makes sql available to tcl8.0, I don't have a script to test it with though! |
Quote:
BTW: I'm using Dalnet. (irc.dal.net) |
All times are GMT. The time now is 06:25 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|