Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 If profilefieldid exist show//ifusergroup is
Seabody Offline
Member
***
Posts: 54
Joined: Aug 2012
Post: #2
RE: If profilefieldid exist show//ifusergroup is
First one needs to have == instead of =. = is an assignment operator, whereas == is a comparison operator (= is used in $this = 'that' and == is used in if($foo == 'bar')).

Try

Code:
<if $mybb->usergroup['gid'] == 36 then>
Nivel de Paltosidad<img src="http://www.beatdj.net/foros/images/palta.png" />: 99%
</if>


Or if that fails:

Code:
<if $mybb->usergroup['gid'] == '36' then>
Nivel de Paltosidad<img src="http://www.beatdj.net/foros/images/palta.png" />: 99%
</if>

04-03-2013 03:40 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: If profilefieldid exist show//ifusergroup is - Seabody - 04-03-2013 03:40 PM

 Standard Tools
Forum Jump: