PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Separate Login Welcome Page Per Level

s2Member Plugin. A Membership plugin for WordPress®.

Separate Login Welcome Page Per Level

Postby kittykatmeowmeow » December 17th, 2010, 10:28 am

Hello!

I was wondering to know if it's possible to create a separate login welcome page for each customer level. For example, in the near future I would like to offer more than 1 level of access to my site; however each level is going to have access to different areas of the site. For the sake of navigation, I was going to put links to the material directly on the Login welcome page.."Welcome John Smith! Click here to continue to your page". That link would take the customer to their page with level 1 access.

Let's say Jane Doe has level 2 access and when she logs in, the login welcome page for her gives her a link for level 2 material.

In summary, I guess what I am trying to accomplish, is to redirect the user (after they log in) to the area on the site that corresponds with what level access they have:

Level 1 customer------> redirected to Level 1 materials
Level 2 customer------> redirected to level 2 materials

Is this in a tutorial that I missed?

Thanks for the help!!

Kitty :D
User avatar
kittykatmeowmeow
Registered User
Registered User
 
Posts: 22
Joined: December 17, 2010

Re: Separate Login Welcome Page Per Level

Postby kittykatmeowmeow » December 17th, 2010, 1:00 pm

I think I found a fix:

Welcome <?php echo S2MEMBER_CURRENT_USER_DISPLAY_NAME; ?>!

<?php if (current_user_can("access_s2member_level1")); ?>

content

<?php if (current_user_can("access_s2member_level2")); ?>

content
User avatar
kittykatmeowmeow
Registered User
Registered User
 
Posts: 22
Joined: December 17, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 2 guests

cron