Warning: Undefined array key "pmwiki" in /home/kongdmdu/pmichaud/pmwiki/pub/skins/vector/vector.php on line 14

Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/kongdmdu/pmichaud/pmwiki/pub/skins/vector/vector.php on line 14

Warning: Undefined array key "pagename" in /home/kongdmdu/pmichaud/pmwiki/pub/skins/vector/vector.php on line 225

Warning: Undefined array key "pagename" in /home/kongdmdu/pmichaud/pmwiki/pub/skins/vector/vector.php on line 253
PresenceAwareness - Cookbook - PmWiki

Presence Awareness

Summary: User-based authentication, a list of online logged users, tools to register and manage users and send posts via Jabber
Version: 1.1
Prerequisites: Last tested on PmWiki version: 2.0.beta54
Status:
Maintainer: Alessandro Sisto

NOTE: This script is based on UserAuth

Questions answered by this recipe

What does this script do?

Answer

It provides a User-based authentication like UserAuth, a list of online logged users, easy tools to register and to manage users, to send posts via Jabber.

Notes

Download

presence provides:

cookbook/presence.php
cookbook/presence-list.php
cookbook/presence-usertool.php
cookbook/presence-admintool.php
cookbook/presence-sendposts.php
cookbook/presence/HtPasswd.php
cookbook/presence/UserSessionVars.php
cookbook/presence/class.userslist.php
cookbook/presence/xajax.inc.php
cookbook/presence/presence.css
cookbook/jabberposts/class.jabber.php
cookbook/jabberposts/class.jabberposts.php

Description

Dependencies

presence.php
|
--- presence-list.php
|
--- presence-admintool.php

|
--- presence-usertool.php

presence-sendposts.php

Installation

require_once("cookbook/presence.php");
require_once("cookbook/presence-admintool.php");
require_once("cookbook/presence-usertool.php");
require_once("cookbook/presence-list.php");
require_once("cookbook/presence-sendposts.php");
Ensure that this directory is owned by the web server user, if no the files will not be automatically created, so you have to create these file manually and set the right permissions.

Instructions

Releases

Release v1.1: corrected javascript generation.

Comments

hi, alessandro, very nice work! Would be very nice if in the presence list would be links to the Profiles page. I will try to do that. Even more nice would be a link that opens the messenger noskule October 30, 2005, at 07:57 AM

hi alessandro, I came over a problem by trying to make links from the user and the page he is working on. The presence-list.php dont display the page where the user is working on, if $EnablePathInfo = 1; . Is there a workaround for that? grz Profiles November 21, 2005, at 08:15 AM

hi, I love this plugin, and its been great for organising everything. However I had problems with the xajax inside brackets command. I finally traced this down to class.userslist.php starting with a < ? tag instead of a < ? php tag (spaces entered to stop accidental parse errors). This can cause all sorts of problems and was even locking up php or apache for me. TheFlyingPengwyn January 17, 2007, at 09:31 PM

After following the installation instructions I get this error (from FF)
xajax_UpdateOnlineUsers is not defined: xajax_UpdateOnlineUsers(location.search.substr(1)); (PKHG)

you forgot to mention that the first activation (tries to) creates .htpasswd in the local directory, so if that has not good rights the recipe will fail. (PKHG).

The redirect from action=login only works for users with admin rights. When users don't have admin rights, it does not redirect to the page and says "Insufficient privileges to perform action." The login works, but the user has to click on another link before it activates. Any ideas would be great. (Steven)

Is anyone still maintaining this file? There should be quite a few updates to it such as what Steven mentioned above, some English fixed and possibly a way to add more fields to the self registration form. -Chris

See Also

User notes : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.