ich habe bei mir im Forum den PJIRC Chat Mod 3.1.2a eingebaut und dazu auch den Statistik Teil, der mir anzeigt wieviele und wer gerade anwesend ist im Chat.
Der Chat funktioniert, aber die Anzeige noch nicht richtig.
1. Wird immer 1 User ist online angezeigt, egal ob 0, 1 oder 5 online sind.
die Anzeige wer online ist, ist korrekt.
2. Stehen die Namen wer im Chat ist untereinander und nicht neben einander. Hätte es aber lieber neben einander. Wie kann ich das ändern.
Zu 1. ich habe meinen Channel bei insiderz.de aufgemacht. Daher stimmt das Script ja nich 100 %
Die interessante Passage ist ja wahrscheinlich diese hier.
Code: Alles auswählen
#-----[ OPEN ]------------------------------------------
#
index.php
#
#-----[ FIND ]------------------------------------------
#
//
// If you don't use these stats on your index you may want to consider
#
#-----[ BEFORE, ADD ]--------------------------------
#
# Notes: You need to edit the "CHANNEL" and "PASSWORD" to retrieve those stats from Blitzed.org.
# (both must be lowercase)
# It is required that you register for this feature at Blitzed.org before you can use it.
# Go here to register it: http://www.blitzed.org/scripts/chanuserlist/register.phtml
# Do not use the "#" symbol before your channel name when editing.
# You must CHMOD 777 your cache folder in order for this script to work!
#
# Example: if ( $listfile = @fopen("http://blitzed.org/scripts/chanuserlist/?channel=%23midnightz&pass=something", "r") ) {
#
//
// Begin PJIRC Channel Userlist & Count Integrations
//
$cachefile = 'cache/blitzedlist.html';
$cachetime = 1 * 60;
// Use cache if younger than $cachetime
if ( file_exists($cachefile) && time() - $cachetime < filemtime($cachefile) ) {
$listfile = @fopen($phpbb_root_path.$cachefile, "r");
$users = "";
$count = 0;
while ($nickname = fgets($listfile)) {
$users .= trim($nickname) . ", ";
$count++;
}
$thingydingy = 1;
}
else {
[quote] if ( $listfile = @fopen("http://blitzed.org/scripts/chanuserlist/?channel=%23CHANNEL&pass=PASSWORD", "r") ) { [/quote]
$users = "";
$fullfile = "";
$count = 0;
while ($nickname = fgets($listfile)) {
$users .= trim($nickname) . ", ";
$fullfile .= $nickname;
$count++;
}
// Cache the output to file
$fp = fopen($phpbb_root_path.$cachefile, 'w');
fwrite($fp, $fullfile);
fclose($fp);
$thingydingy = 1;
} else {
$myuserlist = $lang['IRC_memberlist_offline'];
$nickname = "";
$listfile = "";
$count = 0;
$users = "";
$thingydingy = 0;
}
}
if ( $thingydingy == 1 ) {
// Remove , from end
$users = ereg_replace(', $', "", $users);
$myuserlist = $lang['IRC_memberlist']." <b>$count</b><br />\n$users";
$myuserlist;
}
den Teil habe ich abgeändert auf insiderz.de und der scheint ja zu funtkionieren, sonst würden ja die namen nicht angezeigt werden oder?if ( $listfile = @fopen("http://blitzed.org/scripts/chanuserlist ... s=PASSWORD", "r") ) {
Aber den oberen Teil weiss ich nicht wie ich den ändern soll. Also damit er richtig zählt wieviele online sind.
Hoffe es kann mir jemand helfen.
Zum Anschauen hier:
http://www.aqua-aquaristik.de/Forum
Zum testen habe ich einen Account erstellt.
User : chattester
Passwort: chattester
Gruß
Matthias