This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Display number of users in channel on EXISTING webpage

General support and discussion of Eggdrop bots.
Post Reply
E
Elrahc
Voice
Posts: 1
Joined: Sat Feb 03, 2007 3:55 am

Display number of users in channel on EXISTING webpage

Post by Elrahc »

Hello,

I'm trying to get an idea of what to do to have the number of users in the channel be displayed in brackets behind a link to the chat toom on our website. See here for the link in the banner.

Now, what I think might work is to have a small iframe behind the link Alventyr Chat and then have it read a simple file that the eggdrop writes and uploads to my web host (I'm running the eggdrop from my machine at home, btw). So the iframe would load a simple html file, thus displaying the number of users written in it, then refresh itself every 30 seconds.

Does anyone here have any advice on how to proceed, or can someone point me in the right direction if something similar has been done before?

Thank you,

~Elrahc
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

put this in your config:

Code: Select all

bind time - * {set f [open foo w]; puts $f [llength [chanlist #chan]]; close $f;#}
every minute it will save the number of users on #chan in a file called foo
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
Post Reply