MyBB Community Forums

Full Version: Content Only Seen By Registered Members
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Don't know how to explain it well....

but is there a way to have content in the template that can only be seen by registered members?

For instance, I have a table on the sidebar of the forum that I want all the links for popular posts, unread posts, etc. to be.
[Image: qv1si7t.png]

But I don't want guests to see it.... Is there a way?

Is there a way to do this with template conditions?
Go to ACP:

Configuration / Board Settings / Login and Registration Options / Force users to login to view board

That setting will force users to login to view your site and content. Smile
(08-08-2015, 11:56 PM)VAPOR Wrote: [ -> ]Go to ACP:

Configuration / Board Settings / Login and Registration Options / Force users to login to view board

That setting will force users to login to view your site and content. Smile

That's not what I want though. I want guests to see all the content, except the table that I circled in the image. I want only registered members to see that.
Ok gotcha.....this might help:

http://community.mybb.com/thread-172821.html
You need Template Conditionals plugin for that.

<if $mybb->user['usergroup'] != 1 then> contents to be hidden for guests </if>

EDIT
Sorry I missed the previous answer, forum was cached.
<if $mybb->user['usergroup'] == 0 then><else>content</if>

You need this to make it work: http://mybbhacks.zingaburga.com/showthread.php?tid=464
Thanks for the help! Works!