ich habe mal die Debug-Funktion angeschaltet und da hagelte es bei mir einige Fehlermeldungen, welche ich gern beheben würde, aber leider nicht so "eingearbeitet" bin, dass ich wüsste wo ich anfangen müsste:
Ich habe den AFK-Manager eingebaut mit ein paar kleinen Änderungen. Ich weiß, ich muss limit, staart und num_afkstatus definieren, aber wie weiß ich leider nicht.[phpBB Debug] PHP Notice: in file [ROOT]/index.php on line 164: Undefined variable: limit
[phpBB Debug] PHP Notice: in file [ROOT]/index.php on line 164: Undefined variable: start
[phpBB Debug] PHP Notice: in file [ROOT]/index.php on line 170: Undefined variable: limit
[phpBB Debug] PHP Notice: in file [ROOT]/index.php on line 170: Undefined variable: start
[phpBB Debug] PHP Notice: in file [ROOT]/index.php on line 170: Undefined variable: limit
[phpBB Debug] PHP Notice: in file [ROOT]/index.php on line 170: Undefined variable: start
[phpBB Debug] PHP Notice: in file [ROOT]/index.php on line 170: Undefined variable: limit
[phpBB Debug] PHP Notice: in file [ROOT]/index.php on line 170: Undefined variable: start
[phpBB Debug] PHP Notice: in file [ROOT]/index.php on line 170: Undefined variable: limit
[phpBB Debug] PHP Notice: in file [ROOT]/index.php on line 170: Undefined variable: start
[phpBB Debug] PHP Notice: in file [ROOT]/index.php on line 170: Undefined variable: limit
[phpBB Debug] PHP Notice: in file [ROOT]/index.php on line 170: Undefined variable: start
[phpBB Debug] PHP Notice: in file [ROOT]/index.php on line 170: Undefined variable: limit
[phpBB Debug] PHP Notice: in file [ROOT]/index.php on line 170: Undefined variable: start
[phpBB Debug] PHP Notice: in file [ROOT]/index.php on line 170: Undefined variable: limit
[phpBB Debug] PHP Notice: in file [ROOT]/index.php on line 170: Undefined variable: start
[phpBB Debug] PHP Notice: in file [ROOT]/index.php on line 170: Undefined variable: limit
[phpBB Debug] PHP Notice: in file [ROOT]/index.php on line 170: Undefined variable: start
[phpBB Debug] PHP Notice: in file [ROOT]/index.php on line 170: Undefined variable: limit
[phpBB Debug] PHP Notice: in file [ROOT]/index.php on line 170: Undefined variable: start
[phpBB Debug] PHP Notice: in file [ROOT]/index.php on line 170: Undefined variable: limit
[phpBB Debug] PHP Notice: in file [ROOT]/index.php on line 170: Undefined variable: start
[phpBB Debug] PHP Notice: in file [ROOT]/index.php on line 170: Undefined variable: limit
[phpBB Debug] PHP Notice: in file [ROOT]/index.php on line 170: Undefined variable: start
[phpBB Debug] PHP Notice: in file [ROOT]/index.php on line 170: Undefined variable: limit
[phpBB Debug] PHP Notice: in file [ROOT]/index.php on line 170: Undefined variable: start
[phpBB Debug] PHP Notice: in file [ROOT]/index.php on line 170: Undefined variable: limit
[phpBB Debug] PHP Notice: in file [ROOT]/index.php on line 170: Undefined variable: start
[phpBB Debug] PHP Notice: in file [ROOT]/index.php on line 170: Undefined variable: limit
[phpBB Debug] PHP Notice: in file [ROOT]/index.php on line 170: Undefined variable: start
[phpBB Debug] PHP Notice: in file [ROOT]/index.php on line 179: Undefined index: num_afkstatus
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4837: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3872)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4839: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3872)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4840: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3872)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4841: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3872)
Mein Einbau in der index.php ist:
Code: Alles auswählen
// AFK Manager
if (isset($config['afkmanager_afk_autoafk']))
{
global $cache;
$cache->purge();
if ($config['afkmanager_afk_autoafk'])
{
$check_time = (int) gmdate('mdY',time() + (3600 * ($config['board_timezone'] + $config['board_dst'])));
if ( $config['afkmanager_afk_autoafk_check'] != $check_time)
{
if (!function_exists('afkmanager_autoafk_users'))
{
include($phpbb_root_path . 'includes/functions_afkmanager.' . $phpEx);
}
afkmanager_autoafk_users();
set_config('afkmanager_afk_autoafk_check', $check_time);
}
}
}
$sql = 'SELECT username, user_afkstatus, user_id
FROM ' . $table_prefix . 'users
WHERE user_afkstatus = 1
ORDER BY username ASC';
//$result = $db->sql_query($sql);
$result = $db->sql_query_limit($sql, $limit, $start);
//echo $config['afkmanager_afk_posting_enable'];
//while ($row = $db->sql_fetchrow($result))
while($row = $db->sql_fetchrow($result, $limit, $start))
{
$template->assign_block_vars('afkers', array(
'AFKER_ID' => $row['user_id'],
'AFKER_LINK' => append_sid('memberlist.php?mode=viewprofile&u=' . $row['user_id']),
'AFKER_NAME' => $row['username'],
'AFKER_STATUS' => $row['user_afkstatus'],
));
}
$total_afkstatus = $config['num_afkstatus'];
// AFK Manager