0 users online. Create an account or sign in to join them.Users

Search

I recently put up my first site powered by Symphony. It permits multiple authors to post content. I want to display the authors that are currently logged in. My login-info only shows me as logged in when I know others are logged in. Any help on this will be much appreciated.

I see that this site displays the number of users online and I assume that it is powered by Symphony.

My login-info only shows me as logged in when I know others are logged in.

The Login Info event is a custom event that comes in the default install (“workspace”) which returns the information about your own session when you’re logged-in.

Symphony hasn’t got a way of showing a list of authors who are all logged in. In fact, I don’t think it keeps track of who is logged in at all. You could potentially write this as a custom Data Source (you’ll need some PHP) which looks into your sym_authors database table and looks at the last_seen date of your authors.

I see that this site displays the number of users online and I assume that it is powered by Symphony.

While powered by Symphony, it uses a selection of customisations (mostly written as custom Data Sources) which mould and shape data to taste.

The Forum Ensemble might provide some insight into how this might be possible, but it is tracking sessions of members created using the Members extension, rather than authors created through the Symphony admin.

Thanks. I’ll look into your suggestions.

Nick, I used your suggestion on a custom data source and the last_seen field. In fact, I used your TagCloud custom DS that I picked up elsewhere in this forum as a model. I post all the users under a heading of “Most recent user activity.” I found that even when a user refreshes a page the last_seen time is updated, so it is a pretty good indicator of active users. Thanks again.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details