aspose file tools*
The moose likes JForum and the fly likes Which java class of jforum calculate the totalOnlineUsers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JForum
Bookmark "Which java class of jforum calculate the totalOnlineUsers" Watch "Which java class of jforum calculate the totalOnlineUsers" New topic
Author

Which java class of jforum calculate the totalOnlineUsers

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
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

Joined: Apr 22, 2012
Posts: 17424
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

Joined: Apr 22, 2012
Posts: 17424
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

Joined: Apr 22, 2012
Posts: 17424
Okay, thanks for answering
[originally posted on jforum.net by ocb]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Which java class of jforum calculate the totalOnlineUsers