Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Irc post Notifier -With eggdrop Details »
Irc post Notifier -With eggdrop
Mod Version: 1.00, by dong (Member) dong is offline
Developer Last Online: Jul 2005 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 2.2.x Rating: (0 vote - 0 average) Installs: 38
Released: 17 Jun 2002 Last Update: Never Downloads: 80
Not Supported Is in Beta Stage  

Irc thread Notifier -With eggdrop [VB 2.2.x > 2.3.x]
http://www.vbulletin.org/forum/showt...threadid=39974
#####################################################################
for installation on VB 3.x.x
the only things that are different are the placement of the code-adds
to /newthread.php and admin/index.php. the code-add of /newthread.php
itself stays the same. admin/ircaddon.php, /irc.php and the required
sql query also stays the same.
since i dont have vb3 i cant check. if anyone tell me where the
code should be in vb3, i will add it to this install text

--
1.0
this is an modification of dymo's Irc post Notifier without eggdrop,
dymo should get all credit, cos i didn't do that much modifications
to his hack. Also IRiDiuM deserves some credit for his tcl, thx dude
http://www.vbulletin.org/forum/showt...threadid=38205
--
2.0
removed reply announcement from irc.php and ircadmin.php ,irc.php has
simplyfied code, added chan choice to the admin
--
2.9
code adjustment to newthread.php rewritten. added multiple channel support
removed the ircaddon_install.php, everything is in this txt

#####################################################################
What it does:
------------
When a new thread is posted by a user on your board a message will
be send to your eggdrop irc bot, and the bot echo's it to your
irc channel

*note: YOU NEED AN EGGDROP BOT CONNECTED TO AN IRC SERVER FOR THIS
u can get eggdrop here: http://www.egghelp.org/
or windrop here: http://windrop.sourceforge.net/

other ircbots that can run tcl scripts could also be usefull

#####################################################################
When UPGRADING TO 2.0
---------------------
then you only have to overwrite/copy irc.php, ircadmin.php and
vbulletin.tcl to the right places. NO updates to newthread.php
newreply.php and admin/index.php are required

When UPGRADING TO 2.9
---------------------
then you have to overwrite/copy irc.php, ircadmin.php and
vbulletin.tcl to the right places. the old adjustment in
newthread.php must be replaced with the new one
also edit port number in vbulletin.tcl if you did that before
and you have to reconfigure all options in the ircadmin

#####################################################################
place the files from the zip in:
--------------------------------
ircadmin.php -> vb admin dir
irc.php -> vb root dir
vbulletin.tcl -> eggdrop script dir

#####################################################################
config your eggdrop:
--------------------
edit in vbulletin.tcl
if you want to use another portnumber then 1337, than edit that number

edit your eggdrop config file (eggdrop.conf):
add at the end:
source scripts/vbulletin.tcl

#####################################################################
run required sql queries:
--------------------------
add a new table with phpmyadmin > run the queries in install.sql

#####################################################################
php adjustments:
----------------
++++++++++++++++++
open /newthread.php
and find:
++++++++++++++++++

// redirect
if ($postpoll) {
$goto="poll.php?s=$session[sessionhash]&threadid=$threadid&polloptions=".intval($polloptions);
} elseif ($visible) {
$goto="showthread.php?s=$session[sessionhash]&threadid=$threadid";
} else {
$goto="forumdisplay.php?s=$session[sessionhash]&forumid=$forumid";
}

++++++++++++++++++
under that add:
++++++++++++++++++

// irc addon
$ircdata = $DB_site->query_first("SELECT * FROM ircaddon");
if($ircdata[ircthread] == "1") {
$Action = "new";
$fid = $ircdata[ircchan1forum];
$ircforum = preg_replace("/[[:space:]]+/", " ", $fid);
$ircforum = " ".$ircforum." ";
$forumtoirc = "/ ".$forumid." /";
if (preg_match($forumtoirc ,$ircforum)) {
$ircchan=$ircdata[ircchannel1];
require("irc.php");
}
$fid = $ircdata[ircchan2forum];
$ircforum = preg_replace("/[[:space:]]+/", " ", $fid);
$ircforum = " ".$ircforum." ";
$forumtoirc = "/ ".$forumid." /";
if (preg_match($forumtoirc ,$ircforum)) {
$ircchan=$ircdata[ircchannel2];
require("irc.php");
}
$fid = $ircdata[ircchan3forum];
$ircforum = preg_replace("/[[:space:]]+/", " ", $fid);
$ircforum = " ".$ircforum." ";
$forumtoirc = "/ ".$forumid." /";
if (preg_match($forumtoirc ,$ircforum)) {
$ircchan=$ircdata[ircchannel3];
require("irc.php");
}
}
//

++++++++++++++++++
open admin/index.php
and find:
++++++++++++++++++

makenavselect("User Groups","<hr>");

