[HELP] Connecting ucp and mybb forum
#1
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
Reply
#2
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 }.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)