egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

IRC Online Status Indicator

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
Thunderdome
Op


Joined: 15 Mar 2005
Posts: 187

PostPosted: Fri Oct 14, 2005 6:36 pm    Post subject: IRC Online Status Indicator Reply with quote

hello!
I dunno if you guys know www.onlinestatus.org
Well, the IRC status indicator is crap and won't work on most networks.
I want to do something similar...
So, when certain nick is online, an image is shown.
When it is offline, other image is shown.

Or something perhaps more meticulous, like when a user is online, it shows the nick currently in use by that user. When it's offline it shows "offline".

The ideia is to link from a webpage to a particular image the bot makes/selects/renames....
The second case must be in php right? Can it be done with javascript?

I think this sounds simple, but I have no ideia of how to do this in tcl.
Anyone?
thanks! Very Happy
Back to top
View user's profile Send private message
Thunderdome
Op


Joined: 15 Mar 2005
Posts: 187

PostPosted: Thu Oct 20, 2005 4:58 pm    Post subject: Reply with quote

anyone with any ideias? :\
Back to top
View user's profile Send private message
deadite66
Halfop


Joined: 30 May 2005
Posts: 74
Location: Great Yarmouth, UK

PostPosted: Fri Oct 21, 2005 1:38 am    Post subject: Reply with quote

is this the kind of thing you want http://www.egghelp.org/cgi-bin/tcl_archive.tcl?mode=download&id=1061

Write Channel Nicklist 2 File
Will write all the current users on your channel to a txt file. It keeps users status such as opped and voiced users. There is an example irc_stats.php file included that will list the users from the stored nicklist.txt file and will also count how many are online.
Back to top
View user's profile Send private message
Thunderdome
Op


Joined: 15 Mar 2005
Posts: 187

PostPosted: Fri Oct 21, 2005 5:22 am    Post subject: Reply with quote

Yes, I've seen that... but the problem is making a javascript to put just one of the nicknames in a part of the site as online or offline.
Like in that onlinestatus.org site...
Have an ideia how to do it?
Back to top
View user's profile Send private message
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Sat Oct 22, 2005 8:04 am    Post subject: Reply with quote

I dont see any javascript used on onlinestatus.org for displaying the status. its just a plain picture tunneled through a script, which could be php, but does not neccessary to be so. Can be almost any other scripting language or libary/plugin that suppports file reading and binary data output.
The script probably is build in this structure:
- reading the status request from the URL string
- checking the status against the database (which can also be a text file)
- opening a image file representing the users status and dump it to the user agent

I would not recommend JavaScript, since it would need to read the whole datebase. If you do this you should ensure the datebase wont exceed a limit, so the file trasnfer size doesnt go above a few kilobytes (if compression is active the actuall size might be bigger).

PS: even the official web status from ICQ works that way Very Happy. the only diffrent is, that its not using a script but a compiled libary Very Happy
_________________
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Back to top
View user's profile Send private message MSN Messenger
Thunderdome
Op


Joined: 15 Mar 2005
Posts: 187

PostPosted: Sat Oct 22, 2005 10:39 am    Post subject: Reply with quote

I said javascript because I don't use php in the page where I want the online status.

The ideia is to get just the online status from 1 single nick from one channel whcih at most gets 10 people.
I can use that script to create a filelist of all #channel users, but I dunno how to use javascript to reads the file and select a user, and then make it so an image or something is added if the user is found. In javascript this is way over what I can do.

So I was wondering if there is a way to do this in tcl. The bot sees a nick and then published some .js file that contains info to show up some picture, or another to show another pictrue in case that nick is not there. get my ideia?
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber