Jump to the post that solved this thread.
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 11 Years, 7 Months ago Disable Signatures for Guests (IF statement inside templates)
#18
Solved: 11 Years, 7 Months ago
This user has been denied support. This user has been denied support.
(2011-09-02, 04:48 PM)Sama34 Wrote: You can use this, although it is for multiple groups, you can use only one and it will work:
<if in_array($GLOBALS['mybb']->user['usergroup'], array(1)) then>
// code for guests
</if>

I use this for hiding content to multiple groups at once.

using thisoutputs me this error

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/beatdjn/public_html/foros/global.php(504) : eval()'d code on line 2
Jump to the post that solved this thread.


Messages In This Thread
RE: Disable Signatures for Guests (IF statement inside templates) - by Glas - 2011-09-02, 04:50 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)