Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Beta Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
IRCBrowse - no Eggdrop + no FTP!! Details »»
IRCBrowse - no Eggdrop + no FTP!!
Version: 1.00, by feldon23 feldon23 is offline
Developer Last Online: Jan 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 02-08-2003 Last Update: Never Installs: 30
Is in Beta Stage  
No support by the author.

I looked at the "IRCUsers" hack written by eyeball (aka supreemball) using the ftp mirc script coded by Rich@home.nl and I thought wow this is cool. Then I looked at what's involved.

*It modifies global.php, meaning that EVERY PAGE of your forum loads this information even though only index.php uses it.

*It adds 1,150 lines of code to your mIRC.

*Requires 24/7 FTP access


So I thought, why not have vBulletin AND mIRC interface with a PHP file?
Thank you eyeball and Rich for the inspiration to write this!

I don't have a photo/snapshot because the PHP script runs "silent" and how the output looks all depends on your vB template.

The PHP script provides the # of total chatters, the highest # of chatters ever, and a formatted (customizable in the PHP script) comma-delimited list of users in the chat which you can insert anywhere in your templates (an example template under forumhome is provided).

The mIRC script opens a socket to your web server (HTTP) and does an "HTTP GET" to request the ircbrowse.php script. The secret is, it puts all the data in the Query line after the URL and then just ignores the page it gets back from the web server and closes the socket. This is all password-protected.

This is my first hack posted here so please be gentle.

This hack is operating on:

SereneScreen Aquarium Forum
Anime System

Show Your Support

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

Comments
  #42  
Old 03-09-2003, 09:39 PM
TheEDIGuy TheEDIGuy is offline
 
Join Date: Jul 2002
Location: Buffalo, NY
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks again, Feldon! I'll apply that this evening.
Reply With Quote
  #43  
Old 03-09-2003, 09:49 PM
feldon23's Avatar
feldon23 feldon23 is offline
 
Join Date: Oct 2001
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually, I think a better version would be...

PHP Code:
$ircbrowsenicks str_replace(", ,"","str_replace("FORTbot"""$ircbrowse['2'])); 
Reply With Quote
  #44  
Old 03-14-2003, 04:01 AM
Bumpaneer's Avatar
Bumpaneer Bumpaneer is offline
 
Join Date: Nov 2002
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have another support question. irc.resum.net also supports "superops" or admins (symbol !). I believe the mode is +a. These users don't currently show up on the list. How would I go about adding them?

~Bumpaneer
Reply With Quote
  #45  
Old 03-15-2003, 02:56 PM
FastAttack FastAttack is offline
 
Join Date: Feb 2002
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm well it seems that I am doing something wrong as far as the mirc side goes.. there is no scripts.ini.. and I made one..

so would it be possible for you just to release the .ini's already with the script so that we just need to place them on our mirc folder?
Reply With Quote
  #46  
Old 03-16-2003, 01:31 PM
Bumpaneer's Avatar
Bumpaneer Bumpaneer is offline
 
Join Date: Nov 2002
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I put it in script.mrc, and that worked fine.

~Bumpaneer
Reply With Quote
  #47  
Old 03-17-2003, 02:53 AM
FastAttack FastAttack is offline
 
Join Date: Feb 2002
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is the stuff I get on my irc window :

* /if: invalid format
* /if: invalid format
* /if: invalid format
Reply With Quote
  #48  
Old 05-17-2003, 08:13 AM
Ember's Avatar
Ember Ember is offline
 
Join Date: Sep 2002
Location: Hereford, England
Posts: 200
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a really great hack, i've downloaded it and will definatly install it we ever get our IRC channel online *growls*
Reply With Quote
  #49  
Old 05-20-2003, 07:36 PM
Tim Wheatley's Avatar
Tim Wheatley Tim Wheatley is offline
 
Join Date: Nov 2001
Location: England
Posts: 489
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's not working and I don't know why not. It's not writing to the text file from mIRC, it is reading and working onto the index.php display, and also is working when I enter the write details into the URL, here are my settings (obviously with the key replaced with a fake)...

mIRC 6.03.

aliases

PHP Code:
/op /mode # +ooo $$1 $2 $3
/dop /mode # -ooo $$1 $2 $3
//join #$$1 $2-
//part #
//names #$$1
//whois $$1
//kick # $$1 $2-
//query $$1
/send /dcc send $$2
/chat /dcc chat $1
/ping /ctcp $$1 ping
//server $$1-

