2011-08-22, 05:32 PM
2011-08-22, 05:36 PM
Using the PHP in Templates plugin, this should work:
<if $mybb->user['usergroup'] > 0 then>
// Content
</if>
2011-08-23, 09:19 AM
(2011-08-22, 05:36 PM)faviouz Wrote: [ -> ]Using the PHP in Templates plugin, this should work:
<if $mybb->user['usergroup'] > 0 then> // Content </if>
The content still shows for guests?
Maybe we need to change this.
> 0
into something else?Thanks in advanced.
2011-08-23, 10:02 AM
^ you can use any number in the code given by faviouz as per your requirement
default group IDs are like this :
1 → Guests
2 → Registered
3 → Super Moderators
4 → Administrators
5 → Awaiting Activation
6 → Moderators
7 → Banned
if you have custom groups then you may see : what are group id
default group IDs are like this :
1 → Guests
2 → Registered
3 → Super Moderators
4 → Administrators
5 → Awaiting Activation
6 → Moderators
7 → Banned
if you have custom groups then you may see : what are group id
2011-08-23, 10:17 AM
<if $mybb->user['usergroup'] > 1 then>
// Content
</if>
I never use this plugin, and I am not great at PHP, but I think it should be that.
2011-08-23, 10:18 AM
Thanks a lot to both of you