vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   [REQ] vB report to mIRC (https://vborg.vbsupport.ru/showthread.php?t=28555)

DeadlyMax 09-21-2001 04: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 05: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 05: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 06: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.

Code:

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 06: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 12:55 PM

ok i'll request this hack - my license details are clear to see :)

DarkReaper 09-21-2001 09:38 PM

Quote:

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 01: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 03: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 02:56 PM

Bump


All times are GMT. The time now is 03:08 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.03646 seconds
  • Memory Usage 1,727KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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