by VHaugen 30 May 2013, 08:58
Im struggling with the getUserID function and I think that may be the reason...
Im using cometchat and want to try arrowchat and I see there are some similarities.
It is integrated in a Dating software called Etano (Former Datemill) and in cometchat the getUserID function uses the licence code from Etano....: AFUQADAJUYEXAWENATUBEV
Here is the getUserID function settings in cometchat: :
function getUserID() {
$userid = 0;
if (!empty($_SESSION['basedata']) && $_SESSION['basedata'] != 'null') {
$_REQUEST['basedata'] = $_SESSION['basedata'];
}
if (!empty($_REQUEST['basedata'])) {
$userid = $_REQUEST['basedata'];
}
if (!empty($_SESSION['AFUQADAJUYEXAWENATUBEV']['user']['user_id'])) {
$userid = $_SESSION['AFUQADAJUYEXAWENATUBEV']['user']['user_id'];
}
return $userid;
}
Maybe someone can helpe me out...
I have tried to use exact same settings but it doesn't work, and the admin page crashes...
What should I change here to adapt this settings to Arrowchat ?
Victor