/
ircbrowse {
  ;
## Change the following 3 settings:
  
%ircbrowsechannel #racesimcentral
  
%ircbrowseserver = [url]www.racesimcentral.com[/url]
  %
ircbrowsestr = /forum/irc/ircbrowse.php?key=2195&action=write
  
;##

  
set %ircbrowsetotal $nick(%ircbrowsechannel,0)
  if (
$nick(%ircbrowsechannel,0,o) > 0) %ircbrowsestr = %ircbrowsestr $+ &ops=
  var %
1
  
while (%<= $nick(%ircbrowsechannel,0,o)) {
    %
ircbrowsestr = %ircbrowsestr $+ $nick(%ircbrowsechannel,%x,o) $+ +
    
inc %x
  
}
  if (
$nick(%ircbrowsechannel,0,o) > 0) { %$len(%ircbrowsestr) - | %ircbrowsestr $left(%ircbrowsestr,%x) }
  if (
$nick(%ircbrowsechannel,0,h) > 0) %ircbrowsestr = %ircbrowsestr $+ &halfops=
  %
1
  
while (%<= $nick(%ircbrowsechannel,0,h)) {
    %
ircbrowsestr = %ircbrowsestr $+ $nick(%ircbrowsechannel,%x,h) $+ +
    
inc %x
  
}
  if (
$nick(%ircbrowsechannel,0,h) > 0) { %$len(%ircbrowsestr) - | %ircbrowsestr $left(%ircbrowsestr,%x) }
  if (
$nick(%ircbrowsechannel,0,v) > 0) %ircbrowsestr = %ircbrowsestr $+ &voiced=
  %
1
  
while (%<= $nick(%ircbrowsechannel,0,v)) {
    %
ircbrowsestr = %ircbrowsestr $+ $nick(%ircbrowsechannel,%x,v) $+ +
    
inc %x
  
}
  if (
$nick(%ircbrowsechannel,0,v) > 0) { %$len(%ircbrowsestr) - | %ircbrowsestr $left(%ircbrowsestr,%x) }
  if (
$nick(%ircbrowsechannel,0,r) > 0) %ircbrowsestr = %ircbrowsestr $+ &users=
  %
1
  
while (%<= $nick(%ircbrowsechannel,0,r)) {
    %
ircbrowsestr = %ircbrowsestr $+ $nick(%ircbrowsechannel,%x,r) $+ +
    
inc %x
  
}
  if (
$nick(%ircbrowsechannel,0,r) > 0) { %$len(%ircbrowsestr) - | %ircbrowsestr $left(%ircbrowsestr,%x) }
  
sockopen ircbrowse %ircbrowseserver 80

remote

PHP Code:
on *:sockopen:ircbrowse:{
  
sockwrite -n $sockname GET %ircbrowsestr HTTP/1.1
  sockwrite 
-n $sockname Accept: */*
  sockwrite -n $sockname Accept-Language: en-us
  sockwrite -n $sockname Accept-Encoding: text
  sockwrite -n $sockname User-Agent: mIRC $+ / $+ $version (compatible; MTS Downloader 1.1; Windows $os $+ )
  sockwrite -n $sockname Host: %ircbrowseserver
  sockwrite -n $sockname Connection: close
  sockwrite -n $sockname $crlf
}

on *:JOIN:%ircbrowsechannel:.timer 1 4 ircbrowse  ;allow time for ops, auto-voice to gain ops + voice
on *:PART:%ircbrowsechannel:.timer 1 2 if ( %ircbrowsetotal > $!nick(%ircbrowsechannel,0) ) ircbrowse
on *:QUIT:.timer 1 2 if ( %ircbrowsetotal > $!nick(%ircbrowsechannel,0) ) ircbrowse
on *:NICK:.timer 1 2 if ( $newnick ison %ircbrowsechannel ) ircbrowse 
I do something wrong?
Reply With Quote
  #50  
Old 05-20-2003, 07:49 PM
Tim Wheatley's Avatar
Tim Wheatley Tim Wheatley is offline
 
Join Date: Nov 2001
Location: England
Posts: 489
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah, just noticed I'm getting the * /if: invalid format the user above reported.
Reply With Quote
  #51  
Old 05-20-2003, 08:21 PM
Tim Wheatley's Avatar
Tim Wheatley Tim Wheatley is offline
 
Join Date: Nov 2001
Location: England
Posts: 489
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got it! I can either type /ircbrowse or...

I used: /timer 0 120 ircbrowse

* Timer 1 activated

I then had to wait 15mins for it to work.
Reply With Quote
Reply


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 03:04 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.05005 seconds
  • Memory Usage 2,347KB
  • 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_php
  • (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