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)
-   -   IRCBrowse - no Eggdrop + no FTP!! (https://vborg.vbsupport.ru/showthread.php?t=48734)

feldon23 02-08-2003 10:00 PM

IRCBrowse - no Eggdrop + no FTP!!
 
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

FleaBag 02-09-2003 07:39 PM

Very nice work, impressive. Just what a lot of people have been looking for!

feldon23 02-09-2003 08:00 PM

If one were so inclined, the PHP script could also, using global.php and the authentication stuff (a bit over my head still) write the results directly into your MySQL database to be retrieved later by index.php.

I wonder which is faster, querying MySQL or querying a PHP script. :)

wooolF[RM] 02-09-2003 08:53 PM

I think MySQL

FleaBag 02-09-2003 10:01 PM

I think so too, hence the whole point of using databases and in particular MySQL.

feldon23 02-09-2003 10:10 PM

Anyone actually running this? :)

Velocd 02-09-2003 11:55 PM

I'm having slight difficulty getting this thing to update the .txt file.
I'm probably entering something wrong, knowing my luck.

In the "ALIASES" folder, for this section of code:
Code:

  ;## Change the following 3 settings:
  %ircbrowsechannel = #animesystem.com
  %ircbrowseserver = www.animesystem.com
  %ircbrowsestr = /forums/ircbrowse.php?key=1234&action=write
  ;##

Would that be correct? My "ircbrowse.php" is located in my forums directory.

feldon23 02-10-2003 12:03 AM

Ok my instructions are wrong, they say to CHMOD ircbrowse.txt to 644. It needs to be 666.

Your ircbrowse.php file is in the right place (I tested it). Make sure the key in your mIRC script matches the key in ircbrowse.php and make sure that you have CHMODded ircbrowse.txt to 666.

I have since updated the ZIP file without changing the version number since no code is affected.

S1R1US 02-10-2003 12:46 AM

looks very very nice. I have the similar hack at the bottom of my forums, pokecommunity.com but like yours better. Will it work with 2.2.9. Also how do it upload the list and keep it up to date without eggdrop or ftp mirc? Also i've been looking for a java chat to use on my forums and ur script will go perfectly with using it since it links the channel name with the java applet. Can u tell me info to get the chat applet ur using as well. THanks again!

Velocd 02-10-2003 12:48 AM

Quote:

Originally posted by feldon23
Ok my instructions are wrong, they say to CHMOD ircbrowse.txt to 644. It needs to be 666.

Your ircbrowse.php file is in the right place (I tested it). Make sure the key in your mIRC script matches the key in ircbrowse.php and make sure that you have CHMODded ircbrowse.txt to 666.

I have since updated the ZIP file without changing the version number since no code is affected.

Ah, I was wondering about why you mentioned it to be "644" in the original directions, when that is usually set by default.

It works perfectly now, great hack! ;)
(demo: http://www.animesystem.com/forums")

[high]* Velocd clicks install
[/high]

I had requested this in Eyeball's last hack, and that is is there a way to grab the topic from the channel in the chat, then I could display that variable?


All times are GMT. The time now is 05:57 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.01001 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)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