Page 1 of 1

Pre Buy Questions

PostPosted: December 29th, 2011, 7:46 am
by kierang7
We have written an admin panel script in php which is unique to each member.
When the member logs in, we want the script to run.
In other words when "user01" logs in his unique admin panel script will run.

We also want to have posts/tabs which are common to all so access is not restricted.

This will be a monthly payment membership site with deactivation if membership payment ceases.

Can you describe how these functions will work with your software.

Thanks

Re: Pre Buy Questions

PostPosted: December 29th, 2011, 3:20 pm
by Raam Dev
You can utilize the Special Redirection URL feature of the Login Welcome page (WP Admin -> s2Member -> General Options -> Login Welcome Page) to redirect users after logging in.

The Special Redirection URL supports a few Replacement Codes, including %%current_user_login%%, which is replaced with the username of the person logging in.

So, if your custom admin panel script was located at http://example.com/admin-panel.php, you could configure a Special Redirection URL for the Login Welcome Page to redirect to http://example.com/admin-panel.php?user=%%current_user_login%%.

Then, your admin-panel.php script could read the current user with $_GET['user'].

Does that make sense?

Re: Pre Buy Questions

PostPosted: December 29th, 2011, 4:31 pm
by kierang7
Thank you, this makes perfect sense.

Re: Pre Buy Questions

PostPosted: December 29th, 2011, 4:34 pm
by Raam Dev
Excellent! Let us know if you have any other questions. :)