Er is een file bij genaamd whosonline.php die in dezelfde map moet waar de template files in staan, en waar je net als in het config.php file de database gegevens in moet vullen:
Dat whosonline.php file ziet er zo uit:
Code: Selecteer alles
?>
<?
// The following information must be edited before installing.
$DATABASE['HOST'] = "localhost"; // Your database host
$DATABASE['USER'] = "********"; // Your database username
$DATABASE['PASS'] = "********"; // Your database password
$DATABASE['DATABASE'] = "********"; // Your database name
$DATABASE['TYPE'] = "mysql"; // Database type. Must be mysql
$SERVER['NAME'] = "Chatbox"; // A short name for your server (less then 10 letters)
$SERVER['TBL_PREFIX'] = "X7Chat_"; // Your database table prefix
$SERVER['PATH'] = "/"; // Use default unless you have cookie problems
$SERVER['LANGUAGE'] = "dutch"; // Choices: english, dutch, german, spanish, norwegian, french
$SERVER['AUTH'] = "md5"; // Choices: plain, md5 (this CANNOT be changed after install)
if(!isset($donotincluebase)){
@require("base.php");
}
?>
Code: Selecteer alles
<?include_once("whosonline.php");list_members(", ");?>
<?include_once("whosonline.php");list_members(", ");?>
Ed