Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Beta Releases

Reply
 
Thread Tools
Irc post Notifier -With eggdrop Details »»
Irc post Notifier -With eggdrop
Version: 1.00, by dong dong is offline
Developer Last Online: Jul 2005 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 06-16-2002 Last Update: Never Installs: 38
Is in Beta Stage  
No support by the author.

Irc thread Notifier -With eggdrop [VB 2.2.x > 2.3.x]
https://vborg.vbsupport.ru/showthrea...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
https://vborg.vbsupport.ru/showthrea...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($pollopti ons);
} 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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #92  
Old 04-02-2004, 07:57 PM
lasto lasto is offline
 
Join Date: Jan 2002
Posts: 1,514
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i dont mind changing stuff though mysql if someone tells me what i have to run
Reply With Quote
  #93  
Old 04-02-2004, 08:22 PM
CarolinaKid CarolinaKid is offline
 
Join Date: Jun 2003
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is the edits for dong's notify for vb 3 gold that i have found to work this is not a offical release dong will release it when he gets his done this is just for those of you that are trying to install dong's great hack on vb3. Altho i am not php coder so i could not rewrite the ircadmin.php as it needs to be rewrote i have supplied the file changes for everything else hopefully dong can get the ircadmin.php rewrote for vb3 soon.
Dong if i am outta bounds here i am sorry and please have thread removed.
Reply With Quote
  #94  
Old 04-02-2004, 08:30 PM
lasto lasto is offline
 
Join Date: Jan 2002
Posts: 1,514
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice one much appreciated - i follow what u saying but with no admin cp how do u select which forums it will do posts from or does it just show all from the board ?
Reply With Quote
  #95  
Old 04-02-2004, 08:36 PM
CarolinaKid CarolinaKid is offline
 
Join Date: Jun 2003
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lasto
nice one much appreciated - i follow what u saying but with no admin cp how do u select which forums it will do posts from or does it just show all from the board ?
you have to mannually edit the database via phpmyadmin
open phpmyadmin go to the forum database go to ircaddon
go to browse then edit you will see like #chan1 bot-ip and such just replace the info and save
Reply With Quote
  #96  
Old 04-02-2004, 09:51 PM
nitro nitro is offline
 
Join Date: Nov 2001
Posts: 302
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmmm summat wierd im getting no output, I can see it connect ok but getting no output

iv tried forcing in the tcl
set chan #mychan

in mysql ircaddon iv

ircenable 1
ircthread 1
ircreply 0
ircchan1forum 0 (for simplicity till i see it do what v1 used to do when i used it ages ago)
ircchannel1 #mychan and blank when i try to force chan in tcl not that that shud make difference
ircserver theipofbot
ircport thebotport

all other fields iv left blank, really cant see what is wrong
I would be questioning the global line i had trouble with earlier but if its working ok for others then it cant be that, strange.

what I really want to do with this is to get it working so I can digest the code and maybe port an addon probly with the need for plenty help from others in this thread if interested to announce new champs from the v3Arcade addon.
Reply With Quote
  #97  
Old 04-03-2004, 08:15 AM
CarolinaKid CarolinaKid is offline
 
Join Date: Jun 2003
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nitro
hmmm summat wierd im getting no output, I can see it connect ok but getting no output

iv tried forcing in the tcl
set chan #mychan

in mysql ircaddon iv

ircenable 1
ircthread 1
ircreply 0
ircchan1forum 0 (for simplicity till i see it do what v1 used to do when i used it ages ago)
ircchannel1 #mychan and blank when i try to force chan in tcl not that that shud make difference
ircserver theipofbot
ircport thebotport

all other fields iv left blank, really cant see what is wrong
I would be questioning the global line i had trouble with earlier but if its working ok for others then it cant be that, strange.

what I really want to do with this is to get it working so I can digest the code and maybe port an addon probly with the need for plenty help from others in this thread if interested to announce new champs from the v3Arcade addon.
well its actually pretty simple 0 is not an option in this one for forum id you must put the forum id's in I also could not get it to work using 0 but does if you type them all in.
Reply With Quote
  #98  
Old 04-03-2004, 09:46 AM
nitro nitro is offline
 
Join Date: Nov 2001
Posts: 302
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CarolinaKid
well its actually pretty simple 0 is not an option in this one for forum id you must put the forum id's in I also could not get it to work using 0 but does if you type them all in.
well I started with 1 specific forum id and it was connecting to the bot I coud see it in console but no announce so i tried the 0 which also connected to the bot and no announce
[high]* nitro shrugs[/high]
Reply With Quote
  #99  
Old 04-03-2004, 09:49 AM
lasto lasto is offline
 
Join Date: Jan 2002
Posts: 1,514
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fatal error: Cannot redeclare postonirc() (previously declared in

anyone get that ? or have i overlooked something ?

all i did was upload the files and then edit new thread

i aint edited irc.php etc

also i edited the sql queries from phpymyadmin etc so it posts which it does but i get that error on the board as well
Reply With Quote
  #100  
Old 04-03-2004, 09:54 AM
CarolinaKid CarolinaKid is offline
 
Join Date: Jun 2003
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nitro sounds like either you did not add the tcl script to bot config or you did not change #chan1 to #urchannelname

and lasto i dunno what your prob is buddy. not seen that error before
Reply With Quote
  #101  
Old 04-03-2004, 10:03 AM
lasto lasto is offline
 
Join Date: Jan 2002
Posts: 1,514
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok got it to post in mirc but here is the output

why is the poster missing and the thread name ?

(12:00:14) (%Bot) {New thread in Test Section.| Poster: . Subject: . Link: http://localhost/test/}

Also in phpmyadmin can we only select 3 channels from which this is to take posts to mirc as if i do it liek this 35.36.37 etc it dont work
Reply With Quote
Reply

Thread Tools

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

Forum Jump


All times are GMT. The time now is 06:15 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04331 seconds
  • Memory Usage 2,319KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete