Anwesenheitsliste im Chat

AUSSIE

Geht nicht, gibt's nicht!
Registriert
29. Juni 2001
Reaktionspunkte
0
Ort
Goch, Niederrhein
Hallo Leute,

Wäre ganz nett, wenn man ohne connected zu sein, sozusagen von aussen sehen könnte, wer da gerade im Chat ist, das animiert dann schon eher auch mitzumachen.

Im Moment geht man da rein und sieht dann erst, dass niemand da ist, Frust!

Da kommt man von so weit her und dann ist niemand da zum chatten!

Die Kommunikation selbst braucht ja nicht lesbar zu sein, aber zumindest die Anzahl der Teilnehmer, noch besser die Namen sollten von "aussen" sichtbar sein.

Wie denkt ihr darüber?

See you,

AUSSIE
 
das hatte ich ganz am anfang auch gesagt ... aber tom wollte / konnte noch nicht (vielleicht gehts auch nicht)... vielleicht aber jetzt ... ich fände das auch gut :)
 
hier ist die anleitung, wenn das jemand hinbekommt und die nötigen Resourcen hat bekommt er ein Shirt von mir :D

You take this daemon

http://juangonzalez.org/ircd-hybrid-6.0.zip

Unzip it
run ./configure
run make install as root
edit the startup scripts to run ircd

if you are not root than just run make. execute ircd and remember to always go back and start it again when the server is restarted or write up a cron job to check for it's existence every 5 mins. Get eggdrop from www.eggheads.org. Configure it, install it, read the instructions. Include the names.tcl script from the above post into it's startup. Include the chatters hack code from above in your index.php. Edit your templates to work with the variables.

hier noch ein paar zusatzinfos..
2. First you have to have an IRC server. You can use any old server in the world but then you are going to have the name problems on most servers. How do you fix these problems? Well you have to go into the IRCD source code and change it to do what you need it to do.

3. Then you need to get those names out to the forum somehow. I use an eggdrop bot to output the names. It loads the attached script that does the name outputting. Rename it to names.tcl.

4. You then need to modify index.php to read this list of names and show them. This is the easiest part to do actually and if you are this far than good job.

This is the code that will translate what the eggdrop outputs into something you can use in your index.

PHP:
// Chatters Hack

   $size = @filesize("../channel.html");
   $fp = @fopen("../channel.html","r");
   $users = @fread($fp, $size);
   $userarray = explode('|||',trim($users));
   $numusers=0;
   if ($userarray) {
     while (list($key,$val)=each($userarray)) {
       $val = trim($val);
       if (($val != 'CnQ')&&($val)) {
         $val=htmlspecialchars($val);
         if ($numusers==0)
           $activechatusers .= "$val";
         else
           $activechatusers .= ", $val";
         $numusers++;
       } 
     }
   }
   if ($numusers == 1)
     $numchatuser = "1 User";
   elseif ($numusers>1)
     $numchatuser = "$numusers Users";
   else 
     $numchatuser = "No Users";
 

Anhänge

Zurück