• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Which java class of jforum calculate the totalOnlineUsers

 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, in file forum_list.htm get the number of users online call to I18n.getMessage {$ ( "ForumListing.numberOfUsersOnline" [totalOnlineUsers, totalRegisteredOnlineUsers, totalAnonymousUsers])}. Where are these variables defined , which java classc alculates the value of these variables? Can I get the number of administrators or users of the general group?
[originally posted on jforum.net by ocb]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, I have found the answer in forum, the java class is net/jforum/view/forum/ForumAction.java, but yet I dont know to get the admin user number, or the general number user, how can i get it? thanks.

Sorry for my English.
[originally posted on jforum.net by ocb]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Generating online user counts from the DB information takes a LOT of queries to determine. This slows down the page displays and scalability greatly. For this reason, these numbers are actually managed via a set of "in memory" cache Classes that are initialized on startup and updated as people come and go.

These cache objects (ForumRepository & SessionFacade) only have a limited number of stats that are tracked. The ones you mention are not available.
[originally posted on jforum.net by monroe]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay, thanks for answering
[originally posted on jforum.net by ocb]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic