Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 4 Years, 3 Months, 1 Week ago Content Only Seen By Registered Members
#1
Solved: 4 Years, 3 Months, 1 Week 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: 4 Years, 3 Months, 1 Week 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: 4 Years, 3 Months, 1 Week ago
(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.
just a noob.
Reply
#4
Solved: 4 Years, 3 Months, 1 Week ago
Ok gotcha.....this might help:

http://community.mybb.com/thread-172821.html
Reply
#5
Solved: 4 Years, 3 Months, 1 Week 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: 4 Years, 3 Months, 1 Week 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: 4 Years, 3 Months, 1 Week 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)