Jump to the post that solved this thread.
Solved: 6 Years, 1 Month, 2 Weeks ago Content Only Seen By Registered Members
#1
Solved: 6 Years, 1 Month, 2 Weeks ago
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?
just a noob.
Reply
#2
Solved: 6 Years, 1 Month, 2 Weeks ago
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
Reply
#3
Solved: 6 Years, 1 Month, 2 Weeks ago
(2015-08-08, 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.
just a noob.
Reply
#4
Solved: 6 Years, 1 Month, 2 Weeks ago
Ok gotcha.....this might help:

http://community.mybb.com/thread-172821.html
Reply
#5
Solved: 6 Years, 1 Month, 2 Weeks ago
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.
Regards, Ad Bakker (NL)
Reply
#6
Solved: 6 Years, 1 Month, 2 Weeks ago
<if $mybb->user['usergroup'] == 0 then><else>content</if>

You need this to make it work: http://mybbhacks.zingaburga.com/showthread.php?tid=464
Reply
#7
Solved: 6 Years, 1 Month, 2 Weeks ago
Thanks for the help! Works!
just a noob.
Reply
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)