2018-02-15, 10:05 AM
So i connected ucp with in-game mysql, but i have to connect with mybb forum mysql aswell, okey, got that, but how i check if user is online to get access to ucp? Any help? Im using PDO if its matters
[HELP] Connecting ucp and mybb forum
|
2018-02-15, 10:05 AM
So i connected ucp with in-game mysql, but i have to connect with mybb forum mysql aswell, okey, got that, but how i check if user is online to get access to ucp? Any help? Im using PDO if its matters
2018-02-16, 12:50 AM
Easiest way is to use define("IN_MYYB", 1) in your PHP page and then use require_once on global.php in the directory your forum is in. You can then use if($mybb->usergroup['canucp']) { // Do something }.
|
« Next Oldest | Next Newest »
|