ich habe schon seit längerer Zeit den ShowBotsInOnlineList-Mod eingebaut.
ShowBotsInOnlineList_150_stable
Alles funktioniert hervorragend, bis auf den Punkt, das im ACP die Bots als Gäste angezeigt werden. Auch das übertragen des Codes der ./templates/xxx/viewonline_body.tpl (wo es ja funktioniert) in die ./templates/xxx/admin/index_body.tpl brachte keinen Erfolg. Hab jetzt schon ewig dran rumprobiert und alles x-fach überpüft.

Wie ich weiß, haben mehrere Leute das Problem und kurz bevor www.source-code.de zum Re-Design geschlossen wurde, präsentierte jemand eine Lösung für das Orion-Board, aber halt nicht für das PHPBB.
Zumindest konnte ich (wie ich meine zu wissen) den Fehler soweit eingrenzen, das es damit zu tun hat, das entweder die Anweisung in der ./admin/index.php (siehe Code) für die Bot-Anzeige ./templates/xxx/admin/index_body.tpl komplett ignoriert wird oder bestimmte Variablen, wie z.B. $BotStr (siehe Code) nicht "richtig" an die ./templates/xxx/admin/index_body.tpl übergeben werden *grübel. Vielleicht hat jemand eine Lösung oder dasselbe Problem. Ich wäre für jeden Tip dankbar.
Code: Alles auswählen
// start ShowBotsInOnlineList
else
{
$location_url = append_sid("admin_forums.$phpEx?mode=editforum&" . POST_FORUM_URL . "=" . $onlinerow_guest_bot[$i]['session_page']);
$location = $forum_data[$onlinerow_guest_bot[$i]['session_page']];
}
if (strlen($BotStr) > 0)
{
$row_color = ( $bots_online % 2 ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( $bots_online % 2 ) ? $theme['td_class1'] : $theme['td_class2'];
$bot_ip = decode_ip($onlinerow_guest_bot[$i]['session_ip']);
$bot = $onlinerow_guest_bot[$i]['UserAgent'];
$useragent = "<a title=\"$bot\" onClick=\"window.open('showuseragent.php?agent=$bot', 'UserAgent','width=750,height=10')\">#</a>";
$template->assign_block_vars("bot_row", array(
"ROW_COLOR" => "#" . $row_color,
"ROW_CLASS" => $row_class,
"USERNAME" => $BotStr,
"STARTED" => create_date($board_config['default_dateformat'], $onlinerow_guest_bot[$i]['session_start'], $board_config['board_timezone']),
"LASTUPDATE" => create_date($board_config['default_dateformat'], $onlinerow_guest_bot[$i]['session_time'], $board_config['board_timezone']),
"FORUM_LOCATION" => $location,
"IP_ADDRESS" => $bot_ip,
"SHOWUSERAGENT" => $useragent,
"U_WHOIS_IP" => "http://whois.domaintools.com/$bot_ip",
"U_FORUM_LOCATION" => append_sid($location_url))
);
}
else
{
$row_color = ( $guest_users % 2 ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( $guest_users % 2 ) ? $theme['td_class1'] : $theme['td_class2'];
$guest_ip = decode_ip($onlinerow_guest_bot[$i]['session_ip']);
$bot = $onlinerow_guest_bot[$i]['UserAgent'];
$useragent = "<a title=\"$bot\" onClick=\"window.open('showuseragent.php?agent=$bot', 'UserAgent','width=750,height=10')\">#</a>";
$template->assign_block_vars("guest_user_row", array(
"ROW_COLOR" => "#" . $row_color,
"ROW_CLASS" => $row_class,
"USERNAME" => $lang['Guest'],
"STARTED" => create_date($board_config['default_dateformat'], $onlinerow_guest_bot[$i]['session_start'], $board_config['board_timezone']),
"LASTUPDATE" => create_date($board_config['default_dateformat'], $onlinerow_guest_bot[$i]['session_time'], $board_config['board_timezone']),
"FORUM_LOCATION" => $location,
"IP_ADDRESS" => $guest_ip,
"SHOWUSERAGENT" => $useragent,
"U_WHOIS_IP" => "http://whois.domaintools.com/$guest_ip",
"U_FORUM_LOCATION" => append_sid($location_url))
);
}
}
}
// end ShowBotsInOnlineList
4seven