++++++++++++++++++
under that add:
++++++++++++++++++

//ircaddon
makenavoption("Modify/Enable/Disable IRC","ircadmin.php?action=settings");
makenavselect("IRC");

++++++++++++++++++
hacks done


#####################################################################
configure the ircaddon:
-----------------------
go to the admin control panel and find "Modify/Enable/Disable IRC"
on the left.
configure all options
notes:
- IRC Forum ID`s
put all your forum id's that you want to have notified in irc here,
use only 1 space to seperate forumid numbers

- IRC Server Address
here you put the ip/hostname of your eggdrop bot

- IRC Server Port
here you put the port number which is set in the vbulletin.tcl script.
This is the port# the bot listens to for notifier messages. in this
case its 1337

#####################################################################
now your done


#####################################################################
the following problems could occure:
------------------------------------

Connection Refused
this error occures on 2 known occasions:

1# u have to make sure ur provider allows u to open a port
(in this case 1337, u could try another port, but don't forget to also
change it in the vbulletin.tcl)

2# make sure ur eggdrop has opened a port (1337) to listen for messages.

--
Connection Timeout
this error occures when your bot is offline, or the host of your vb board
cant reach the bots ip
--
slow displaying of the thread announcement is caused by the bot
requesting ident information from the vb boards host. currently i haven't
found any solution for this problem. adjusting the ident timeout setting
on the bot doesnt help, but ive noticed that an eggdrop is faster then a windrop.
if someone has more insight to this plz tell us
--
hint:
make sure a firewall is not blocking any communication
lasttime i helped someone install, it didnt work cos the idiot didnt
turned the firewall off on the bot box. after telling him for the 5th
time 'turn the fecking firewall off' it worked
so make sure nothing is blocking its communication, at the isp where your
vb is running or at the box where the bot is running
--

*504 views on previous attachment 1.0
*141 views on previous attachment 2.0

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Irc post Notifier -no eggdrop dymo vBulletin 2.x Beta Releases 112 30 Mar 2009 23:07

Comments
  #2  
Old 17 Jun 2002, 21:04
JohnWoo's Avatar
JohnWoo JohnWoo is offline
 
Join Date: Jan 2002
greate work

/me install
Reply With Quote
  #3  
Old 17 Jun 2002, 21:36
Demascus's Avatar
Demascus Demascus is offline
 
Join Date: Dec 2001
gr8 work but i dont have a eggdrop or a shell to run it on
Reply With Quote
  #4  
Old 17 Jun 2002, 22:20
ModshackUK ModshackUK is offline
 
Join Date: Jun 2002
Any chance of a txt version of the instructions as the text is getting mixed up with the installer and its causing me loads of parse errors.

Also for those who use quick reply this will not work as it will bypass it if a member uses it to make a reply to a thread.

HM
Reply With Quote
  #5  
Old 17 Jun 2002, 22:22
mADmAX` mADmAX` is offline
 
Join Date: Dec 2001
I have the eggdrop installed and everything as you stated.

I run the script from IE6 and get Connection refused (111)

When I make a post in the category # I choose, it takes a little while then it redirects but does not come to the channel and notify. I have it pointed at the eggdrop ip and port as stated also. What could the problem be.
Reply With Quote
  #6  
Old 17 Jun 2002, 23:04
NTLDR's Avatar
NTLDR NTLDR is offline
 
Join Date: Apr 2002
Real name: Lee Botley, BSc (Hons)
Originally posted by mADmAX`
I have the eggdrop installed and everything as you stated.

I run the script from IE6 and get Connection refused (111)

When I make a post in the category # I choose, it takes a little while then it redirects but does not come to the channel and notify. I have it pointed at the eggdrop ip and port as stated also. What could the problem be.
Its the same problem as outlined above:

Originally posted by dong
Connection Refused(117)

this means your host doesnt allow to open a connection on (in this case) port 1337
you could try to resolve this by setting the listening portnumber to a more common port, like 23 (telnet)
You need to change the port number.
__________________
Lee Botley, BSc (Hons) - vBulletin.org Moderator
http://www.thesistersthree.com/lee/sigs/signature.ts3
The Sisters Three Charmed Discussion Forums

WinterDir .:. vBindex v2.1 for vB2 .:. vBindex v3.0.0 RC5 for vB3
Reply With Quote
  #7  
Old 17 Jun 2002, 23:27
mADmAX` mADmAX` is offline
 
Join Date: Dec 2001
I changed ports to some others and same problem. I changed the ircd to unreal recently and got the same error but it did notify. This was with the previous release, not the eggdrop. I never tried the eggdrop with Unreal at that time though. Well anyways, I had many other problems so I had to go back to UIRCD 3.0.7 and I am getting the same problem which I hoped the eggdrop would fix. So in other words, I dont think the port is the problem cause it did work on Unreal with that same port.
Reply With Quote
  #8  
