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

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
  #32  
Old 02-12-2003, 11:42 PM
supreemball supreemball is offline
 
Join Date: Nov 2001
Location: houston, tx
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by feldon23
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.
heh.. i appreciate the alternate method of my own hack, and this might be at least *somewhat* better as far as not needing an ftp script.. i put it in global.php because i wanted to put my # of chatters on my vbhome(lite) page as well as forumhome (and anywhere else i might want to add in the future).

Quote:
*It adds 1,150 lines of code to your mIRC.
nice exaggeration yours does the same thing

Quote:
*Won't work if mIRC is in C:\Program Files\mIRC
add quotes to the local directory (ie. "C:\Program Files\mIRC" instead of just C:\Program Files\mIRC), and change the $mircdir variable in the mirc code to "C:\Program Files\mIRC" (with quotes) and it's fixed.

Quote:
*Requires 24/7 FTP access
heh, i don't know of any hosts whatsoever that DON'T allow ftp access to your own site 24/7.

Quote:
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!
but at least you gave me props. thanks
Reply With Quote
  #33  
Old 02-13-2003, 12:16 AM
feldon23's Avatar
feldon23 feldon23 is offline
 
Join Date: Oct 2001
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
supreemball said:
heh.. i appreciate the alternate method of my own hack, and this might be at least *somewhat* better as far as not needing an ftp script.. i put it in global.php because i wanted to put my # of chatters on my vbhome(lite) page as well as forumhome (and anywhere else i might want to add in the future).
I would not request this kind of information in my global.php. In your case, I'd have it in index.php and the index.php for your vbHome Lite.

Then again, your PHP script does not query a file when called. The next version of my script will possibly be completely integrated with vBulletin and write the info straight into the database. I'm still pondering this.

Quote:
I said:
*It adds 1,150 lines of code to your mIRC.
Quote:
supreemball said:
nice exaggeration yours does the same thing
Ok, I exaggerated the length of ftp.mrc by including the comments. Here's the actual numbers:

Number of lines added to vBulletin:
IRCBrowse 6
IRCUsers 2

Total number of lines added to mIRC:
IRCBrowse 51
IRCUsers 930 (900 by mIRC FTP client, 30 by IRCUsers)

Quote:
supreemball said:
add quotes to the local directory (ie. "C:\Program Files\mIRC" instead of just C:\Program Files\mIRC), and change the $mircdir variable in the mirc code to "C:\Program Files\mIRC" (with quotes) and it's fixed.
Good to know.
Quote:
supreemball said:
heh, i don't know of any hosts whatsoever that DON'T allow ftp access to your own site 24/7.
My point is that negotiating an FTP session every 5 minutes or maintaining an open FTP session 24/7 is not something I wish to do.

In an unscientific test, I shut off all my internet apps except mIRC and CuteFTP and made a comparison.

Connect to FTP, upload a file, disconnect
58 packets sent
51 packets received

IRCBrowse update
6 packets sent
5 packets received

I wrote this because I felt there was a better mousetrap. I didn't write it to rain on your or anyone else's parade. Work begins on 1.1 tonight.
Reply With Quote
  #34  
Old 02-13-2003, 03:10 PM
Gryphon's Avatar
Gryphon Gryphon is offline
 
Join Date: Oct 2001
Location: Seattle, WA
Posts: 617
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by feldon23
The next version of my script will possibly be completely integrated with vBulletin and write the info straight into the database. I'm still pondering this.
I, personally, would prefer it did not. It is pretty light now and easily added to non-vB pages.
Reply With Quote
  #35  
Old 02-26-2003, 05:04 PM
TheEDIGuy TheEDIGuy is offline
 
Join Date: Jul 2002
Location: Buffalo, NY
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Feldon, this is a great hack. I've had it installed for about a week now, and it works wonderfully. No problems whatsoever.
Reply With Quote
  #36  
Old 02-26-2003, 05:15 PM
feldon23's Avatar
feldon23 feldon23 is offline
 
Join Date: Oct 2001
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I'm finally working on the next version of this.

It will remove the # of nicks limitation, support half-ops, add the ability to pass the topic, and let you pick which chat network you want it to respond to.

