1
hi guys.. i would like to display my total members in who is online block... i has applied this code...
Quote:
$result = $xoopsDB->query("SELECT count(uid) FROM ".$xoopsDB->prefix("users")." WHERE level='1'");
list($numbers) = $xoopsDB->fetchRow($result);
$block['total_members'] = &numbers;
where i put it in system_blocks.php
then i edit the block template...
it doesn't work in XOOPS 2.0.7.3.. but i tested in XOOPS 2.0.6 it's work...
any one can help me?