1
thkiat
exoops => xoops
  • 2005/7/2 7:36

  • thkiat

  • Just popping in

  • Posts: 22

  • Since: 2005/1/6 6


Hi, I managed to import the user db of exoops into my new XOOPS site. Anyway, I have problem with the statistic on "Who's Online" block as it shows 1 registered member instead of 1178.

Can someone tell me how can correct this problem?
Which file should I edit to change 1 to 1178?

Thanks!

2
Bender
Re: exoops => xoops
  • 2005/7/2 9:29

  • Bender

  • Home away from home

  • Posts: 1899

  • Since: 2003/3/10


Did you already add all the users to the group registered users after you imported them?

Because 1 would exactly fit the number of regulary registered ones (webmaster) after a fresh XOOPS install. :) So if you until now only imported the "xoops_users" table you would have them but they lack group memebership.
Sorry, this signature is experiencing technical difficulties. We will return you to the sheduled signature as soon as possible ...

3
thkiat
Re: exoops => xoops
  • 2005/7/2 10:32

  • thkiat

  • Just popping in

  • Posts: 22

  • Since: 2005/1/6 6


How to increase the displayed statistic of total registed members?

4
Mithrandir
Re: exoops => xoops

errr... the "Who's Online" block only shows online users. So unless all 1178 of them are online, it displays correctly.
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."

Cusix Software

5
thkiat
Re: exoops => xoops
  • 2005/7/2 14:29

  • thkiat

  • Just popping in

  • Posts: 22

  • Since: 2005/1/6 6


What I want to show is the total registered members which is 1178, not total online member.
Anyway, it is shown under the Who's Online block.

Currently my Who's Online block is showing 2 registered member only after I transferred my user db from exoops. I want to change it to 1178.

Please help!

6
jdseymour
Re: exoops => xoops

xm-memberstats has this feature, I believe that the who's online block only shows actual users online. See the left column on this site.

7
m0nty
Re: exoops => xoops
  • 2005/7/2 17:53

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


the 2 registered members means that there are 2 registered members that ARE online. it's not a count of how many members there actually are..

as in there are 2 registered members out of 1178 that are online..

you could do it with a hack tho.. or as jd suggested use xmemberstats.

8
m0nty
Re: exoops => xoops
  • 2005/7/2 19:34

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


if you want the online users block to show the total amount of members registered..

it depends how u want it to display.

you could have it saying, there are a total of 1178 users in total.

or simply, where it says members: x (amt online)

u can have it as members: online / total online

ie members: 10 / 1178

just edit modules/system/blocks/system_blocks.php

find on line 53

$onlines =& $online_handler->getAll();


add just above that line:

$member_handler =& xoops_gethandler('member');
$usertotal $member_handler->getUserCount(new Criteria('level'0'>'));


then find on line 80 or thereabouts:

$block['online_members'] = $total $guests;


and replace with

$block['online_members'] = $total $guests' / ' .$usertotal;


that will then display as members: x online / total members


if you want the 1st method, of using text.. ie, there are a total of 1178 members.

you would need to add something like

$block['lang_usertotal'] = 'There are '.$usertotal.' registered members in total';


but then you would also need to add <{lang_usertotal}> to the template where you want it to appear.

so the 1st method is a lot easier

Login

Who's Online

514 user(s) are online (375 user(s) are browsing Support Forums)


Members: 0


Guests: 514


more...

Donat-O-Meter

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

Latest GitHub Commits