Hello fellas, i’ve been trying to make this thing work, sadly my skills in programming are severely lacking. I’ve got Crudge installed, well and working. It’s a user management module. Also i’ve been trying this “Arrowchat” thing to work on Localhost, and it does, it just wont work with existing users from Crudge database. It requiered table of Crudge_user where i did indicate each camp it asked for, but in the end while using localhost/site/arrowchat/debug it shows me that my ID isn’t working at all. Yet Crudge login and users are ok.Arrowchat got this function i need to configure :
function get_user_id()
{
$userid = NULL;
if (!empty($_SESSION['userid']))
{
$userid = $_SESSION['userid'];
}
return $userid;
}
I understand this isn’t telling you anything , however , maybe some of you guys been trying arrowchat on custom site as well, and made this thing work . I would aprecite any minor tip or advice and/or any direction i should search for the solution. Thanks a lot.
Edit : Any tips ? i found that Yii got this simple function
$id = Yii::app()->user->id;
which successfully delivered me userid, yet since arrowchat folder needs to be out of Yii folder, it does not understand the Yii functions. Maybe is there a way to include them somehow to arrowchat ?