is there a MyBB Internal Variables for registred user ?
#1
Question 
Hello ;
Is there a MyBB Internal Variables for registred user ?

like this
usergroup['cancp']
Reply
#2
You can check $mybb->user['uid']
Support PMs will be ignored!
Reply
#3
You'd like to check if user is registered? You need to use $mybb->user['uid']. If it's bigger than 0 user is registered and if it's 0, he isn't. Can also check $mybb->user['usergroup']
Reply
#4
yes thanx i get it Big Grin
Reply
#5
checking $mybb->user['uid'] is reliable to find if visitor is a member or a guest ($mybb->user['uid'] > 0 implies that visitor is a member)
Reply
#6
yes with this

if ( $mybb->user['uid'] > "0")
Thank you !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)