$member_handler = xoops_gethandler('member');
$criteria = new CriteriaCompo(new Criteria('level', '0', '>'));
$criteria->setSort('RAND()');
$criteria->setLimit(10);
$users = $member_handler->getUserList($criteria);
foreach ($users as $uid => $uname) {
echo "<a href='".XOOPS_URL."/userinfo.php?uid=".$uid."'>".$uname."</a><br />";
}
mjoel wrote:
i've successfully add these to the block
hits in new & random
date in top & random
and now still trying to figure out on how to add
- submitter, # of comments (in new,top & random videos block)
McDonald wrote:
2. You have to extract these from the database table xoopstube_videos with the SELECT command and add them to the array in the blocks-file. After this you've to mod the html-templates.