Skip to content
This repository has been archived by the owner on Feb 11, 2023. It is now read-only.

Tikiwiki integration

Frug edited this page Oct 11, 2012 · 1 revision

TikiWiki Integration

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.