MyBB Community Forums

Full Version: block some text in a template?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I want to create a template and block only some text in that template so that it can be seen to members only, for guests it will say something like "register to see this text"

Possible?!
(2013-02-15, 02:17 AM)microcon Wrote: [ -> ]Hi,

I want to create a template and block only some text in that template so that it can be seen to members only, for guests it will say something like "register to see this text"

Possible?!

You could try this http://mods.mybb.com/view/guest-s-can-t-view-threads
Template Conditionals is a great plugin for this.
What the php code I should add into the template after installing the Template Conditionals plugin?
Plugin: http://mybbhacks.zingaburga.com/showthread.php?tid=464
Use this syntax:
<if !$mybb->user['uid'] then>
Sorry you need to be registered
<else>
Member Content Here
</if>