Show text to members only? (Need!)

Hi,

I am looking for a way to hide certain text to members only. I assume there is an add-on to do this, I just can't find it.

I guess it would be something like this; You put the text inside a tag, such as "[hidden]Member only text[/hidden] and it only shows that text for registered users.

Here is an example from God*Craft*com:
kWH01.png


The text that says "<<You must be .... to View this information>>" is what it says for non-registered users. Any other users can view it if they are a member.


Thanks,
 
You don't need an add-on for this.

XenForo has a number of template conditionals.

To do what you want:

Code:
<xen:if is="{$visitor.user_id}">
This content will show to logged in members
<xen:else />
This content will show to guests
</xen:if>

Put that code in the desired template.
 
Where is this text going?

Here's a simple conditional for templates
Code:
<xen:if is="{$visitor.user_id}">
This content will show to logged in members
<xen:else />
This content will show to guests
</xen:if>


Edit: Got ninja'd. :p
 
You don't need an add-on for this.

XenForo has a number of template conditionals.

To do what you want:

Code:
<xen:if is="{$visitor.user_id}">
This content will show to logged in members
<xen:else />
This content will show to guests
</xen:if>

Put that code in the desired template.
Alright, thank you a lot :>
 
Where is this text going?

Here's a simple conditional for templates
Code:
<xen:if is="{$visitor.user_id}">
This content will show to logged in members
<xen:else />
This content will show to guests
</xen:if>


Edit: Got ninja'd. :p
We really need some banner that appears when someone else is writing a message.

Either that, or a proper ninja smiley for when the inevitable happens ninja.webp
 
Top Bottom