PDA

View Full Version : Current IRC chatters on forumhome via mirc (no eggdrop)


supreemball
24 Dec 2002, 00:05
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
24 Dec 2002, 00:13
Awesome, I hope it is one I can get installed then actually working ;)

/me clicks install for now :p

Velocd
24 Dec 2002, 00:25
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
24 Dec 2002, 00:29
no, but it will eventually be uploaded when you run the "/getnicks" command in mirc.

GoTTi
24 Dec 2002, 05:27
* /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
24 Dec 2002, 05:46
Go eye :D

supreemball
24 Dec 2002, 07:36
ftp.SITE.com doesn't seem to be a valid url. :)

GoTTi
24 Dec 2002, 07:58
???

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
24 Dec 2002, 15:00
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
24 Dec 2002, 16:53
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
24 Dec 2002, 18:28
thats what i was thinking xiphod....

GoTTi
24 Dec 2002, 18:39
is there a way to put a delay in the script?

Velocd
24 Dec 2002, 18:49
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
24 Dec 2002, 19:59
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
24 Dec 2002, 20:38
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
24 Dec 2002, 21:07
heh, not that i know of.. that's probably why i didn't use commas in the first place :)

Velocd
24 Dec 2002, 21:17
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
24 Dec 2002, 22:16
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
25 Dec 2002, 00:20
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
25 Dec 2002, 00:20
Originally posted by Schorsch
EDIT: it doesn't show the % of halfops. How can I change that ?

% of halfops? what do you mean?

Schorsch
25 Dec 2002, 00:56
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
25 Dec 2002, 09:42
Did anybody find a solution for the problem where the login msg makes it error and not log in ?

Floris
25 Dec 2002, 09:45
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.

Keta
25 Dec 2002, 16:52
nice hack will use :)

andrew67
26 Dec 2002, 02:35
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
26 Dec 2002, 04:50
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
26 Dec 2002, 06:47
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
26 Dec 2002, 08:25
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
26 Dec 2002, 10:31
Very nice hack! Thank you!!

Velocd
26 Dec 2002, 16:10
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
26 Dec 2002, 16:13
any advice about this half op thing ?

regards,
Schorsch

GoTTi
26 Dec 2002, 23:07
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
27 Dec 2002, 00:44
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
27 Dec 2002, 02:56
Awesome, sounds keen supreemball ;)

Davey
27 Dec 2002, 13:25
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
27 Dec 2002, 22:42
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
27 Dec 2002, 22:57
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
29 Dec 2002, 17:50
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
31 Dec 2002, 04:29
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
02 Jan 2003, 09:34
Did anyone make a "most ever online" for this chat system ?? That would be great.

PsychoticManiac
02 Jan 2003, 13:34
Really good hack m8 !! Thanks alot!

TheVoidz
02 Jan 2003, 13:39
@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
02 Jan 2003, 16:30
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
02 Jan 2003, 20:48
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="http://www.vbulletin.org/forum/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
02 Jan 2003, 22:20
Thanks TheVoidz work great

Hack installed succeffully

supreemball
02 Jan 2003, 23:27
thanks guys :)

enjoy the new update, added all previously requested features :)

GoTTi
03 Jan 2003, 02:45
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
03 Jan 2003, 08:44
Thx guys but i miss the record time and record date by the record user. Is it posible to add this ?

supreemball
03 Jan 2003, 13:15
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
03 Jan 2003, 15:34
thanks for the update supreemball :)

ariaforums
03 Jan 2003, 17:03
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
03 Jan 2003, 18:49
;==[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
03 Jan 2003, 21:30
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
03 Jan 2003, 22:22
use ' instead of " on the font color= statements. that should fix it.

ariaforums
03 Jan 2003, 23:02
Could you elaborate :)
Im tired and not thinking straight :)

TheVoidz
04 Jan 2003, 02:50
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
04 Jan 2003, 07:40
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
04 Jan 2003, 10:09
Thx Huron thats great

ariaforums
04 Jan 2003, 10:45
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
04 Jan 2003, 15:23
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
04 Jan 2003, 21:27
Your right DaTeX...I'm working on it now to see if I can fix it...

supreemball
05 Jan 2003, 01:06
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
08 Jan 2003, 05:10
Excellent, just noticed the update. Thanks once again SupreemBall ;)

Schorsch
09 Jan 2003, 11:32
I'm getting a parse error when I'm not connected to my channel!!! what the heck is that ??

thanks,
Schorsch

SaM please help
11 Jan 2003, 03:28
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
12 Jan 2003, 19:06
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 ;)

snyx
15 Jan 2003, 07:50
got it working, but do you have to run /getnicks everytime you want it to update the users in the room?

XrayHead
16 Jan 2003, 22:19
Nice hack mate.

w596
18 Jan 2003, 06:53
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
18 Jan 2003, 15:28
hmmm tell me what error you get

supreemball
18 Jan 2003, 19:56
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.

w596
18 Jan 2003, 20:35
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
19 Jan 2003, 02:37
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
19 Jan 2003, 02:39
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
19 Jan 2003, 02:48
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.

w596
19 Jan 2003, 03:06
You can try TheVoidz method

http://www.vbulletin.org/forum/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
19 Jan 2003, 03:13
Originally posted by w596
You can try TheVoidz method

http://www.vbulletin.org/forum/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
19 Jan 2003, 03:26
Is there a way to delay the script to login? Maybe wait 3 seconds.

zajako
19 Jan 2003, 21:06
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
21 Jan 2003, 15:06
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
21 Jan 2003, 15:35
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
29 Jan 2003, 13:50
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
29 Jan 2003, 13:52
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)

w596
29 Jan 2003, 21:06
Athmo, your attached file is 0 bytes. :confused:

Athmo
30 Jan 2003, 12:21
Thanks for the warning.

Corrected the attachment in my previous post.

lifesourcerec
10 Feb 2003, 19:56
Going to try to install this tonight

lifesourcerec
11 Feb 2003, 02:18
Works like a charm. Thanks a million :)

Funkie
20 Feb 2003, 09:01
Woot Woot got it working:)

Thanx for all you guys that put the work into this lill mod:)

Beanyhead
21 Feb 2003, 21:09
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
09 Mar 2003, 15:19
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
01 Apr 2003, 09:01
Great hack, this hack has all I had in mind. /click installs

Intex
01 Apr 2003, 16:39
/me 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
01 Apr 2003, 19:50
Worked fine right out of the box for Version 2.3.0 - Thanks!

iggy123
13 Jun 2003, 16:17
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
16 Jun 2003, 22:18
Never mind found out myself

iggy123
28 Jun 2003, 12:09
Is there anyway of making it show the last time it updated on the forum front page

airaffair
13 Sep 2003, 08:54
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
08 Nov 2003, 18:10
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
17 Dec 2003, 12:19
Is there any way to make it show how long the nicks have been idle?

bigk
09 Jan 2004, 22:04
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
11 Mar 2004, 22:26
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
25 Mar 2004, 04:46
I am getting this error on IRC

-
IRCREFRESH Unknown command
-
* Timer 1 activated
-
* Timer 1 halted
-
IRCREFRESH Unknown command

Mike11212
27 Mar 2004, 00:52
Anyone?

XrayHead
28 Mar 2004, 19:29
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 doesn’t 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
28 Mar 2004, 19:31
Sorry forgot to mention.
If I run the command /getnicks manually it updates the PHP file on my site no problem.

ianskate
14 Feb 2005, 23:01
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 :)