2012-07-27, 09:13 AM
Hi all,
I apologize in advance for using Google Translator, not familiar with the 'English.
Today I am here to expose a problem, I'm tweaking for days and I have no idea how to solve.
I'm creating a mini site and would like to connect with MyBB anyway, then I thought of using MyBBIntegrator Dave. I 've downloaded and configured everything right, but finding a lot of problems to check whether the user is online. I state that I'm testing everything locally with XAMPP.
-I tried to use the pre-written IsOnline, returns false for all that are logged.
-I tried to create a session and save the global.php 'UID, if not equal to 0 means that the' user is logged ... But when the amount of 0 global.php because I do not recognize. Then I tried to add this save-UID on the index page ... works, but if you visit the site directly does not refresh, and even if the 'user is not logged on, the site is logged.
-I tried to use other supplements ... Nothing.
As said before, I'm tweaking for days, I tried everything, but I can not find any solution ...
examples of codes that I used:
The function of IsLoggedIn dave (correctly configured)
-> always false
I tried other solutions but I could not find a working decently ...
If you for some solution?
Google translator and I apologize for any errors, best regards, Mavin.
Solved ò.ò
(http://community.mybb.com/post-301500.html)
I apologize in advance for using Google Translator, not familiar with the 'English.
Today I am here to expose a problem, I'm tweaking for days and I have no idea how to solve.
I'm creating a mini site and would like to connect with MyBB anyway, then I thought of using MyBBIntegrator Dave. I 've downloaded and configured everything right, but finding a lot of problems to check whether the user is online. I state that I'm testing everything locally with XAMPP.
-I tried to use the pre-written IsOnline, returns false for all that are logged.
-I tried to create a session and save the global.php 'UID, if not equal to 0 means that the' user is logged ... But when the amount of 0 global.php because I do not recognize. Then I tried to add this save-UID on the index page ... works, but if you visit the site directly does not refresh, and even if the 'user is not logged on, the site is logged.
-I tried to use other supplements ... Nothing.
As said before, I'm tweaking for days, I tried everything, but I can not find any solution ...
examples of codes that I used:
define ("IN_MYBB", 1);
require ($ _SERVER ['DOCUMENT_ROOT']. '/forum/global.php');
echo ($mybb->user['uid']) ? 'online', 'offline'
-> always offlineThe function of IsLoggedIn dave (correctly configured)
IsLoggedIn function ()
{
/ / If the user is logged in, he has an UID
return ($this->mybb->user['uid']! = 0)? true: false;
}
-> always false
I tried other solutions but I could not find a working decently ...
If you for some solution?
Google translator and I apologize for any errors, best regards, Mavin.
Solved ò.ò
(http://community.mybb.com/post-301500.html)