Verfasst: 14.07.2004 10:13
überprüfe nochmal alle änderungen und zeig uns die index.php und die index_body.tpl als link.
ah
ah
phpBB.de - Die deutsche phpBB-Community
https://www.phpbb.de/community/
gerne doch:saerdnaer hat geschrieben:überprüfe nochmal alle änderungen und zeig uns die index.php und die index_body.tpl als link.
ah
Code: Alles auswählen
include("chat/header.inc.php");
include("chat/config.inc.php");
include("chat/functions.inc.php");
$room_id=1;
//
// Start Chat online
//
$chat_text = '';
// Show total users count
$chat_text .= "There are ".users_total()." users in chat.";
// Show users count in one room
$chat_text .= "There are ".users_count($room_id)." users in chat room ".pcpin_nice_room($room_id).".";
// Read usernames from one room into array $one_room
$q=mysql_query("SELECT user from pcpin_users WHERE room = '$room_id'");
$one_room=mysql_fetch_array($q);
// Read usernames from whole chat into array $whole_chat
$q=mysql_query("SELECT user from pcpin_users");
$whole_chat=mysql_fetch_array($q);
// Show names in one room
IF(count($one_room)){
FOR($i=0;$i<count($one_room);$i++){
$chat_text .= $one_room[$i]." ";
}
}ELSE{
$chat_text .= "No users found";
}
// Show names in whole chat
IF(count($whole_chat)){
FOR($i=0;$i<count($whole_chat);$i++){
$chat_text .= $whole_chat[$i]." ";
}
}ELSE{
$chat_text .= "No users found";
}
//
// End Chat-Online
//
Code: Alles auswählen
include("chat/header.inc.php");
include("chat/config.inc.php");
include("chat/functions.inc.php");
$room_id=1;
Code: Alles auswählen
//
// Start output of page
//
define('SHOW_ONLINE', true);
$page_title = $lang['Index'];
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
$template->set_filenames(array(
'body' => 'index_body.tpl')
);
Code: Alles auswählen
//
// Start Chat online
//
include("chat/header.inc.php");
include("chat/config.inc.php");
include("chat/functions.inc.php");
$chat_text = '';
// Show total users count
$users_total = users_total();
if ( $users_total == 0 )
{
$chat_text .= "Momentan sind keine Benutzer im Chat.";
}
else
{
if ( $users_total == 1 )
{
$chat_text .= "Momentan ist ein Benutzer im Chat: ";
}
else
{
$chat_text .= "Momentan sind $users_total Benutzer im Chat: ";
}
$q=mysql_query("SELECT user from pcpin_users");
if ( $row = mysql_fetch_array($q) )
{
$chat_text .= $row['user'];
while ( $row = mysql_fetch_array($q) )
{
$chat_text .= ', ' . $row['user'];
}
}
}
//
// End Chat-Online
//