Jump to the post that solved this thread.
Solved: 8 Years, 2 Months, 2 Weeks ago Show group specific message on starting page
#1
Solved: 8 Years, 2 Months, 2 Weeks ago
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!
Reply
#2
Solved: 8 Years, 2 Months, 2 Weeks ago
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. */}
Reply
#3
Solved: 8 Years, 2 Months, 2 Weeks ago
(2016-11-03, 11:32 AM)OlDirty Wrote: 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!

Why don't you try this plugin: https://community.mybb.com/mods.php?action=view&pid=121
Reply
#4
Solved: 8 Years, 2 Months, 2 Weeks ago
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.
Reply
#5
Solved: 8 Years, 2 Months, 2 Weeks ago
(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
Reply
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)