| Re: User Amount |
| by bream on 2003/10/29 19:40:50 I have tried this lykos module, but there is some stuff init that i dont want to display. |
| Re: User Amount |
| by ajaxbr on 2003/10/29 13:08:14 There you go, Lykos Blocks then :) |
| Re: User Amount |
| by lykoszine on 2003/10/29 5:56:55 Lykos Blocks has this info. Check it out on lykoszine.co.uk |
| Re: User Amount |
| by ajaxbr on 2003/10/29 1:05:15 If you have the Members module instaled, you get the number of members in its main page. If you go to the template section, you'll see this info comes from <{$lang_totalusers}>. I'm trying to put that info in a block but I'm failing miserably. I guess in the end the only way to do that is either by a big hack in Members module or by using it to create a new module with a dummy block displaying <{$lang_totalusers}> or $total. I believe this is the important part of Members' index.php: $member_handler =& xoops_gethandler('member'); $total = $member_handler->getUserCount(new Criteria('level', 0, '>')); $xoopsTpl->assign('lang_totalusers', sprintf(_MM_TOTALUSERS, '<span style="color:#ff0000;">'.$total.'</span>'));. I hope we can get thru this and end a bit wiser... either by getting to know how to do that or by learning to leave code to people that can code
|
| Re: User Amount |
| by Hober on 2003/10/29 0:01:19 I'm looking at it some more, and I've revised my opinion to: ![]() I would suggest waiting for some bigwig with a more in depth knowledge of XOOPS to come along and explain how XOOPS stores, retrieves, updates etc. A user's post count. I must admit that I'm now a little curious myself.
|