MyBB Community Forums

Full Version: How can I let a text display which is only visible for members
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I would like to have a text on a page and you should only be able to see the text if you are a member. Is must be between the other text which is visible for anyone
OK thanx! But if I have that plugin what should I do to make it do what I want?
This is an example:

This text is available for anyone,
<if $GLOBALS['mybb']->user['uid'] != 0 then>
and this text is only available for member,
</if>
and this is another text that available for anyone.

The result is:

For anyone:

This text is available for anyone, and this is another text that available for anyone.

If they login:

This text is available for anyone, and this text is only available for member, and this is another text that available for anyone.

Do you want like that?