Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved How do I search for a user's usertitle?
#1
Not Solved
I'm trying to post a custom message to people who have not posted yet on my forums (to encourage them to make their first post). To do this I'm using PHP to search for usergroup titles:

if($mybb->usertitle['utid'] == 1){  // if a user's usertitle id is equal to one

//display my custom message

}


The '1' utid is associated with people how have a post counter of zero. This code however is not working becuase usertitle['utid'] is null. I assumed the variable is 'usertitle['utid']' but I guess it's something else. What's the correct variable to use here to search for a user's usertitle?
Reply
#2
Not Solved
user group (number) => $mybb->user['usergroup']

why not use user posts number ! $mybb->user['postnum']
Reply
#3
Not Solved
(05-03-2016, 01:57 AM).m. Wrote: user group (number) => $mybb->user['usergroup']

why not use user posts number ! $mybb->user['postnum']

Yea, post number will work. Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)