For instance if you are on #help on efnet and on dalnet, you can "marry" ircbrowse to efnet's #help.

Is there a big demand to run 2 copies of ircbrowse in the same mIRC?
Reply With Quote
  #37  
Old 02-27-2003, 09:26 AM
feldon23's Avatar
feldon23 feldon23 is offline
 
Join Date: Oct 2001
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm sure you've heard it before. The dog ate my homework, etc.

IRCBrowse 2 was *finished*.

I did a final test which broke up the message into sections since mIRC craps out at over 999 chars in 1 string.

BLUE SCREEN OF ******* DEATH

Had to pull the plug to shut down.

Came back and aliases.ini is EMPTY. Stuff I have been writing for years which I have never gotten around to backing up or anything.

I have IRCBrowse 1 backed up of course, but 2 is gone like a fart in the wind.

I'll possibly re-create it, but not if it takes another 10 hours.

Anyone else seen a PC that craps out when large quantities of text are being passed around? I have uptimes of 45 days on this PC (windows 2000, SP2, Asus A7V133 w/ latest VIA 4-in-1, 1.4 GHz Athlon, 640MB RAM, plenty of HD space, GeForce 2 MX400 w/ 41.09).

I run Photoshop like a dog all the time, opening and closing huge documents constantly.

Then I go to telnet in a DOS window and paste an instruction that's 120 chars long and the computer BSODs.

I know my computer used to BSOD when sending large or complex e-mails out of Eudora. This turned out to be a driver prob with my Linksys ethernet card.

And I'm sure a forum moderator will be along to tell me this is off-topic. I'm a bit pissed so plz gimme some space just this once. This IS my first hack you know.
Reply With Quote
  #38  
Old 03-08-2003, 07:11 AM
Highlander Highlander is offline
 
Join Date: Apr 2002
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it dont works.. there is nothing showing up.. i edited all variables.. correctly and tested it muuch times..

go to

www.spieleplanet.org/forum
Reply With Quote
  #39  
Old 03-09-2003, 04:58 PM
TheEDIGuy TheEDIGuy is offline
 
Join Date: Jul 2002
Location: Buffalo, NY
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Feldon, if you *do* get around to re-creating version 2 (bummer, by the way), can you have the option to remove the IRCBrowse user out of the "in chat' list? I use "FORTbot" as my user, and obviously, it sits in the chatroom all day, reporting itself as being in chat.
Reply With Quote
  #40  
Old 03-09-2003, 07:41 PM
feldon23's Avatar
feldon23 feldon23 is offline
 
Join Date: Oct 2001
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
TheEDIGuy said:
Feldon, if you *do* get around to re-creating version 2 (bummer, by the way), can you have the option to remove the IRCBrowse user out of the "in chat' list? I use "FORTbot" as my user, and obviously, it sits in the chatroom all day, reporting itself as being in chat.
I've been fiddling with mIRC scripts for about 4 years. I've been doing PHP for about 12 weeks. Sad isn't it, that I'd probably recommend fixing this in PHP instead of mIRC.

In your index.php, I'd change...

PHP Code:
$ircbrowsetotal $ircbrowse['0'];
$ircbrowsehighest $ircbrowse['1'];
$ircbrowsenicks $ircbrowse['2'];
fclose ($tempfil); 
to

PHP Code:
$ircbrowsetotal $ircbrowse['0'];
$ircbrowsehighest $ircbrowse['1'];
$ircbrowsenicks str_replace("FORTbot, """$ircbrowse['2']);
fclose ($tempfil); 
Reply With Quote
  #41  
Old 03-09-2003, 07:55 PM
feldon23's Avatar
feldon23 feldon23 is offline
 
Join Date: Oct 2001
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Highlander said:
it dont works.. there is nothing showing up.. i edited all variables.. correctly and tested it muuch times..

go to

www.spieleplanet.org/forum
If you are not running PHP4, please search-and-replace in ircbrowse.php for:

$_GET

and replace it with

$HTTP_GET_VARS

IRCBrowse 2 fixes(d) this.
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 07:25 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.04696 seconds
  • Memory Usage 2,329KB
  • 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
  • (2)bbcode_php
  • (13)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