View Full Version : Current IRC chatters on forumhome via mirc (no eggdrop)
supreemball
12-23-2002, 10:00 PM
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 :)
Velocd
12-23-2002, 11:13 PM
Awesome, I hope it is one I can get installed then actually working ;)
* Velocd clicks install for now :p
Velocd
12-23-2002, 11:25 PM
I can understand:
c:\path\to\mirc\nicks.php
But what should be replaced here?
remote/path/to/forum/nicks.php
nicks.php does not exist in my forums directory. Did you want this uploaded?
supreemball
12-23-2002, 11:29 PM
no, but it will eventually be uploaded when you run the "/getnicks" command in mirc.
GoTTi
12-24-2002, 04:27 AM
* /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)
Mystis
12-24-2002, 04:46 AM
Go eye :D
supreemball
12-24-2002, 06:36 AM
ftp.SITE.com doesn't seem to be a valid url. :)
GoTTi
12-24-2002, 06:58 AM
???
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?
Velocd
12-24-2002, 02:00 PM
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?
Floris
12-24-2002, 03:53 PM
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.
GoTTi
12-24-2002, 05:28 PM
thats what i was thinking xiphod....
GoTTi
12-24-2002, 05:39 PM
is there a way to put a delay in the script?
Velocd
12-24-2002, 05:49 PM
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? ;)
supreemball
12-24-2002, 06:59 PM
Originally posted by Velocd
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?
you can do the most users in the channel with no problem.. i might release that in the next version.. it'd be done thru the mirc script code.
also the commas can be done thru mirc script code too.
use this as the code (to replace the line similar to it)
write -a nicks.php <b>@ $+ $nick(#channel,%x) $+ </b> $+ , }
Velocd
12-24-2002, 07:38 PM
Originally posted by supreemball
also the commas can be done thru mirc script code too.
use this as the code (to replace the line similar to it)
write -a nicks.php <b>@ $+ $nick(#channel,%x) $+ </b> $+ , }
I figured how to do that, but that leaves a trailing comma at the end of the last username..
ie: users in chat: bob, joe, mike, chris,
Anyway to simply code it in that mIRC script to prevent the last comma from showing? ;)
supreemball
12-24-2002, 08:07 PM
heh, not that i know of.. that's probably why i didn't use commas in the first place :)
Velocd
12-24-2002, 08:17 PM
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:
$ircusers = "
Bob
Jacob
Chris
";
But, how can I get it like this:
$ircusers="bob jacob chris";
Schorsch
12-24-2002, 09:16 PM
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 ?
supreemball
12-24-2002, 11:20 PM
Originally posted by Velocd
But, how can I get it like this:
$ircusers="bob jacob chris";
if you put it like that, then, provided that your channel has alot of chatters (like up to 20 depending on their nick length), eventually will probably produce a 'line too long' error in mirc and stop reporting the chatters correctly, so this is why it goes to each line, to stop it from doing that. i have an average of 30-40 chatters in my room at all times, so it's impossible for me to do that and it work right :)
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.
supreemball
12-24-2002, 11:20 PM
Originally posted by Schorsch
EDIT: it doesn't show the % of halfops. How can I change that ?
% of halfops? what do you mean?
Schorsch
12-24-2002, 11:56 PM
Originally posted by supreemball
% of halfops? what do you mean?
look at the attachment. this is a "half op", signed with a "%", and in your "whos online in irc" it doesn't show that % sign.
+ (voice) and @ (op) I can see without problems.
Floris
12-25-2002, 08:42 AM
Did anybody find a solution for the problem where the login msg makes it error and not log in ?
Floris
12-25-2002, 08:45 AM
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.
andrew67
12-26-2002, 01:35 AM
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?
Velocd
12-26-2002, 03:50 AM
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 ;)
andrew67
12-26-2002, 05:47 AM
Originally posted by Velocd
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)
Thanks but it no work... I can't find where it calls global.php in Vbportal anywhere but I tried adding require("nicks.php"); to both my index and my header.php files to no avail.. :(
Kars10
12-26-2002, 07:25 AM
Originally posted by xiphoid
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.
Sorry, but don?t get the comma-thing...
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... :)
orozery
12-26-2002, 09:31 AM
Very nice hack! Thank you!!
Velocd
12-26-2002, 03:10 PM
Originally posted by andrew67
Thanks but it no work... I can't find where it calls global.php in Vbportal anywhere but I tried adding require("nicks.php"); to both my index and my header.php files to no avail.. :(
I can't imagine vBportal functioning without requiring global.php, but if it's non-existent then find:
error_reporting(7);
And below it add:
chdir("./forums");
require("nicks.php");
Change "forums" to whatever your forums directory is called.
Schorsch
12-26-2002, 03:13 PM
any advice about this half op thing ?
regards,
Schorsch
GoTTi
12-26-2002, 10:07 PM
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.
supreemball
12-26-2002, 11:44 PM
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). :)
Velocd
12-27-2002, 01:56 AM
Awesome, sounds keen supreemball ;)
Davey
12-27-2002, 12:25 PM
Originally posted by Da_GoTTi
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.
Yes, multiserver works like this: The first server you connect to, has the id '1', the second server has the id '2', etc.
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.
pugmy
12-27-2002, 09:42 PM
Originally posted by xiphoid
Did anybody find a solution for the problem where the login msg makes it error and not log in ?
I'm having the same problem---can't login because my ftp login messages are multiple lines and make a login error. Unfortunately I can't adjust ftp server messasges. How can I fix the problem, anyone?
about halfop, i added a line like this: elseif ($nick(#channel,%x) ishop #channel) {
write -a nicks.php <b> % $+ $nick(#channel,%x) $+ </b> $+ }it works for me.
Schorsch
12-27-2002, 09:57 PM
Originally posted by pugmy
about halfop, i added a line like this: elseif ($nick(#channel,%x) ishop #channel) {
write -a nicks.php <b> % $+ $nick(#channel,%x) $+ </b> $+ }it works for me.
thank you, that works great :)
TheVoidz
12-29-2002, 04:50 PM
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:
on *:SOCKREAD:FTPsock*:{
-- Right after that add:
:retry
-- Find (also in ftp.mrc):
if ($1 != 220) {
ftp.error $sockname $2-
return
}
-- Replace it with:
if ($1 != 220) {
goto retry
}
-- Find (also in ftp.mrc):
if ($1 != 331) {
ftp.error $sockname $2-
return
}
-- Replace it with:
if ($1 != 331) {
goto retry
}
-- Find (also in ftp.mrc):
if ($1 != 230) {
ftp.error $sockname $2-
return
}
-- Replace it with:
if ($1 != 230) {
goto retry
}
sebastien69
12-31-2002, 03:29 AM
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?????????????
DaTeX
01-02-2003, 08:34 AM
Did anyone make a "most ever online" for this chat system ?? That would be great.
PsychoticManiac
01-02-2003, 12:34 PM
Really good hack m8 !! Thanks alot!
TheVoidz
01-02-2003, 12:39 PM
@sebastien69 :
/ftp.upload -dfl ServerIP ftpUsername ftpPassword public_html/forum/nicks.php(Might look something like that) c:\mirc\nicks.php(assuming you have mirc installed in c:\mirc\)
Huron
01-02-2003, 03:30 PM
I wish all hacks were this easy to setup and this useful...many, many thanks! This is just what I was looking for...
/me installs
Huron
01-02-2003, 07:48 PM
Well I changed a few things in this hack to make it look like the Active Users Bar (it was easy to do since it was in the same template) and I put it on top instead of the underneath the Active Users Bar (it just seemed to look better to me). I'm trying to come up with an additional mod to display the most chatters similar to the "most users online". Here is what I did:
This is the beginning of my forumhome_loggedinusers
<tr id="cat">
<td bgcolor="#336D95" background="https://vborg.vbsupport.ru/images/catagory_backing.gif" colspan="6"><normalfont color="#000000"><b>Current #acidxtreme chatters: $totalnicks </b></normalfont></td>
</tr>
<tr>
<td bgcolor="#13486D" colspan="6"><smallfont>
<nobr>There are currently $totalnicks members in chat.</nobr> | <nobr>Most users ever in chat was $recordchatters on $recordchatdate at $recordchattime.</nobr><br>
$ircnicks</smallfont></td>
</tr>
I then tried to add the following:
//-----------------------------Max Chatters Online Display-----------------------------------//
$maxchatters=explode(" ", gettemplate('maxchattersin',0,0));
if ((int)$maxchatters[0] <= $totalnicks) {
$time = time();
$maxchattersin = "$totalnicks " . $time;
$DB_site->query("UPDATE template SET template='$maxchattersin' WHERE title='maxchattersin'");
$maxchatters[0] = $totalnicks;
$maxchatters[1] = $time;
}
$recordchatters = $maxchatters[0];
$recordchatdate = vbdate($dateformat,$maxchatters[1]);
$recordchattime = vbdate($timeformat,$maxchatters[1]);
eval("\$loggedinusers = \"".gettemplate('forumhome_loggedinusers')."\";");
}
//-----------------------------Max Chatters Online Display-----------------------------------//
After this line in index.php
eval("\$loggedinusers = \"".gettemplate('forumhome_loggedinusers')."\";");
}
I then added maxchattersin table to template but after putting everything together it didn't work and errored out on me. I'm a total noob at this and it is probably over my head but I thought I would give it a stab. Hopefully someone can build on this and show me the error of my ways...
sebastien69
01-02-2003, 09:20 PM
Thanks TheVoidz work great
Hack installed succeffully
supreemball
01-02-2003, 10:27 PM
thanks guys :)
enjoy the new update, added all previously requested features :)
GoTTi
01-03-2003, 01:45 AM
okok...what is added into the update...
also, possible to make a TimeStamp on the nicks.php so when it is updated, it will tell when it was last updated.
DaTeX
01-03-2003, 07:44 AM
Thx guys but i miss the record time and record date by the record user. Is it posible to add this ?
supreemball
01-03-2003, 12:15 PM
da_gotti, i put what was added to the update in the first post.
i'll see about adding the date/time the record was set.. not sure though.
Schorsch
01-03-2003, 02:34 PM
thanks for the update supreemball :)
ariaforums
01-03-2003, 04:03 PM
Thanks for the hack...works a treat :D
Any chance you can make like the coloured on line hack?
eg bots & ops RED , voice GREEN, normal users BLACK.
TheVoidz
01-03-2003, 05:49 PM
;==[irc chatter nicklist vb forum upload script begin]=====================
/getnicks { var %x = 1
write -c nicks.php <? $chr(36) $+ ircnicks = "
while (%x <= $nick(#channel,0)) {
if ($nick(#channel,%x) isop #channel) {
write -a nicks.php <font color="#FF0000">@ $+ $nick(#channel,%x) $+ </font> $+ , }
elseif ($nick(#channel,%x) ishop #channel) {
write -a nicks.php <font color="#FF0000"> $+ $chr(37) $+ $nick(#channel,%x) $+ </font> $+ , }
elseif ($nick(#channel,%x) isvoice #channel) {
write -a nicks.php <font color="#00FF00"> $+ $chr(43) $+ $nick(#channel,%x) $+ </font> $+ , }
else { write -a nicks.php $nick(#channel,%x) $+ , }
inc %x
}
set %lastnick $read(nicks.php,$lines(nicks.php))
write -d $+ $lines(nicks.php) nicks.php
set %lastnickchars $calc($len(%lastnick) - 1)
set %nocommanick $left(%lastnick,%lastnickchars)
write -a nicks.php %nocommanick
write -a nicks.php " $+ $chr(59)
set %totalnicks $calc($lines(nicks.php) - 2)
if (%record.users == $null) { set %record.users $nick(#channel,0) }
else {
if ($nick(#channel,0) > %record.users) {
set %record.users $nick(#channel,0)
}
}
write -a nicks.php $chr(36) $+ mostnicks = $chr(34) $+ %record.users $+ $chr(34) $+ $chr(59)
write -a nicks.php $chr(36) $+ totalnicks = $chr(34) $+ %totalnicks $chr(34) $+ $chr(59) ?>
/ftp.upload -dfl ftp.yourserver.com ftplogin ftppassword /path/to/forum/nicks.php c:\path\to\mirc\nicks.php
}
;==[irc chatter nicklist vb forum upload script end]=====================
Replace this with your other mIRC Aliases
Will work assuming your forum default text color is black.
ariaforums
01-03-2003, 08:30 PM
I'm getting a parse error on line 3 in nicks.php with that :(
Tried moding it to this but I still get a parse error on line 3 of nicks.php :
;==[irc chatter nicklist vb forum upload script begin]=====================
/getnicks { var %x = 1
write -c nicks.php <? $chr(36) $+ ircnicks = "
while (%x <= $nick(#mychan,0)) {
if ($nick(#mychan,%x) isop #mychan) {
write -a nicks.php <font color="#FF0000">@ $+ $nick(#mychan,%x) $+ </font> $+ _ }
elseif ($nick(#mychan,%x) isvoice #mychan) {
write -a nicks.php <font color="#00FF00"> $+ $chr(43) $+ $nick(#mychan,%x) $+ </font> $+ _ }
else { write -a nicks.php $nick(#mychan,%x) $+ _ }
inc %x
}
write -a nicks.php " $+ $chr(59)
set %totalnicks $calc($lines(nicks.php) - 2)
write -a nicks.php $chr(36) $+ totalnicks = $chr(34) $+ %totalnicks $chr(34) $+ $chr(59) ?>
/ftp.upload -dfl ftp.myserver.secretstuff /www/portal/forums/nicks.php c:\ircn\system\nicks.php
}
;==[irc chatter nicklist vb forum upload script end]=====================
supreemball
01-03-2003, 09:22 PM
use ' instead of " on the font color= statements. that should fix it.
ariaforums
01-03-2003, 10:02 PM
Could you elaborate :)
Im tired and not thinking straight :)
TheVoidz
01-04-2003, 01:50 AM
oh ya that makes sence :p
;==[irc chatter nicklist vb forum upload script begin]=====================
/getnicks { var %x = 1
write -c nicks.php <? $chr(36) $+ ircnicks = "
while (%x <= $nick(#mychan,0)) {
if ($nick(#mychan,%x) isop #mychan) {
write -a nicks.php <font color='#FF0000'>@ $+ $nick(#mychan,%x) $+ </font> $+ _ }
elseif ($nick(#mychan,%x) isvoice #mychan) {
write -a nicks.php <font color='#00FF00'> $+ $chr(43) $+ $nick(#mychan,%x) $+ </font> $+ _ }
else { write -a nicks.php $nick(#mychan,%x) $+ _ }
inc %x
}
write -a nicks.php " $+ $chr(59)
set %totalnicks $calc($lines(nicks.php) - 2)
write -a nicks.php $chr(36) $+ totalnicks = $chr(34) $+ %totalnicks $chr(34) $+ $chr(59) ?>
/ftp.upload -dfl ftp.myserver.secretstuff /www/portal/forums/nicks.php c:\ircn\system\nicks.php
}
;==[irc chatter nicklist vb forum upload script end]=====================
Huron
01-04-2003, 06:40 AM
I hope supreemball doesn't mind but I modded some of the code to display time and date of most chatters. Basically, all I did was do some cutting and pasting of what was there. The following is what I changed...
Beginning at:
if (%record.users == $null) { set %record.users $nick(#channel,0) }
else {
if ($nick(#channel,0) > %record.users) {
set %record.users $nick(#channel,0)
}
}
write -a nicks.php $chr(36) $+ mostnicks = $chr(34) $+ %record.users $+ $chr(34) $+ $chr(59)
write -a nicks.php $chr(36) $+ totalnicks = $chr(34) $+ %totalnicks $chr(34) $+ $chr(59) ?>
To:
if (%record.users == $null) { set %record.users $nick(#channel,0) }
else {
if ($nick(#channel,0) > %record.users) {
set %record.users $nick(#channel,0)
}
if (%record.date == $null) { set %record.date $date(ddd mmm doo yyyy) }
else {
if ($nick(#channel,0) > %record.users) {
set %record.date $date(ddd mmm doo yyyy)
}
if (%record.time == $null) { set %record.time $time(h:nntt) }
else {
if ($nick(#channel,0) > %record.users) {
set %record.time $time(h:nntt)
}
}
write -a nicks.php $chr(36) $+ mostnicks = $chr(34) $+ %record.users $+ $chr(34) $+ $chr(59)
write -a nicks.php $chr(36) $+ mostdate = $chr(34) $+ %record.date $+ $chr(34) $+ $chr(59)
write -a nicks.php $chr(36) $+ mosttime = $chr(34) $+ %record.time $+ $chr(34) $+ $chr(59)
write -a nicks.php $chr(36) $+ totalnicks = $chr(34) $+ %totalnicks $chr(34) $+ $chr(59) ?>
Then in Forumhome_Loggedinusers beggining at:
colspan="6"><normalfont color="#000000"><b>Current #channel chatters: $totalnicks</b></normalfont> <smallfont>(Most chatters ever in #channel: $mostnicks)</smallfont></td>
</tr>
<tr>
<td bgcolor="#13486D" colspan="6"><smallfont>
$ircnicks</smallfont></td>
</tr>
To:
colspan="6"><normalfont color="#000000"><b>Current #channel chatters: $totalnicks</b></normalfont></td>
</tr>
<tr>
<td bgcolor="#13486D" colspan="6"><smallfont>
<nobr>There are currently $totalnicks members in chat.</nobr> | <nobr>Most chatters ever online was $mostnicks on $mostdate at $mosttime.</nobr><br>
$ircnicks</smallfont></td>
</tr>
I'm new here and I hope I'm not breaking some rules. If so then please delete this post. Many thanks go out to supreemball for providing such a great hack-this has been my fav install thus far. My chatroom went from the occasional 1-2 users who would stay for about 5 minutes and then leave when no one else was there to a busy, vibrant chatroom with around 15-20 users at a time being common.
DaTeX
01-04-2003, 09:09 AM
Thx Huron thats great
ariaforums
01-04-2003, 09:45 AM
Colours work great :D
Ive added a legend in template forumhome_todaylogged in users:
<tr id="cat">
<td bgcolor="{categorybackcolor}" colspan="6"><normalfont color="{categoryfontcolor}"><b>Currently online @ YOUR IRC NETWORK #mychan: $totalnicks </b></normalfont></td>
</tr>
<tr>
<td bgcolor="{firstaltcolor}" colspan="6"><smallfont>
<font color="red" size="2">? Bots & Ops</font> *
<font color="green" size="2">? Voiced</font> *
<font color="black" size="2">? Member</font><br>
$ircnicks</smallfont></td>
</tr>
DaTeX
01-04-2003, 02:23 PM
The record date an time doesnt work.
When a new record is set the %record.time and %record.date didnt gets updatet in mirc.
Huron
01-04-2003, 08:27 PM
Your right DaTeX...I'm working on it now to see if I can fix it...
supreemball
01-05-2003, 12:06 AM
huron, i can probably take a stab at it when i get around to it.. thanks for the mod, and it's nice to hear that the hack is actually making chatrooms fun :)
also an optional thing that could be coded in is # or % of ops in channel/voiced/regular users.. seems kinda like overkill, but just throwing out an idea.
Velocd
01-08-2003, 04:10 AM
Excellent, just noticed the update. Thanks once again SupreemBall ;)
Schorsch
01-09-2003, 10:32 AM
I'm getting a parse error when I'm not connected to my channel!!! what the heck is that ??
thanks,
Schorsch
SaM please help
01-11-2003, 02:28 AM
i have the same problem, but will work fine if i connected to channel.
I think a part of this hack is, to be connected with mirc.
But is there no other way?
I can?t be online 24h, only that my User can see who is in channel :ogre: .
(sorry for english)
SaM , www.highflyers.de
Velocd
01-12-2003, 06:06 PM
I thought of yet another cool add-on for this hack, probably simple to do as well.
How might one go about grabbing the "MoTD" (or topic, whatever it's called) from the channel? Then this could be displayed on the forum home in the IRC online area. It could be of some interesting use ;)
got it working, but do you have to run /getnicks everytime you want it to update the users in the room?
XrayHead
01-16-2003, 09:19 PM
Nice hack mate.
Haven't been able to get past the servers log in message (errors out). I've tried TheVoidz method but didn't work for me.
Any other suggestions? I'd really like to get this hack working it looks really cool. ;)
TheVoidz
01-18-2003, 02:28 PM
hmmm tell me what error you get
supreemball
01-18-2003, 06:56 PM
Originally posted by Velocd
I thought of yet another cool add-on for this hack, probably simple to do as well.
How might one go about grabbing the "MoTD" (or topic, whatever it's called) from the channel? Then this could be displayed on the forum home in the IRC online area. It could be of some interesting use ;)
interesting idea, but not sure how it'd be doable.. i'll have to look more into mirc's variables to see if it could be done.
and snyx, you don't have to run /getnicks everytime you want to update it. if you install the hack correctly, it automatically updates the listing every 2 minutes.
about the ftp errors, not sure.. you might have to modify the ftp.mrc file somehow to possibly fix it.. i'm not the author of that script so i can't tell you much.
Originally posted by TheVoidz
hmmm tell me what error you get
* /ftp.upload: connecting (FTPsock1 to ftp.mysite.com file:nicks.php)
* /ftp.upload: connected (FTPsock1 to ftp.mysite.com file:nicks.php)
* /ftp.upload: error: computer system is for authorized users only. Individuals using this (FTPsock1 to ftp.mysite.com file:nicks.php)
* /ftp.upload: closing (FTPsock1 to ftp.mysite.com file:nicks.php)
The line "computer system is for authorized users only. Individuals using this..." is part of the server ftp welcome message.
lifesourcerec
01-19-2003, 01:37 AM
I get this error
* /ftp.upload: error: computer system is for authorized users only. Individuals using this
But I know the password and login is right.
lifesourcerec
01-19-2003, 01:39 AM
Originally posted by w596
* /ftp.upload: connecting (FTPsock1 to ftp.mysite.com file:nicks.php)
* /ftp.upload: connected (FTPsock1 to ftp.mysite.com file:nicks.php)
* /ftp.upload: error: computer system is for authorized users only. Individuals using this (FTPsock1 to ftp.mysite.com file:nicks.php)
* /ftp.upload: closing (FTPsock1 to ftp.mysite.com file:nicks.php)
The line "computer system is for authorized users only. Individuals using this..." is part of the server ftp welcome message.
oh.. ok
lifesourcerec
01-19-2003, 01:48 AM
Is there a command for the script to ignore the welcome message? I bet it tries to do the username when the welcome message is going and password into the username. The Welcome message is long.
You can try TheVoidz method
https://vborg.vbsupport.ru/showthread.php?postid=335852#post335852 (Post 38) in this thread.
But for some reason it didn't work for me, maybe it will work for you though. ;)
lifesourcerec
01-19-2003, 02:13 AM
Originally posted by w596
You can try TheVoidz method
https://vborg.vbsupport.ru/showthread.php?postid=335852#post335852 (Post 38) in this thread.
But for some reason it didn't work for me, maybe it will work for you though. ;)
Didn't work for me. We must be using the same hoster.
lifesourcerec
01-19-2003, 02:26 AM
Is there a way to delay the script to login? Maybe wait 3 seconds.
zajako
01-19-2003, 08:06 PM
i am having problems with the ftp connecting as well. Is there any way to make the mirc client run a url in the background so that one could make a php script that catches the url and turns it into a db query which lists the users in there?
Prince3
01-21-2003, 02:06 PM
i'm sorry.. but this "no eggdrop" thing sux.. and letting mIRC be constantly in the channel is never going to work..
So i'm gonna take up my coding skills again and code you guys a .tcl for this... maybe even a whole new script..
Schorsch
01-21-2003, 02:35 PM
Originally posted by Prince3
So i'm gonna take up my coding skills again and code you guys a .tcl for this... maybe even a whole new script..
yeahhh that's a good idea :bunny:
Athmo
01-29-2003, 12:50 PM
I've send the maker of the ftp.mrc script an email yesterday. Now he's made a new script.
This script works ok, even with large welcome messages.
Athmo
01-29-2003, 12:52 PM
I've send the maker of the ftp.mrc script an email yesterday. Now he's made a new script.
This script works ok, even with large welcome messages.
I've attached the new ftp.mrc script.
Just rename the script to ftp.mrc.
File attached was the wrong one. Did attach the right one now (zipped)
Athmo, your attached file is 0 bytes. :confused:
Athmo
01-30-2003, 11:21 AM
Thanks for the warning.
Corrected the attachment in my previous post.
lifesourcerec
02-10-2003, 06:56 PM
Going to try to install this tonight
lifesourcerec
02-11-2003, 01:18 AM
Works like a charm. Thanks a million :)
Funkie
02-20-2003, 08:01 AM
Woot Woot got it working:)
Thanx for all you guys that put the work into this lill mod:)
Beanyhead
02-21-2003, 08:09 PM
Originally posted by sebastien69
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?????????????
Dunno if anyone answered your question, but Change Program Files to Program%20Files ;)
Zelda-King
03-09-2003, 02:19 PM
Installation was a breeze. I like the result. I'll be finicky though and state that half Ops are shown in Bold Italics with Ops being in just Bold as opposed to the higher rank having bold italics like on the board.
Anyone wanting that, in mIRC > Tools > Aliases, change if ($nick(#channel,%x) isop #channel) {
write -a nicks.php <b>@ $+ $nick(#channel,%x) $+ </b> $+ , }
elseif ($nick(#channel,%x) ishop #channel) {
write -a nicks.php <b><i> $+ $chr(37) $+ $nick(#channel,%x) $+ </i></b> $+ , } for if ($nick(#channel,%x) isop #channel) {
write -a nicks.php <b><i>@ $+ $nick(#channel,%x) $+ </i></b> $+ , }
elseif ($nick(#channel,%x) ishop #channel) {
write -a nicks.php <b> $+ $chr(37) $+ $nick(#channel,%x) $+ </b> $+ , }
I suppose for a more round-the-clock updating several Ops should have the mIRC scripting. It'd be good if you could just give a bot the information and they'd be on all the time. Is that possible?
Finally, for those with busy chats, some may prefer the 'Current Chatters' to be a click-on and the names would show on another page there, rather than seeing 50-100 names on the main page. Not a major concern to me personally.
KaiN6993
04-01-2003, 08:01 AM
Great hack, this hack has all I had in mind. /click installs
Intex
04-01-2003, 03:39 PM
* Intex installs :cool:.
Works great - very nice hack !. I've made some changes to where its located (now in my Welcome Panel ;)). Any other people who decide to install make sure your FTP server doesn't have a welcome message or it won't login properly. I've not tried the fix suggested by another user earlier in the thread for the timeouts.
Rox anyway !
Snapperhaed
04-01-2003, 06:50 PM
Worked fine right out of the box for Version 2.3.0 - Thanks!
iggy123
06-13-2003, 03:17 PM
I am still getting the error message:
* /ftp.upload: error: computer system is for authorized users only. Individuals using this (FTPsock1 to ftp.clanantivirus.com file:nicks.php)
did anyone come up with a fix for this
edit:
Ok i got it too work - somehow and i am now having a problem with it up dating.
I added the following line to the remote section
on 1:connect:{ /load -rs ftp.mrc | /timer 0 120 /getnicks }
I closed it (mIRC) down and then started it up again but it doesn't seem to update, and when i check the site, it shows the same amount of ppl as before and the time stamp on the nicks, is from when i ran it manually
iggy123
06-16-2003, 09:18 PM
Never mind found out myself
iggy123
06-28-2003, 11:09 AM
Is there anyway of making it show the last time it updated on the forum front page
airaffair
09-13-2003, 07:54 AM
Great Hack, but , I have a stupid question concerning the global.php part.
Instructions state:
5. Open your forum's global.php.
==[below the line:]====
error_reporting(7);
==[add this line:]====
require('./nicks.php');
Save the file and upload.
When I do this I only get error messages, or just a blank page, I think that I'm just not sure where in the global.php to paste the "require('./nicks.php');"
i have tried below the error_reporting(7); line, but still no go. I would love to get this hack to work. Thanks
Now, my Global.php looks like this:
<?php
error_reporting(7);
if (isset($HTTP_GET_VARS['explain']) OR isset($HTTP_POST_VARS['explain'])) {
$showqueries = 1;
$explain = 1;
}
if (isset($HTTP_GET_VARS['showqueries']) OR isset($HTTP_POST_VARS['showqueries']) or isset($showqueries)) {
$showqueries = 1;
$pagestarttime = microtime();
} else {
$pagestarttime = 0;
}
// allow script to work with registerglobals off
if ( function_exists('ini_get') ) {
$onoff = ini_get('register_globals');
} else {
$onoff = get_cfg_var('register_globals');
}
if ($onoff != 1) {
@extract($HTTP_SERVER_VARS, EXTR_SKIP);
@extract($HTTP_COOKIE_VARS, EXTR_SKIP);
@extract($HTTP_POST_FILES, EXTR_SKIP);
@extract($HTTP_POST_VARS, EXTR_SKIP);
@extract($HTTP_GET_VARS, EXTR_SKIP);
@extract($HTTP_ENV_VARS, EXTR_SKIP);
}
// get rid of slashes in get / post / cookie data
function stripslashesarray (&$arr) {
while (list($key,$val)=each($arr)) {
if ($key!="templatesused" and $key!="argc" and $key!="argv") {
if (is_string($val) AND (strtoupper($key)!=$key OR
vBFreak
11-08-2003, 05:10 PM
I get this error:
FTP.UPLOAD Unknown command
What can I do? I haven't made any changes in the ftp.mrc, and in the aliases I've only changed #channel to my chan
And how can I add, that a special nicks.php will be uploaded before quit, that the users see that the bot iss offline and not the wrong informations?
My Chan is in the euIRC, there the chanowner have * and the super-ops have ! before the nick, in the List is an @ before the nicks... How can I correct that?
Darken Rahl
12-17-2003, 11:19 AM
Is there any way to make it show how long the nicks have been idle?
I get this..
* /ftp.upload: connecting (FTPsock1 to ftp.X-clusive.com file:nicks.php)
* /ftp.upload: connected (FTPsock1 to ftp.X-clusive.com file:nicks.php)
* /ftp.upload: error: computer system is for authorized users only. Individuals using this (FTPsock1 to ftp.X-clusive.com file:nicks.php)
* /ftp.upload: closing (FTPsock1 to ftp.X-clusive.com file:nicks.php)
ANyone knows how i can make it work?
MogKnight
03-11-2004, 09:26 PM
Parse error: parse error in /home/ffsforums/public_html/nicks.php on line 1
Warning: Cannot modify header information - headers already sent by (output started at /home/ffsforums/public_html/nicks.php:1) in /home/ffsforums/public_html/admin/functions.php on line 1573
any idea what this means?
Mike11212
03-25-2004, 03:46 AM
I am getting this error on IRC
-
IRCREFRESH Unknown command
-
* Timer 1 activated
-
* Timer 1 halted
-
IRCREFRESH Unknown command
Mike11212
03-26-2004, 11:52 PM
Anyone?
XrayHead
03-28-2004, 06:29 PM
I got the hack to work ok,
But in IRC the script is loaded ok but dose not run the /getnicks command at all.
I pasted the following @ the top of the REMOTES TAP
on 1:connect:{ /load -rs ftp.mrc | /timer 0 120 /getnicks }
On connect I get this message in the command window!
* Loaded Script c:\mirc\ftp.mrc
But it doesnt connect to the FTP at all
Any help would be great on this one as its 99% working..... Only need to get IRC to do its thing.
XrayHead
PS, I am eunning the latest Vef of mIRC (6.14)
XrayHead
03-28-2004, 06:31 PM
Sorry forgot to mention.
If I run the command /getnicks manually it updates the PHP file on my site no problem.
ianskate
02-14-2005, 10:01 PM
I get this..
* /ftp.upload: connecting (FTPsock1 to ftp.X-clusive.com file:nicks.php)
* /ftp.upload: connected (FTPsock1 to ftp.X-clusive.com file:nicks.php)
* /ftp.upload: error: computer system is for authorized users only. Individuals using this (FTPsock1 to ftp.X-clusive.com file:nicks.php)
* /ftp.upload: closing (FTPsock1 to ftp.X-clusive.com file:nicks.php)
ANyone knows how i can make it work?
I get this error as well, and I know for a fact that I am using the correct login information. I wonder if there is some special syntax needed for certain ftp's and certain websites.
Hopefully someone can help, because this hack would be great to get working :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.