![]() |
Current IRC chatters on forumhome via mirc (no eggdrop)
Current IRC Channel Chatters on Forumhome Hack
-written by eyeball (aka supreemball) of http://www.somethingleet.com (ftp mirc script coded by Rich@home.nl) NEW VERSION updated 01/02/03! :D - added support for halfops - added commas (no comma on last nick either :)) - added 'total nicks ever on ' specified #channel to upgrade from the previous version, replace the code in mirc and the forumhome_loggedinusers template. you don't have to overwrite the ftp.mrc file or mess with global.php while upgrading, nothing's changed with those. This hack shows a specified IRC channel's current userlist, total # of users, and status of each user (opped, voiced, or normal, including bold/italics for each category), all on your vb forum's main page. This hack ONLY requires ftp access to the forum server, and <a href="http://www.mirc.com">mIRC</a> 5.91 or above (constantly connected to the channel). No bots or java irc crap needed! (mirc script code can be added to mirc-based bots though.) A live demo of this hack is shown @ http://www.somethingleet.com/forum/index.php (shown below the Current Online Forum Users list). Files modified: global.php access.ini (used in mirc) Templates modified: forumhome_loggedinusers Install.txt & needed files attached. For support, reply to this thread or email eye@somethingleet.com. (Hack only tested on vb2.2.6, but should work on all other 2.2.* versions) NOTE: This hack assumes the mirc user (yourself or someone else) has full access to your ftp server via ftp. I'm not held responsible if you accidentally give this hack to someone using mirc (which in turn you would have to give the mirc user your ftp login info). Enjoy :) |
Awesome, I hope it is one I can get installed then actually working ;)
[high]* Velocd clicks install for now :p[/high] |
I can understand:
Code:
c:\path\to\mirc\nicks.php Code:
remote/path/to/forum/nicks.php |
no, but it will eventually be uploaded when you run the "/getnicks" command in mirc.
|
* /ftp.upload: connecting (FTPsock1 to ftp.SITE.com file:nicks.php)
* /ftp.upload: connected (FTPsock1 to ftp.SITE.com file:nicks.php) * /ftp.upload: error: (( Welcome to PureFTPd 1.0.12 )) .:.-=(<*>)=- (FTPsock1 to ftp.SITE.com file:nicks.php) * /ftp.upload: closing (FTPsock1 to ftp.SITE.com file:nicks.php) |
Go eye :D
|
ftp.SITE.com doesn't seem to be a valid url. :)
|
???
that didnt help me lol..I put SITE to show what I edited in the file... My real site info is in there, that is what comes up in mIRC when I ran the command.... It didn't upload the file to the site. I made a Sub-Domain, and made a testboard to see if it would run, and I didn't get anything yet. It did make the .php file in the mIRC folder on my computer though... Whats the scenario? Why isn't it uploading? |
Your password/username for your FTP may be incorrect, or the path to which the file is located. (which should be public_html/forum/nicks.php, or whatever your folders are named).
------------------ Hey Supreemball, how might I get it so the nicks are seperated by comma's? You should be able to use str_replace(), explode(), or rtrim() to achieve it..although with some effort last night I just couldn't get it to go.. Also, is there any way to log the most users that have ever been the channel at one time? |
This is why:
The ftp.mrc only requires a certain reply from the ftp and doesn't accept the welcome msg or other stuff - so it doesn't give the user/pass at the right time. And errors. |
thats what i was thinking xiphod....
|
is there a way to put a delay in the script?
|
If the miRC remote tab, you can change the value 120 (2 minutes) to whatever you like, which will either increase or decrease the time it refreshes.
Is that what you meant? ;) |
Quote:
also the commas can be done thru mirc script code too. use this as the code (to replace the line similar to it) Code:
write -a nicks.php <b>@ $+ $nick(#channel,%x) $+ </b> $+ , } |
Quote:
ie: users in chat: bob, joe, mike, chris, Anyway to simply code it in that mIRC script to prevent the last comma from showing? ;) |
heh, not that i know of.. that's probably why i didn't use commas in the first place :)
|
Well, I can figure it out easily, but I need to know how you can get the users in the PHP file to be displayed without skipping lines ;)
For example, currently it's outputted like this: PHP Code:
PHP Code:
|
thanks, is working great :)
but I also would like to know how I can separate the names with a comma. regards, Schorsch EDIT: it doesn't show the % of halfops. How can I change that ? |
Quote:
as far as adding commas, i know it can be done, but it's alot of trouble.. maybe if i have some more spare time soon. |
Quote:
|
Quote:
+ (voice) and @ (op) I can see without problems. |
Did anybody find a solution for the problem where the login msg makes it error and not log in ?
|
About the last comma in the line
Maybe you could do $len(%variablewithnicks) and then $calc(%resultoflen -1) on $left(%resultofcal) set %mooA $len(%variableofthenicks) set %mooB $calc(%mooA -1) set %mooC $left(%mooA,%mooC) echo -a All the nicks without the last , makes > %mooC tada The author of the script could probably update the ftp.mrc pretty quick for you since he is known with the tokens. |
nice hack will use :)
|
Wicked hack and worked first go!!! Thanks!!! Just one thing how can I call the $variables on a non vb page like on the main page of vbportal? I add the code and it just returns a blank space... Any Ideas?
|
Add the require("nicks.php"); code under where you have require("global.php"); on your vbportal index.php page (if I'm presuming it's like vbhome)
Any updates on this Supreemball? All I could really care for right now is to log the most users ever in the iRC channel, but Xiphoid added a method to removing the last comma above ;) |
Quote:
|
Quote:
What exactly could i do to get commas after the users names?? Can someone please modify the ftp.mrc and attach it?? By the way cool hack, works like a charm... :) |
Very nice hack! Thank you!!
|
Quote:
PHP Code:
PHP Code:
|
any advice about this half op thing ?
regards, Schorsch |
problem with script...
in the new versions of mirc, you can multi server connect, instead of opening multiple mIRC's to be on different servers...well i use this option... when on 2 or more servers, but in the channel I use the script for, it records the data as 0 being no1 in the channel... What would need to be added to the script or whatever, to make it look on 1 server and in that 1 channel? IN a multi load situation. |
ok by popular demand, i'll add the commas (without the trailing one on the last nick) in the next release, as well as the halfop support, and will probably even add 'most chat users' as well (and i can guarantee that the most chat users will work better than vb's). :)
|
Awesome, sounds keen supreemball ;)
|
Quote:
The identifier to get the connection ID of the current active server is $cid. So you might use if ($cid == 1) { blah | blah }. Dave. PS: The above is for people with version 6.* of mIRC. |
Quote:
about halfop, i added a line like this: Code:
elseif ($nick(#channel,%x) ishop #channel) { |
Quote:
|
I have the same problem with the upload not working properly, after playing around with the ftp.mrc file I got it to work (might not be the most efficient way, but it works). Still throws some errors at the end after the file is uploaded but it gets nicks.php from point A to point B and thats all that really matters to me. Can't guarantee it will work, but it worked for me :)
-- Open ftp.mrc and find: Code:
on *:SOCKREAD:FTPsock*:{ Code:
:retry Code:
if ($1 != 220) { Code:
if ($1 != 220) { Code:
if ($1 != 331) { Code:
if ($1 != 331) { Code:
if ($1 != 230) { Code:
if ($1 != 230) { |
Nice hack but how make it to work
it wasn't clear for me here /ftp.upload -dfl ftp.yourserver.com ftpusername ftppassword remote/path/to/forum/nicks.php c:\path\to\mirc\nicks.php i do /ftp.upload -dfl ftp://user:pass@ip:port remote/path/to/nicks.php C:\Program Files\mirc\nicks.php and i got this error /ftp.upload: invalid port if i do ftp.upload -dfl remote ftp://user:pass@ip:port /path/to/nicks.php C:\Program Files\mirc\nicks.php i got this error /ftp.upload: invalid file could you explain me what i get this error please The script seem working but how make it to work????????????? |
Did anyone make a "most ever online" for this chat system ?? That would be great.
|
All times are GMT. The time now is 04:47 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|