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.

Client Portal for Individual Clients

Home Forums Community Forum Client Portal for Individual Clients

This topic contains 1 reply, has 2 voices. Last updated by  Raam Dev 4 years, 3 months ago.

Topic Author Topic
Posted: Thursday Oct 4th, 2012 at 11:29 am #27453
Erin Weiss
Username: eweiss

Thank you so much for posting the client portal video. It helped get me started with my set up. I’m having a hard time with my setup though.

I’m building a free site that has a paid portion available to users. I set up user level #1 as the paid membership option. I want to use replacement codes in order to get each paid individual access to their own portal home page where I can display their specific information that no one else can see.

I changed the special redirection URL to http://www.livelifeactive.com/%%current_user_login%%

When I do this, it messes up the homepage for all of my free members. It sends them to my membership options page to log in. I don’t want that to happen. I want the free users to be directed to my home page http://www.livelifeactive.com still because they are not required to go the paid membership route.

Any ideas on how I can solve my issue? Thanks again SO much for your help!
Erin

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Friday Oct 5th, 2012 at 3:39 am #27533
Raam Dev
Username: Raam
Staff Member

For that scenario, you’ll need to create and select a Login Welcome Page (Dashboard -› s2Member® -› General Options -› Login Welcome Page) that everyone is redirected to, regardless of their level, and then on the Login Welcome Page you’ll need to use a bit of PHP code to detect if the person is a Level 1 subscriber and redirect them to their special page, or if they’re a Level 0 subscriber (i.e., free subscriber), redirect them to the home page.

Instead of the %%current_user_login%% replacement code, you’ll need to use a snippet of PHP to output the S2MEMBER_CURRENT_USER_LOGIN PHP Constant (see Dashboard -› s2Member® -› API / Scripting -› PHP/API Constants).

So, to create the redirect URL for Level 1 subscribers, you’d do something like this:

if (current_user_is("s2member_level1")) {
	$purchase_page = "http://www.livelifeactive.com/" . S2MEMBER_CURRENT_USER_LOGIN;
}

This thread explains how to set up a redirect on the Login Welcome Page itself.

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