论坛是用上d4了。但是技术支持看还是得靠自己找了。
显示游戏for d4 相关修改代码如下
index.php
找到
$whosonline[] = $online;
} else {
break;
替换为
$whosonline[] = $online;
} else {$guestcount++;
$guest['username']= "游客";
$guest['icon']= "online_guest.gif";
$guest['fid'] = $online['fid'] ? $forumname[$online['fid']] : 0;
$guest['action'] = $actioncode[$online['action']];
$guest['lastactivity'] = gmdate($timeformat, $online['lastactivity'] + ($timeoffset * 3600));
$guestonline[]=$guest;
查找
$onlinenum = $db->num_rows($query);
$guestcount = $onlinenum - $membercount;
unset($online);
替换为
$onlinenum = $db->num_rows($query);
$count=count($guestonline);
for($i=0;$i<$count;$i++){
$whosonline[]=$guestonline[$i];
}
$guestcount = $onlinenum - $membercount;
unset($online);
最后自己找一个 online_guest.gif传到images/common下
Tags: Hack