This repository has been archived by the owner on Feb 11, 2023. It is now read-only.
forked from Frug/AJAX-Chat
-
Notifications
You must be signed in to change notification settings - Fork 0
Tikiwiki integration
Frug edited this page Oct 11, 2012
·
1 revision
note: this is a user-created integration. We cannot offer support for third party integrations. You should consult the TikiWiki community forums for assistance.
in custom.php add:
require('../tiki-setup.php');
In CustomAJAXChat.php add:
// Returns an associative array containing userName, userID and userRole // Returns null if login is invalid function getValidLoginUserData() { $customUsers = $this->getCustomUsers(); //echo "Role: ".$this->getRequestVar('userRole'); if($this->getRequestVar('userName')) { // Check if we have a valid registered user: $userName = $this->getRequestVar('userName'); $userName = $this->convertEncoding($userName, $this->getConfig('contentEncoding'), $this->getConfig('sourceEncoding')); $userData = array(); $userData['userID'] = $this->getRequestVar('userID'); $userData['userName'] = $userName; $userData['userRole'] = $this->getRequestVar('userRole'); // print_r($userData); return $userData; } return null; }
Thanks to Torpedro for this integration.
Blueimp's AJAX Chat is released under the GNU AFFERO GENERAL PUBLIC LICENSE Version 3