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 welcome page

Home Forums Community Forum Client Portal welcome page

This topic contains 2 replies, has 2 voices. Last updated by  JAMES HALL 3 years, 11 months ago.

Topic Author Topic
Posted: Thursday Jan 17th, 2013 at 1:57 pm #37913
JAMES HALL
Username: jhall_3rd

I would like to set up a portal in which each group of members (schools) would land on their own welcome page. I realize that i can set this up using a specific ccap value for each school. The problem is that i am already using ccaps to restrict their content access as there are several different types of content etc.

So, if i use the specific URL option for the welcome page will i have some mess like this: http://mydomain/school-1,cccap1,ccap2,ccap3 –?

Is there some better way of doing this?

Should i be looking at custom values and some conditional php code top direct users to their proper page?

List Of Topic Replies

Viewing 2 replies - 1 through 2 (of 2 total)
Author Replies
Author Replies
Posted: Saturday Jan 19th, 2013 at 9:36 pm #38360
Staff Member

Thanks for your inquiry. ~ We appreciate your patience :-)

This KB article talks more about this topic. Please see:
Knowledge Base » Customizing Your Login Welcome Page

So, if i use the specific URL option for the welcome page will i have some mess like this: http://mydomain/school-1,cccap1,ccap2,ccap3 –?

Yea, not good. FYI: Custom Capabilities would be hyphen-delimited in a URL like this, not comma-delimited.

I would consider using s2Member’s Login Redirect Filter for this, in PHP code.

Please create this directory and file:
/wp-content/mu-plugins/s2-hacks.php
(NOTE: these are MUST USE plugins, see: http://codex.wordpress.org/Must_Use_Plugins)
(See also: http://www.s2member.com/kb/hacking-s2member/)

<?php
add_filter('ws_plugin__s2member_login_redirect', 'my_login_redirect', 10, 2);
function my_login_redirect($what_s2_says, $vars = array())
	{
		$user = $vars&#91;'user'&#93;;
		
		if($user->has_cap('access_s2member_ccap_music'))
				return 'http://www.example.com/lwp-music-group/';
				
		else return $what_s2_says;
	}
Posted: Sunday Jan 20th, 2013 at 6:33 am #38401
JAMES HALL
Username: jhall_3rd

Thanks Jason — spent yesterday reading the knowledge base and learning. I am so happy with the insanely great documentation (!) Using the simple login redirects and some conditionals right on the page I’m really surprised how much even a non-coder can control functionality and presentation.

I’m going to post another question about PayPal that maybe you can answer.

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.