31
Just a little bit of moving stuff around to
<Flag> <IP address> or <Username> so it won't break the column. See demo
here right column
in \membership\blocks\membership_block.php
replace
$members .= '<table class="outer" cellspacing="0"><tr><td class="even" width="40%"><a href="'.XOOPS_URL.'/userinfo.php?uid='.$onlines[$i]['online_uid'].'">'.$onlines[$i]['online_uname'].'</td><td class="odd" align="center">'.$onlineUsers[$i]['module'].'</td><td class="even" align="center" width="10%"><img src="'.XOOPS_URL.'/modules/membership/images/flags/'.$country.'.gif" alt="'.$alt.'" title="'.$alt.'"></td></tr></table>';
//if is not a user
} else {
$hostname = strtolower(gethostbyaddr($onlines[$i]['online_ip']));
$pos1 = strpos($hostname, $findbot);
$pos2 = strpos($hostname, $findsearch);
//if is bot
if ($pos1 !== false || $pos2 !== false) {
$alt = $hostname;
$guess .= '<table class="outer" cellspacing="0"><tr><td class="even" colspan="2">'.$censored.'</td><td class="odd" align="center">'.$onlineUsers[$i]['module'].'</td><td width="10%" align="center" class="odd"><img src="'.XOOPS_URL.'/modules/membership/images/bots.gif" alt="'.$alt.'" title="'.$alt.'"></td></tr></table>';
$bots++;
} else {
$guess .= '<table class="outer" cellspacing="0"><tr><td class="even" colspan="2">'.$censored.'</td><td class="odd" align="center">'.$onlineUsers[$i]['module'].'</td><td width="10%" align="center" class="odd"><img src="'.XOOPS_URL.'/modules/membership/images/flags/'.$country.'.gif" alt="'.$alt.'" title="'.$alt.'"></td></tr></table>';
}
$guests++;
with
$members .= '<table class="outer" cellspacing="0"><tr><td class="even" width="18px" align="left"><img src="'.XOOPS_URL.'/modules/membership/images/flags/'.$country.'.gif" alt="'.$alt.'" title="'.$alt.'"></td><td class="odd" align="left"><a href="'.XOOPS_URL.'/userinfo.php?uid='.$onlines[$i]['online_uid'].'">'.$onlines[$i]['online_uname'].'</td></tr></table>';
//if is not a user
} else {
$hostname = strtolower(gethostbyaddr($onlines[$i]['online_ip']));
$pos1 = strpos($hostname, $findbot);
$pos2 = strpos($hostname, $findsearch);
//if is bot
if ($pos1 !== false || $pos2 !== false) {
$alt = $hostname;
$guess .= '<table class="outer" cellspacing="0"><tr><td width="18px" align="left" class="even"><img src="'.XOOPS_URL.'/modules/membership/images/bots.gif" alt="'.$alt.'" title="'.$alt.'"></td>
<td class="odd" colspan="2">'.$censored.'</td><td class="even" align="center">'.$onlineUsers[$i]['module'].'</td></tr></table>';
$bots++;
} else {
$guess .= '<table class="outer" cellspacing="0"><tr><td width="18px" align="center" class="even"><img src="'.XOOPS_URL.'/modules/membership/images/flags/'.$country.'.gif" alt="'.$alt.'" title="'.$alt.'"></td><td class="odd" colspan="2">'.$censored.'</td></tr></table>';
}
$guests++;
www.UcChau.Net
www.XoopsViet.Org