1
Hi everyone!
I found everywhere in System Admin --> Blocks and I don't saw this block I want.
So, I created a PHP block and insert PHP code. This code will print Total user, Total user inactive. That code below.
global $xoopsUser,$xoopsDB;
if($xoopsUser){
$sql = "SELECT count(*) FROM ".$xoopsDB->prefix('users');
list($count) = $xoopsDB->fetchRow($xoopsDB->queryF($sql));
echo "$count Members
";
$sql = "SELECT count(*) FROM ".$xoopsDB->prefix('users')." WHERE level =0";
list($count) = $xoopsDB->fetchRow($xoopsDB->queryF($sql));
echo "$count: Inactive
";
}
Then, I want to write more code for print Total post and Total Thread. Someone can help me....