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.

Show content for first X number of logins

Home Forums Community Forum Show content for first X number of logins

This topic contains 2 replies, has 2 voices. Last updated by  Rick Roberts 4 years, 7 months ago.

Topic Author Topic
Posted: Friday Jun 1st, 2012 at 1:03 pm #15186

I have some content (A New User Guide) that I only want to display for the first X number of logins. How would I use PHP conditionals to make that work?

Thanks for the help.

List Of Topic Replies

Viewing 2 replies - 1 through 2 (of 2 total)
Author Replies
Author Replies
Posted: Friday Jun 1st, 2012 at 2:50 pm #15194

With the php ex plugin installed this should do the trick

<?php if(S2MEMBER_CURRENT_USER_LOGIN_COUNTER <= 5){ ?>
    Show download link to customers that have logged in 5 times or less
<?php } ?>
  • This reply was modified 4 years, 7 months ago by  Philly.
Posted: Friday Jun 1st, 2012 at 3:47 pm #15197

Thank you, Philly. That works perfectly!

We’d like to offer you a free hosting account for your kindness: thweetbird.com

Rick :)

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.