2012-05-22, 11:15 PM
Greetings,
I implemented a forum on my website and I already succeded in being able to login from the website instead of the forum.
Now, in my home page, depending on the type of user, I want to show links to the Admin CP, Mod CP and User CP, just the way MyBB displays on the forum after the user logs in.
I have been trying this:
In where '1' is the number of the user group on the database, but without sucess...
Also, I have tried using the function provided in this thread... But still, nothing
What am I missing here?
I implemented a forum on my website and I already succeded in being able to login from the website instead of the forum.
Now, in my home page, depending on the type of user, I want to show links to the Admin CP, Mod CP and User CP, just the way MyBB displays on the forum after the user logs in.
I have been trying this:
if ($mybb->user['usergroup'] == 1)
In where '1' is the number of the user group on the database, but without sucess...
Also, I have tried using the function provided in this thread... But still, nothing
What am I missing here?