Register   Login
     
  Categories  
  Archive  
  Authors  
16

Users Online Issues

There has been some confusion lately about the Users Online module; I think this is due to a combination of issues:-

  • Influx of additional users (the module now installs as default since DotNetNuke 3.1.1)
  • The module is not as intuitive as it could be (see the “can’t you make it easier?” section below).

Example issues include:-

  • People Online section always reports 0 online users”
  • “The Online Now section never lists anyone”

There are a couple of steps that you need to do before the module will function correctly. The steps involve setting some host options (you will only need to configure them once for your entire installation).

Configuring Users Online

The “Users Online” module works on a background thread (via the scheduler) to add and expire users from the users online list. The scheduled job should exist in your installation, but it is disabled by default.

To enable the scheduled job:-

  • Login to your portal as a Super User account (e.g. host)
  • Navigate to Host -> Schedule
  • Edit the “DotNetNuke.Entities.Users.PurgeUsersOnline, DOTNETNUKE” job (click the pencil)
  • Check “Scheduled Enabled”
  • Click Update

Now that you have configured the scheduled job, your users should begin to process background users. The problem is that there is an additional host setting you must set before this can occur.

To enable users online:-

  • Login to your portal as a Super User account (e.g. host)
  • Navigate to Host -> Host Settings
  • Expand “Advanced Settings”
  • Expand “Other Settings”
  • Uncheck “Disable Users Online”
  • Click Update

You should now see your users online count increment, updates occur each time the  schedule job runs (by default, 1 minute). A follow up article will be written to show the technical implementation of Users Online and why it operates like this.

Can’t you make it easier?

Sure we can and we will! The additional configuration for Users Online has evolved throughout the history of its implementation; let’s walk down memory lane to find out why we need these additional configuration steps…

Memory Lane

Development for Users Online began for DotNetNuke 2.x, I had developed the prototype in 1.x and it existed as a core hack. In fact, here is the link to the core hack (for DotNetNuke 1.0.10d).

When development began for DotNetNuke 2.x, it was decided to integrate the Users Online functionality into the core. The integration involved three sections:-

  • A section of functionality that would process user requests and stack them up for process by the background job
  • The background job that would add and expire online users
  • The module that would display the user online information (this was not installed by default, but distributed as a private assembly with the core)

Since the module part was not installed by default, there needed to be a mechanism of disabling the integrated core work so that no additional load would be generated. This is the reason for the “disable users online” host setting.

At a later stage (DotNetNuke 2.1.2), the scheduler was introduced to run background tasks. The background job was moved from a hard coded event to use the new scheduler functionality. This job was then set to be disabled by default. This is the reason for enabling the PurgeUsersOnline job.

Back to Reality

Fast forward to DotNetNuke 3.1.1 and these configuration options still exist. The options should remain, but there is some additional functionality we can add to the module configuration to make it easier for new users. These options include:-

  • Not allowing the user to show the “People Online” or the “Online Now” section if the host settings are disabled.
  • Providing an option in the settings section of the module (to Super Users only) that will enable both host settings (the host setting and the scheduler job).

These enhancements will be among the first to be implemented as part of Users Online Sub-Project.

Get Involved!

  • Do you want to participate in the DotNetNuke project?
  • Do you want implement new enhancements for the Users Online project?  (register your interest in this thread)
  • Do you have new ideas for the Users Online module? (register your ideas in this thread)

Important Links

Posted in: DotNetNuke

Post Rating

Comments

Scott McCulloch
# Scott McCulloch
Wednesday, October 12, 2005 5:33 AM
Test Comment
mario gandasegui
# mario gandasegui
Sunday, October 16, 2005 10:38 AM
testing comment, just to check the comment capability
Anonymous User
# Anonymous User
Sunday, October 16, 2005 10:39 AM
testing as anonymous
Neil Hetzel
# Neil Hetzel
Sunday, October 16, 2005 9:34 PM
Testing
Daniel Gilleland
# Daniel Gilleland
Tuesday, November 15, 2005 10:18 AM
My, but many of the comments here are "testy" ;)
Anonymous User
# Anonymous User
Friday, February 24, 2006 12:53 AM
Hey! Great article. Do you know if there is a way to schedule the logon capability? I mean: Administrator can log-in just in scheduled time (job hours).
GlenWin
# GlenWin
Tuesday, September 02, 2008 3:21 AM
i like this template !
ASD
# ASD
Thursday, October 02, 2008 12:23 AM
In DNN 4.8.4 this module showed Online Now users. But when I've installed DNN 4.9 It does not.
ASP.NET programmer
Wednesday, October 15, 2008 12:35 AM
Good article. It helped me to understand how it works inside without digging into code. Thanks!
Adam Cox
Tuesday, December 16, 2008 3:47 PM
At least include some help/comment/hint in the module letting users know how to enable it. Appreciate it. ;)
TestShoot
# TestShoot
Monday, February 16, 2009 7:02 PM
It does not work in 4.9.x regardless of editing web.config, scheduler, the checkbox in host settings or the module.
Berk
Wednesday, February 25, 2009 3:21 PM
yes, it does not work on 4.9.x... regardless...if anyone finds a solution please email me out of the kindness of your heart.

Berk
Wednesday, February 25, 2009 3:22 PM
it does not work on 4.9
mach hanh
# mach hanh
Wednesday, March 25, 2009 6:31 PM
Thanks for your information! That's good!
Ismet Dumlupinar
Sunday, October 04, 2009 11:14 PM
Looks like i have small problem with users online :(

Post Comment

Name (required)

Email (required)

Website

Enter the code shown above: