Skip to Content Skip to Menu

Online Plugin

  • mtk
  • mtk
  • OFFLINE
  • Posts: 15
  • Thanks: 0
  • Karma: 2
16 years 10 months ago #52525 by mtk
Online Plugin was created by mtk
Hi,
I've created a simple plugin that adds a field to indicate the Online Status of a profile.
This is due to the lack of Online field in the CB Lists.
(now I can filter online users)

The plugin uses the Session Events to set the value for the cb_online field.
The problem is that a user not always do a logout properly which will cause the cb_online field to remain TRUE (i.e closing the browser)

is there any way to overcome this?

Please Log in or Create an account to join the conversation.

  • beat
  • beat
  • OFFLINE
  • Posts: 2169
  • Thanks: 463
  • Karma: 352
16 years 10 months ago #52533 by beat
Replied by beat on topic Re:Online Plugin
Cool. Nice plugin. Are you planing to share it with community ?

The timeout is a joomla issue, or more precisely a general web issue.

You could set your own timeout to be 1 or 2 minutes without activity for your field, based on lastonline from sessions table.

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in or Create an account to join the conversation.

  • mtk
  • mtk
  • OFFLINE
  • Posts: 15
  • Thanks: 0
  • Karma: 2
16 years 10 months ago #52534 by mtk
Replied by mtk on topic Re:Online Plugin
beat wrote:

Cool. Nice plugin. Are you planing to share it with community ?

yes, once the site using it is up & ready...

beat wrote:

The timeout is a joomla issue, or more precisely a general web issue.

You could set your own timeout to be 1 or 2 minutes without activity for your field, based on lastonline from sessions table.

where do I set this on the API of the plugin?
Can this trigger the Logout event?

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum