Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 4 Years, 2 Months ago If Variable?
#5
Solved: 4 Years, 2 Months ago
Use this rather than the one mentioned above: http://mybbhacks.zingaburga.com/showthread.php?tid=464

its the simple/lite version of "PHP in Templates" which is linked in above post...

then you can use a conditional like this....

<if $mybb->user['usergroup'] == 4 then>
//content to show only for admin
</if>


<if in_array($GLOBALS['mybb']->user['usergroup'], array(3,4,6)) then>
//content to show for all default mod/admin groups
</if> 
We can't help everyone, but everyone can help someone - Ronald Reagan
Did you know? Your question has already been answered. But you haven't seen it yet.
Don’t  Forget to “Mark as Solved” after the fix
Reply
Jump to the post that solved this thread.


Messages In This Thread
If Variable? - by SolarCrane - 08-11-2015, 12:52 AM
RE: If Variable? - by zamight - 08-11-2015, 03:44 AM
RE: If Variable? - by SolarCrane - 08-11-2015, 04:40 AM
RE: If Variable? - by zamight - 08-11-2015, 04:49 AM
RE: If Variable? - by mmadhankumar - 08-11-2015, 06:09 AM
RE: If Variable? - by SolarCrane - 08-11-2015, 06:28 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)