PDA

View Full Version : [REQ] vB report to mIRC


DeadlyMax
09-21-2001, 05:59 AM
hello guys i just came up with this crazy idea..
i think when someone is able to make it lots of ppl will be happy with it
i only dont know if this is possible in php but we'll see here's the idea:

- when in a forum with id nr 4,5,6 (for example) a thread is being posted there will be a message displayed like:
- new thread! [THREAD TITLE] posted by [NICKNAME] in [FORUM NAME]

i hope u guys know what i mean? ;)
thnx in advance and thnx for reading

Wayne Luke
09-21-2001, 06:52 AM
Next time please create your request in the correct forum.

Please put your valid customer information in your user profile for further support.

merk
09-21-2001, 06:53 AM
This isnt hard at all.

someone wrote a phpIRC abstraction layer.

However, i dont know why you would bother.

(ps, there are lots of bugs in the irc layer, as in, it will loop endlessly whenever anyone sets +v/+o modes in the channel while the bot is there.

Scott MacVicar
09-21-2001, 07:35 AM
This hack would actually be quite difficult, as a server as alot of ports blocked with the firewall, so you wouldnt be able to open a socket to the mIRC. The only solution i see is a timer that checks the contents of a file.

on *:SOCKOPEN:forumlist: {
sockwrite -n $sockname GET /lastest.php?forumid=1 HTTP/1.0
sockwrite -n $sockname Accept: */*
sockwrite -n $sockname User-Agent: mIRC
sockwrite -n $sockname Host: forums.domain.com
sockwrite -n $sockname $crlf
}

on *:SOCKREAD:forumlist: {
:read
sockread %tmp
tokenize 32 %tmp
if ($sockbr) {
if (%tmp != $null) { /write forums.txt %tmp }
goto read
}
docheck
}

alias docheck {
var %ltime = $read(forums.txt , 1)
if (%ltime < ($ctime - 60)) {
msg #channel A new post has been posted by $read(forums.txt, 2) called $read(forums.txt, 3)
}
}

docheck {
/timer69 60 0 /sockopen forumlist forums.domain.com 80
}


this would do for the miRC side of stuff, I will try and do the php stuff a bit later.

merk
09-21-2001, 07:56 AM
Actually PPN, there is a MUCH simpler version.

However, until this guy enters his licence, im not going to bother look it up again.

:)

Raptor
09-21-2001, 01:55 PM
ok i'll request this hack - my license details are clear to see :)

DarkReaper
09-21-2001, 10:38 PM
Originally posted by Raptor
ok i'll request this hack - my license details are clear to see :)

This brings up a very important point about the license info.

A) We can't see it unless we're mods or admins! Well damn, I guess we don't know if he's got a license or not :)

B) Even if we support someone with a license, others without licenses may benefit from it.

ForKmaN
04-29-2002, 02:13 AM
Which is why the hack forums should be only available to the members :)

I think I got my license info entered..how do I check?

Steve Machol
04-29-2002, 04:20 AM
[QUOTE]Originally posted by ForKmaN
Which is why the hack forums should be only available to the members :)

I think I got my license info entered..how do I check?

Demascus
05-01-2002, 03:56 PM
Bump

TaP
05-01-2002, 07:24 PM
im liecence .... can ya make this?

Demascus
05-02-2002, 05:59 AM
im also liecence

Demascus
05-03-2002, 05:51 AM
can someone make this?

PowerBlade
05-03-2002, 06:39 AM
This sounds cool, and im willing to make a try.
There is a fsockopen() function is php which is possible to use to connect to a irc server.
The problem is then to authenticate to the server and login.
Anyone knows the exact commands?

PowerBlade
05-03-2002, 11:26 AM
I got the bot up and running right now.
the behavior is everytime a user in a specific forum post or reply, the bot will connect to irc, join the channel and notice the users in the channel. then leave.
We are currently working on a admin panel to configure the bot's forum and make support for multiple forums/irc channels.

Demascus
05-03-2002, 06:09 PM
very nice keep us updated on how it goes