Page 1 of 1

Is it possible to have 2 different login welcome pages

PostPosted: June 5th, 2011, 7:03 pm
by rainbowsurfer
I doubt that this is possible but I thought I'd ask. I'm going to have 2 different types of members. Consumer members and supplier members. What I need is a different login welcome page for the 2 different groups. Is that possible?

Thanks

Re: Is it possible to have 2 different login welcome pages

PostPosted: June 6th, 2011, 1:46 am
by cclambie
I think it is possible, you can create your login form on two different pages.

The thing I don't know would be with S2Member, you have to set 1 page as the default login page, ie. when someone requests a page they need to login for, they will be sent to this page.

I haven't investigated Multisite to much, but have you considered it for the two areas?
You could use a Sub Domain for each of the types.
ie. consumer.yourdomain.com and supplier.yourdomain.com

Then you would have separate Sites for each, but it would be easy to configure and keep up to date, as multi site uses the same files and database.
Worth taking a look at.

Re: Is it possible to have 2 different login welcome pages

PostPosted: June 6th, 2011, 4:30 am
by Cristián Lávaque
You can create different Login Welcome Pages for your groups:

http://yoursite.com/welcome-0
http://yoursite.com/welcome-1

Protect welcome-1 at Level 1 and welcome-0 at Level 0. WP Admin -> s2Member -> Restriction Options -> Page Access Restrictions

Remove both from the navigation. http://wordpress.org/extend/plugins/exclude-pages/

And set the the URL for the Login Welcome Page using the Level replacement code. WP Admin -> s2Member -> General Option -> Login Welcome Page -> Special Redirection URL

Code: Select all
http://yoursite.com/welcome-%%current_user_level%%


The above is just an example, you can create other setups using the replacement codes available for the welcome page URL.

I hope that helps. :)

Re: Is it possible to have 2 different login welcome pages

PostPosted: June 6th, 2011, 6:14 am
by rainbowsurfer
Thanks for that, I'll see if I can get it working.

You and s2 Member just keep on impressing me
Thanks again

Re: Is it possible to have 2 different login welcome pages

PostPosted: June 6th, 2011, 1:25 pm
by Cristián Lávaque
My pleasure. :)