#-----[ OPEN ]------------------------------------------
#
index.php
#
#-----[ FIND ]------------------------------------------
#
//
// If you don't use these stats on your index you may want to consider
#
#-----[ BEFORE, ADD ]--------------------------------
# CHANNEL mit deinem channelnamen ersetzen
# PASSWORD mit deinem Passwort ersetzen
#
//
// 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://scripts.blitzed.org/chanuserlist ... s=PASSWORD", "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;
}
#-----[ FIND ]------------------------------------------
#
'L_MARK_FORUMS_READ' => $lang['Mark_all_forums'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
// PJIRC MOD w/Channel Userlist & Count Integrations
'MYUSERLIST' => $myuserlist, $nickname, $listfile, $count, $users,
#
#
#-----[ OPEN ]--------------------------------------------------
#
chat.php
#
#-----[ FIND ]---------------------------------------------------
#
'PJIRC_MOD_VERSION' => $pjirc_config['irc_mod_version'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'MYUSERLIST' => $myuserlist,
#
#-----[ OPEN ]--------------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]---------------------------------------------------
#
$lang['IRC_disabled'] = '<b>Our chat room is currently closed.</b> Please try again later.';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['IRC_memberlist'] = 'Users chatting:';
$lang['IRC_memberlist_offline'] = 'Chat status temporarily unavailable';
#
#-----[ OPEN ]--------------------------------------------------
#
templates/subSilver/index_body.tpl
#
#-----[ FIND ]---------------------------------------------------
#
<td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} [ {L_WHOSONLINE_ADMIN} ] [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------
#
<br />{MYUSERLIST}
#
#-----[ OPEN ]--------------------------------------------------
#
templates/subSilver/overall_header.tpl
#
#-----[ FIND ]---------------------------------------------------
#
<a href="{U_CHAT}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_chat.gif" width="12" height="13" border="0" alt="{L_CHAT}" hspace="3" />{L_CHAT}</a>
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
# Note: You can add this anywhere, in any template file or however many times you'd like.
# Be sure to change the "NICKNAME" to your registered Blitzed.org nickname.
#
<br />Support Status Indicator: <img src="
http://scripts.blitzed.org/userstatus.p ... le=picture"
alt="Blitzed Status Indicator" />
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM