ich habe die pjirc Chat Mod.
Ich habe meinen Channel bei afterworkchat.de und würde nun gerne dieses Add On zur Anzeige der User einbauen. Soweit ist alles geschafft, aber wenn ich diesen Code einfüge:
Code: Alles auswählen
//
// 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 {
if ( $listfile = @fopen("http://www.afterworkchat.net/status/user_ison.php?m=js&c=Comuse.org", "r") ) {
$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;
}
Benutzer im Chat: 1
document.write('@miniluke'),
wie bekomme ich ein
<script src=></script>
vor den Link:
"http://www.afterworkchat.net/status/use ... Comuse.org"
ohne das der Code kaputt geht und es dann richtig angezeigt wird?