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.
le="color: #000000"><?php global $xoopsUser,$xoopsDB; if($xoopsUser){ $sql = "SELECT count(*) FROM ".$xoopsDB->prefix('users'); list($count) = $xoopsDB->fetchRow($xoopsDB->queryF($sql)); echo "<b>$count</b> Members <br>"; $sql = "SELECT count(*) FROM ".$xoopsDB->prefix('users')." WHERE level =0"; list($count) = $xoopsDB->fetchRow($xoopsDB->queryF($sql)); echo "<b>$count</b>: Inactive <br>"; }
Then, I want to write more code for print Total post and Total Thread. Someone can help me....