latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Only view page if user not logged in!

Home › Forums › Community Forum › Only view page if user not logged in!

This topic contains 2 replies, has 2 voices. Last updated by  Eduan 4 years ago.

Topic Author Topic
Posted: Tuesday Dec 18th, 2012 at 9:10 pm #34982
Ronnie
Username: Zeeflo

Alright, so i know that this code:

[s2If is_user_logged_in()]
BLABLABALBLABLALBLA
BLABLABLA YES!
[/s2If]
[s2If !is_user_logged_in()]
[/s2If]

Will require users to be logged in to be able to view this text on the website.
Now, if I only want it to show to people who are NOT logged in, what would the shortcodes be?

Please help :)

List Of Topic Replies

Viewing 2 replies - 1 through 2 (of 2 total)
Author Replies
Author Replies
Posted: Tuesday Dec 18th, 2012 at 9:31 pm #34984
Ronnie
Username: Zeeflo

I figured it out.

[s2If is_user_logged_in()]
Text here for users logged in!
[/s2If]
[s2If !is_user_logged_in()]
Text here for users NOT logged in!
[/s2If]

Posted: Wednesday Dec 19th, 2012 at 9:45 am #35054
Eduan
Username: Eduan
Moderator

That is correct Ronnie. Glad you figured it out. :)

Viewing 2 replies - 1 through 2 (of 2 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.