2006-12-03, 11:31 AM
ok im trying to install a whos online mod,.. and its throwing up an error... i know this to be becoz im using the 1.x mod version...
the problem is in line 170. which is
$onlinetoday .= $todaycomma.formatname($online['username'], $online['usergroup'], $online['displaygroup']).$invisiblemark;
to be exact.
so what is the correct php line i should be using?
im using this modification of index.php.
the problem is in line 170. which is
$onlinetoday .= $todaycomma.formatname($online['username'], $online['usergroup'], $online['displaygroup']).$invisiblemark;
to be exact.
so what is the correct php line i should be using?
im using this modification of index.php.
$todaycount = 0;
$countinv = 0;
$stime = time()-(60*60*24);
$query = $db->query("SELECT u.* FROM ".TABLE_PREFIX."users u LEFT JOIN ".TABLE_PREFIX."usergroups g ON (g.gid=u.usergroup) WHERE u.lastactive > $stime ORDER BY u.lastactive DESC");
$todaycomma = '';
$onlinetoday = '';
while($online = $db->fetch_array($query))
{
if($online['invisible'] != "yes" || $mybb->usergroup['canviewwolinvis'] == "yes")
{
if($online['invisible'] == "yes")
{
$invisiblemark = "*";
$countinv++;
}
else
{
$invisiblemark = "";
}
$todaycount++;
$onlinetoday .= $todaycomma.formatname($online['username'], $online['usergroup'], $online['displaygroup']).$invisiblemark;
$todaycomma = ', ';
}
}