Old 17 Jun 2002, 23:53
mADmAX` mADmAX` is offline
 
Join Date: Dec 2001
Well, I didnt make the changes in newreply and new thread to the changes for this way, so I just did (dont know if they are the same).

I get a parse error and wondering something...

$ircdata = $DB_site->query_first("SELECT * FROM ircaddon");
if($ircdata[ircthread] == "1") {
$Action = "new";
$fid = trim($ircdata[ircforum]);
$ircforum=explode(" ", preg_replace("/[[:space:]]+/", " ", $fid) );
while (list($key,$val)=each($ircforum))
{
if ((strstr(" ".$forumid," ".trim($val))!="") || ($ircdata[ircforum] == 0))
{
require("irc.php");
}


"Seems theres two } 's missing but I do not know where they belong?"
Reply With Quote
  #9  
Old 18 Jun 2002, 00:11
mADmAX` mADmAX` is offline
 
Join Date: Dec 2001
I put two } at the end of that to stop the parsing and I was connected to the bot that I have eggdrop running in the channel to see if I could see anything funny

This is what I seen...

<xxxx> [16:04] Telnet connection: xxx.xxx.xxx.19/32989
<xxxx> [16:04] Timeout/EOF ident connection
Reply With Quote
  #10  
Old 18 Jun 2002, 04:14
dong dong is offline
 
Join Date: May 2002
Originally posted by ModshackUK
Any chance of a txt version of the instructions as the text is getting mixed up with the installer and its causing me loads of parse errors.

Also for those who use quick reply this will not work as it will bypass it if a member uses it to make a reply to a thread.

HM
where do u get those parse errors?, in the installer?
i tested the install_ircaddon.php script, it runned ok 4 me
u shoeld read very good, i think it should work, if u have connection refused, the script works, but u need to find a better port , maybe ask your host what ports u may open
Reply With Quote
  #11  
Old 18 Jun 2002, 04:18
dong dong is offline
 
Join Date: May 2002
Originally posted by mADmAX`
I have the eggdrop installed and everything as you stated.

I run the script from IE6 and get Connection refused (111)

When I make a post in the category # I choose, it takes a little while then it redirects but does not come to the channel and notify. I have it pointed at the eggdrop ip and port as stated also. What could the problem be.
read the last bit of my post, try another port...
Reply With Quote
  #12  
Old 18 Jun 2002, 04:22
dong dong is offline
 
Join Date: May 2002
Originally posted by mADmAX`
Well, I didnt make the changes in newreply and new thread to the changes for this way, so I just did (dont know if they are the same).

I get a parse error and wondering something...

$ircdata = $DB_site->query_first("SELECT * FROM ircaddon");
if($ircdata[ircthread] == "1") {
$Action = "new";
$fid = trim($ircdata[ircforum]);
$ircforum=explode(" ", preg_replace("/[[:space:]]+/", " ", $fid) );
while (list($key,$val)=each($ircforum))
{
if ((strstr(" ".$forumid," ".trim($val))!="") || ($ircdata[ircforum] == 0))
{
require("irc.php");
}


"Seems theres two } 's missing but I do not know where they belong?"
this is the part of my newthread.php

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

this is something u can compare with
it runns exellent with my crap
but
i know there are some problems with newreply, but thats of later concern, it should notfiy whit the ++++ i gave u, unless u got connection refused..

Last edited by dong; 18 Jun 2002 at 04:28.
Reply With Quote
  #13  
Old 18 Jun 2002, 10:04
mADmAX` mADmAX` is offline
 
Join Date: Dec 2001
Originally posted by ModshackUK
Any chance of a txt version of the instructions as the text is getting mixed up with the installer and its causing me loads of parse errors.

Also for those who use quick reply this will not work as it will bypass it if a member uses it to make a reply to a thread.

HM
dong has overlooked an error in the install script...thus why you getting the parse errors...

Change this:
{
require("irc.php");
}

to:
{
require("irc.php");
}
}
}

Also, the newreply.php check for action=xxx

Another error is it should =="reply" not "new"

BTW, I am in no way putting your work down dong, I am just trying to help others with the same probs I went through. I also got it to work .... yippie

Last edited by mADmAX`; 18 Jun 2002 at 10:20.
Reply With Quote
  #14  
Old 18 Jun 2002, 11:02
Floris Floris is offline
 
Join Date: Jan 2002
Does eggdrop need to run on the same server as the web server ? Because I have a seperate shell for eggdrop on a different server then the web server where I will run the .php files.
__________________
My community; http://wetalknation.net
Reply With Quote
  #15  
Old 18 Jun 2002, 11:14
mADmAX` mADmAX` is offline
 
Join Date: Dec 2001
No, I am running it on two different servers.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 11:04.

Layout Options | Width: Wide Color: