Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
8 - 3 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

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.

Who's Online

655 user(s) are online (538 user(s) are browsing Support Forums)


Members: 0


Guests: 655


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits