I want to show a message only visible to users of a specific group (gid=2) right on my starting page (
www.thatsmyforum.com/).
How can I do that or what´s the needed code?
Thank you!
Create a plugin and use the hook index_end. In your function then you can use if($mybb->user['usergroup'] == 2) { /* define a variable here then use it in your template, making sure you globalize it in the function. */}
I managed to do it manually with:
<if $mybb->user['usergroup'] == 2 then>
But I will also look into your plugin. Seems to offer some more possibilities.
(2016-11-07, 07:29 PM)OlDirty Wrote: [ -> ]I managed to do it manually with:
<if $mybb->user['usergroup'] == 2 then>
But I will also look into your plugin. Seems to offer some more possibilities.
You can also write your mensage in header_welcomeblock_member_moderator templates of your theme