Forum OpenACS Q&A: community members

Collapse
Posted by eduardo molina on
hi.. i am new to OPEN ACS

i wanted to know how to put the number of community members, just like this page shows on top
10068 community members, 1 member online..

where can i find the name of the variable?

a friend of mine developed the site.. and now i am doing some updates

thank you!

Collapse
2: Re: community members (response to 1)
Posted by Daniël Mantione on
In the site-master.tcl put:
db_1row member_count {
  SELECT count(*) AS member_count
  FROM registered_users
}
In site-master.adp then put @member_count@ in the HTML wherever your prefer it.
Collapse
3: Re: community members (response to 1)
Posted by Demon Cypher on
set num_users_online [lc_numeric [whos_online::num_users]]

this will give you the no.of online users.

Collapse
4: Re: Re: community members (response to 2)
Posted by eduardo molina on
hey daniel

THANKS ALOT.. it worked perfect..

nice!

best,
eduardo