| View previous topic :: View next topic |
| Author |
Message |
Elrahc Voice
Joined: 03 Feb 2007 Posts: 1
|
Posted: Mon Feb 05, 2007 5:59 pm Post subject: Display number of users in channel on EXISTING webpage |
|
|
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 |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Tue Feb 06, 2007 1:07 am Post subject: |
|
|
put this in your config:
| Code: |
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] tag when posting logs, code |
|
| Back to top |
|
 |
|
|
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
|
|