21
demian
Re: Module/block which displays how many users were online today
  • 2009/2/6 12:03

  • demian

  • Quite a regular

  • Posts: 225

  • Since: 2008/4/29


thanks zyspec..btw how do i exlude more than 1 user ?

i try this

$exceptUser = 1,2;

i received syntax error



22
mjoel
Re: Module/block which displays how many users were online today
  • 2009/2/6 12:38

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


this is nice but not all user want their name to be listed in the online list for privacy reason

..core/module developer should add feature where user can select to allow him or her to be listed in the online list or not just like in the IPB system

this should be add in core IMO

Quote:

demian wrote:
hipo..you can try this

https://xoops.org/modules/repository/singlefile.php?cid=89&lid=1303

its an old module..don't know if its safe to use...

i just tried it..it works..but maybe need more some tweak to improve it
screenshot
Resized Image

hope someone can update this module


+1 agree

23
ghia
Re: Module/block which displays how many users were online today
  • 2009/2/6 13:27

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Quote:
i try this
$exceptUser 1,2;

i received syntax error
Change
$criteriaCompo->add(new Criteria('uid'$exceptUser'<>'));

to
$criteriaCompo->add(new Criteria('uid'$exceptUser'NOT IN'));
and use
$exceptUser '1, 2';

24
demian
Re: Module/block which displays how many users were online today
  • 2009/2/6 16:00

  • demian

  • Quite a regular

  • Posts: 225

  • Since: 2008/4/29


thanks ghia..but it seems its not working..cache all cleared

25
zyspec
Re: Module/block which displays how many users were online today
  • 2009/2/6 16:42

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


demian,

Are you sure you typed the $exceptuser line exactly as ghia shows? Note the single quote (') around the values.

Login

Who's Online

246 user(s) are online (168 user(s) are browsing Support Forums)


Members: 0


Guests: 246


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits