Page 1 of 1

Custom Client Login with a Twist?

PostPosted: December 6th, 2011, 3:51 pm
by ajb224
I watched Jason's video on creating a client portal, and that solution would work if my client portal was for a few people I could add manually. But I want to create a portal for a client with 800 people, and I don't want to add them manually. So I'm trying to figure out a solution and would love some help.

I've created a private page that has their content. It's easy enough to create a special URL, like example.com/privateclientname, that would tag anyone who has that URL as a client member. But how do I connect this with S2Member so that people can land on that page and register and be taken to their private page in the simplest way possible? Any ideas would be appreciated.

Gratefully,
Andy

Re: Custom Client Login with a Twist?

PostPosted: December 6th, 2011, 5:07 pm
by Bruce C
Hello,

Are you trying to allow users to view a special page, or change a special page?

Re: Custom Client Login with a Twist?

PostPosted: December 6th, 2011, 5:15 pm
by ajb224
I'm trying to create a bulk registration process so certain users can land on and view a special page they haven't paid for (their company pays for it).

Let's say Acme wants 1000 members to have access to special Acme-only content as well as a few other protected sections (called Music and Videos). They pay me for this. I then create an Acme page and put that content on there. Music and Videos already exists and is protected. I can tell Acme to send their members to example.com/Acme, but how do I get those 1000 people registered and then directed to example.com/Acme to see their private content, with additional access to Music and Videos? I don't want them to pay or go through a laborious registration process, but I need some way for them to get tagged as Acme users and for that to also give them access to Music and Videos. Is that clear?

Re: Custom Client Login with a Twist?

PostPosted: December 6th, 2011, 6:12 pm
by Bruce C
You can use a page to do this. Using just a little bit of PHP, if you have s2Member Pro.

Anyone else feel free to to suggest something else, but I would do something along these lines:

Create a page that has a PHP code in it to check for a PHP $_GET variable which would be an ID associated with a company's login. You can have an associative array at the top that has your list of companies that have registered. ( Or you can even have this automated with a few hooks into the user_register hook ), which would display a form for free registration from Dashboard -> s2Member -> PayPal® Pro Forms, or you can create one of your own that would also add a custom capability based on the company's name.

That will allow users to get free access to the custom capability based on their business, and if you set it up correctly, the music and videos section also.

Then, you can add a PHP code to your Login Welcome Page to check for the custom capabilities for the company's name, and have it either redirect the user to the correct page, or show the content the business set up ( however you have it set up ).

It's a bit of work, but a coder familiar with s2Member/WordPress could automate it fully this way. If you can't do it yourself, you can check out the website I'm part of @ http://s2installs.com . This can also be accomplished with the Free version, but it would require a bit more coding because you'd need to set up a dynamic registration form.

Hope that helps!

Re: Custom Client Login with a Twist?

PostPosted: December 6th, 2011, 6:50 pm
by ajb224
Hi Bruce. I do have S2Member Pro, and will consider this. Thanks for the reply.