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.

%%current_user_logins%% – catch all?

Home Forums Community Forum %%current_user_logins%% – catch all?

This topic contains 3 replies, has 2 voices. Last updated by  Bruce 3 years, 9 months ago.

Topic Author Topic
Posted: Sunday Mar 17th, 2013 at 2:36 pm #44993

I like the idea of using the %%current_user_logins%% (note the “s” at the end of login) to re-direct my new users to a custom thank you page. Example.

If user is new then:
http://MYSITE/%%current_user_logins%%-new-members-welcome/
which brings them to page:
http://MYSITE/0-new-members-welcome/

However, do I need to then create a separate welcome page for every number of logins possible:
http://MYSITE/0-new-members-welcome/
http://MYSITE/1-new-members-welcome/
http://MYSITE/2-new-members-welcome/
http://MYSITE/3-new-members-welcome/
etc?

I am using free version now but will upgrade if the free version can’t do what I need it to.

Thanks!

List Of Topic Replies

Viewing 3 replies - 1 through 3 (of 3 total)
Author Replies
Author Replies
Posted: Thursday Mar 21st, 2013 at 1:24 am #45285
Bruce
Username: Bruce
Staff Member

Thank you for your inquiry. We are very sorry for the delay in response.

However, do I need to then create a separate welcome page for every number of logins possible:
http://MYSITE/0-new-members-welcome/
http://MYSITE/1-new-members-welcome/
http://MYSITE/2-new-members-welcome/
http://MYSITE/3-new-members-welcome/
etc?

If you use the replacement code this way, then yes. However, you could also just have 1 central Login Welcome Page, and pass the variable via GET variable to the page, and grab the number of times a User has logged in with PHP.

You’d do something like this under Dashboard -› s2Member® -› General Options -› Login Welcome Page:

http://yoursite.com/login-welcome-page/?num_of_logins=%%current_user_logins%%

Then, in your Login Welcome Page , with a PHP Execution Plugin installed, you could do the following
(See: Knowledge Base » ezPHP Plugin for WordPress®):

<?php echo $_GET&#91;'num_of_logins'&#93;; /* This would display the num_of_logins variable we passed */ ?>

Does that make sense?

Posted: Thursday Mar 21st, 2013 at 9:09 am #45334

Thanks Bruce.

I should clarify that I need a unique URL for the first login for conversion tracking purposes.

So,
login #1 should be http://www.MYSITE.com/unique-first-login-url

subsequent logins can all go to the standard Welcome Page.

I will then let my coversion tracking site know to register conversions based on: http://www.MYSITE.com/unique-first-login-url

Would the method you described above work? I think it might be easier if I just upgraded to the Pro version.

You guys are great!

Posted: Thursday Mar 21st, 2013 at 2:06 pm #45370
Bruce
Username: Bruce
Staff Member

Thanks for the follow-up.

If you only need to redirect on the first login, I’d recommend using One-Time Offers instead.

See: Dashboard -› s2Member® -› General Options -› One-Time Offers (Upon Login)

Viewing 3 replies - 1 through 3 (of 3 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.