vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Irc post Notifier -no eggdrop (https://vborg.vbsupport.ru/showthread.php?t=38205)

dymo 05-03-2002 10:00 PM

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

dymo 05-03-2002 10:28 PM

as promised the irc.php place it in your forums directory

dymo 05-03-2002 10:28 PM

and finally the ircadmin.php place it into your forums/admin/ directory

BigJohnson 05-03-2002 10:33 PM

very nice hack thanks

PBC 05-03-2002 10:34 PM

Can the bot be set up to stay in the channel instead of jumping in an out every time a message is posted?

FleaBag 05-03-2002 10:38 PM

What's to stop this being used to spam channels that don't belong to you?

dymo 05-03-2002 10:39 PM

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

dymo 05-03-2002 10:40 PM

Quote:

Originally posted by GamerForums
What's to stop this being used to spam channels that don't belong to you?
intelligant Opers to ban the bot or the mask it uses, and ircops and netadmins that will ban the mask from the server or network, thats about it

Floris 05-03-2002 10:44 PM

[01:40] sweet :) installing now, and lets hope this works!

Neo 05-03-2002 10:53 PM

Would you put all the files in a zip.

dymo 05-03-2002 11:00 PM

all zipped here

N!ck 05-04-2002 12:53 AM

sweet hack, will install when the +d mode is added

CloakSim 05-04-2002 12:56 AM

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.

kreftt 05-04-2002 01:28 AM

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:
mean i can either have 1 forum to monitor or all?
id like to have "a few"...

tia

kreftt

JulianD 05-04-2002 01:41 AM

Damn... Is this real?! I gotta install this ASAP!!! Very nice feature! :D

JulianD 05-04-2002 01:54 AM

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...

JulianD 05-04-2002 01:58 AM

However, in linux it works... I'm installing it right now.

JulianD 05-04-2002 02:31 AM

Is there any special requirements? It doesn't work on Linux/PHP 4.06.

Gamingforce 05-04-2002 03:09 AM

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.

Demascus 05-04-2002 05:29 AM

wow just what ive been waiting 4 thanks man gr8 hack

Demascus 05-04-2002 05:57 AM

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

N!ck 05-04-2002 06:35 AM

aaaaaaaaaah! i get a timeout (110 seconds) error

JulianD 05-04-2002 08:55 AM

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.

IRiDiuM 05-04-2002 09:43 AM

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
listen 1337 script vbulletinaccept

proc vbulletinaccept {idx} {
 control $idx vbincoming
}

proc vbincoming {idx args} {
 if {[join $args] != "" } {
  putserv "PRIVMSG #vbchan :$args"
 }
 killdcc $idx
}


dymo 05-04-2002 10:37 AM

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

Demascus 05-04-2002 11:29 AM

Quote:

Originally posted by JulianD
I don't have timeouts or hang ups, but when I post a post/thread the bot doesn't show up on my channel.
thats what happens with me

Floris 05-04-2002 11:30 AM

Quote:

Originally posted by JakeX
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

The string you found & replaced is the first of two.. around line 309 or so is another one. You should replace that one.

Demascus 05-04-2002 11:37 AM

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?

dymo 05-04-2002 05:01 PM

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

sas1911 05-04-2002 05:02 PM

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.

Demascus 05-04-2002 05:36 PM

my irc is running UltimateIRCd(Tsunami)-3.0(00).a22

Gamingforce 05-04-2002 05:49 PM

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.

Broekie 05-04-2002 08:11 PM

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 :)).

Baratator 05-04-2002 11:04 PM

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 !!

dymo 05-04-2002 11:35 PM

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

sas1911 05-05-2002 08:16 AM

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.

ariaforums 05-05-2002 11:38 AM

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

Martz 05-05-2002 03:41 PM

Nice hack, I've installing now, in newthread.php there are 2 instances of this:

Quote:

$goto="showthread.php?s=$session[sessionhash]&threadid=$threadid";
} else {
$goto="forumdisplay.php?s=$session[sessionhash]&forumid=$forumid";
}
Is it the first of the second one?


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. :(

Martz 05-05-2002 04:44 PM

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!

JulianD 05-05-2002 10:06 PM

Quote:

Originally posted by sas1911
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.
I compiled [better wash my mouth][better wash my mouth][better wash my mouth][better wash my mouth][better wash my mouth]x on my server and I ran it, and it connected sucesful to my irc server.

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
  • Page Generation 0.01302 seconds
  • Memory Usage 1,820KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete