2013-08-09, 05:40 AM
I am trying to set up my chat and I need to fix the PHP for getting the members from MyBB Tables, can anyone help me?
http://gyazo.com/1aff9409714087298f0e9a15cb8af2e6
http://gyazo.com/1aff9409714087298f0e9a15cb8af2e6
if(USER_IS_LOGGED_IN)
{
$ses = LOGGED_IN_USERID //tell freichat the userid of the current user
setcookie("freichat_user", "LOGGED_IN", time()+3600, "/"); // *do not change -> freichat code
}
else {
$ses = null; //tell freichat that the current user is a guest
setcookie("freichat_user", null, time()+3600, "/"); // *do not change -> freichat code
}