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™

Custom Client Login with a Twist?

s2Member Plugin. A Membership plugin for WordPress®.

Custom Client Login with a Twist?

Postby ajb224 » December 6th, 2011, 3:51 pm

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
User avatar
ajb224
Registered User
Registered User
 
Posts: 7
Joined: November 2, 2011

Re: Custom Client Login with a Twist?

Postby Bruce C » December 6th, 2011, 5:07 pm

Hello,

Are you trying to allow users to view a special page, or change a special page?
~Bruce ( a.k.a. Ace )

If you're interested in a Professional Installation, or Custom Coding Job, you can send your request here.

Proud Supporter of:
The Zeitgeist Movement
and Occupy Everything
User avatar
Bruce C
Experienced User
Experienced User
 
Posts: 337
Joined: July 20, 2011

Re: Custom Client Login with a Twist?

Postby ajb224 » December 6th, 2011, 5:15 pm

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?
User avatar
ajb224
Registered User
Registered User
 
Posts: 7
Joined: November 2, 2011

Re: Custom Client Login with a Twist?

Postby Bruce C » December 6th, 2011, 6:12 pm

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!
~Bruce ( a.k.a. Ace )

If you're interested in a Professional Installation, or Custom Coding Job, you can send your request here.

Proud Supporter of:
The Zeitgeist Movement
and Occupy Everything
User avatar
Bruce C
Experienced User
Experienced User
 
Posts: 337
Joined: July 20, 2011

Re: Custom Client Login with a Twist?

Postby ajb224 » December 6th, 2011, 6:50 pm

Hi Bruce. I do have S2Member Pro, and will consider this. Thanks for the reply.
User avatar
ajb224
Registered User
Registered User
 
Posts: 7
Joined: November 2, 2011


Return to s2Member Plugin

Who is online

Users browsing this forum: Exabot [Bot] and 1 guest

cron