The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
IRCBrowse - no Eggdrop + no FTP!! Details »» | |||||||||||||||||||||||||
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
|
Comments |
#22
|
||||
|
||||
Quote:
Quote:
Quote:
A query is how you get information FROM or write information TO the MySQL database your forum (or website) runs on. Queries can be incredibly complex, grabbing a ton of cross-linked information from various parts of the database and recombining it into a temporary array which is then merged with HTML to display a forum page or other such tasks. The reason why we talk about queries is that each MySQL query, no matter how simple or complex, adds to the load your server uses. But in many cases you do not have a choice. Each PHP page needs to do MySQL queries to get the information necessary to display the forum home, or a forum thread list, or to do a search, or to handle attachments, etc. If you want to know how many users registered on your forum today and a MySQL query has not already been done to grab this information and provide it to the PHP script that's running, you'll have to do a query for it. You can imagine that if someone comes out with a hack that does 5-10 queries and someone else does the same hack but it only does 1 query or even piggybacks on queries ALREADY being done on the page, then we'll probably favor that version of the hack! Take your time, there's no rush to learn this stuff. |
#23
|
||||
|
||||
// This is the key you send from mIRC and vBulletin to make sure this script is not
// called by outsiders What key? |
#24
|
||||
|
||||
Make up a key number and put the same one in both places (mIRC and vBulletin), like 3049 or 2179.
|
#25
|
||||
|
||||
Quote:
Maybe there is a related function in the C language iRC uses that is similar to serialize? |
#26
|
||||
|
||||
Another possibility is to learn the protocols to do a POST method.
|
#27
|
|||
|
|||
Hey feldon23, You ROCK!!! Great Hack
|
#28
|
||||
|
||||
My server is running php 4.0.6, I could not get this hack to work until I changed $_GET to $HTTP_GET_VARS and $_SERVER to $HTTP_SERVER_VARS, all it kept saying was "Nothing to do."
Works like a charm now. |
#29
|
||||
|
||||
Sorry bout that. $_GET was added in 4.1. I will make it compatible with PHP3 & 4 in the next version.
Also going to try to allow for unlimited chatters. |
#30
|
||||
|
||||
I idle on about 15 channels across two servers, and the same channel that I wish to display exists on both servers. If someone joins or drops and such, it updates correctly; however after a few minutes it shows just my name. I assume this is displaying the channel from the other server of which I am the only one on it?
*(Edit added) I plan on running it on a bot that is in about three channels on one server, just thought it would be nice if it worked otherwise, thanks. |
#31
|
||||
|
||||
Well no amount of huffing and puffing will make QUIT work on a specific channel. And specifying a channel won't help your situation.
At this time, my script does not work predictably if you are joined in the same chat channel name on multiple servers. I'll look into what's involved in abstracting my script such that you can specify which chat server's channel to respond to. Am I right to assume that you would never be joined to 2 different servers on the SAME chat network, such as having 2 joins to EFNet? You can tell what chat network each of your Server windows is connected to by typing //echo $network in each one and looking at the result. If you want, I can look at supporting this for 1.1. Already for 1.1, I hope to have: -unlimited chatters -passing the topic -support for PHP 3 + 4 I really don't want this script to get too complex. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|