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™

User Registration via Templates

s2Member Plugin. A Membership plugin for WordPress®.

User Registration via Templates

Postby John Joe » July 24th, 2010, 6:18 pm

Hello,

An on-going issue i've had with the membership plugins for Wordpress are that they aren't very registration friendly when it comes to adding new users. The ability to create custom fields and integrate that information over with a membership system is limited. The fault is mainly with WP since it doesn't have a roboust user management system via custom roles and user groups.

However, I came across this article: http://www.cozmoslabs.com/2010/05/31/wo ... le-fields/ and I must say I was very impressed by the user of Hooks and Filters to add new custom information to the default user system and have it accessible and editable by users and administrators alike.

I would love to see s2Member take advantage of such hooks and create the ability to create a seamless user registration experience through the use of custom registration templates and custom field hooks.

Is this doable?
John Joe
Guest User
Guest User
 

Re: User Registration via Templates

Postby Jason Caldwell » July 28th, 2010, 6:34 am

Hi John. Thanks for your inquiry.

Yes, this is possible with s2Member. There are several options actually.

1. In s2Member ( even in the free version ), you can set Custom Registration Fields, under:
s2Member -> General Options -> Custom Registration Fields

2. You could also take a look at the source code inside:
/s2member/includes/register-access.inc.php
There are several Hooks/Filters available which allow for Custom Fields that extend beyond what s2Member's UI is capable of by itself.

3. Also, with s2Member Pro, the Registration Form is embedded into your WordPress theme ( much more attractive, as it inherits the style of your existing theme ), as do all of the checkout forms.

... With s2Member Pro, you could also pull all of the Form Templates, from inside /s2member-pro/includes/templates/ and copy them all into your WordPress theme directory. This makes all sorts of things possible. s2Member Pro will automatically find your custom templates files inside your WordPress theme directory, and use those; instead of its defaults.

I would love to see s2Member take advantage of such hooks

s2Member currently has over 250 Hooks/Filters spread throughout its entire framework.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: User Registration via Templates

Postby John Joe » July 31st, 2010, 2:37 am

Thank you Jason, I will look into the hooks and see what I can do to improve the registration process.
John Joe
Guest User
Guest User
 

Re: User Registration via Templates

Postby DomainWorldAccess » September 6th, 2010, 10:17 pm

I feel dense.

All I want to do is make the required field names on the registration page red,a nd I cannot find where to do it. Thanks!
User avatar
DomainWorldAccess
Experienced User
Experienced User
 
Posts: 20
Joined: August 29, 2010

Re: User Registration via Templates

Postby Elizabeth » September 7th, 2010, 12:40 pm

Hi,

Edit your login.css file inside your wp-admin/css folder through FTP. The one you need is label.
User avatar
Elizabeth
Moderator
Moderator
 
Posts: 160
Joined: May 12, 2010

Re: User Registration via Templates

Postby DomainWorldAccess » September 7th, 2010, 1:11 pm

label {
color: #777;
font-size: 13px;
}

Is the only code I see associated with field labels, and i do not want to turn all fields red, only required ones.

What am I missing. The only other option is:

#user_pass,
#user_login,
#user_email {
font-size: 24px;
width: 97%;
padding: 3px;
margin-top: 2px;
margin-right: 6px;
margin-bottom: 16px;
border: 1px solid #e5e5e5;
background: #fbfbfb;

}

Which does not address your custom registration fields.

What am I missing?
User avatar
DomainWorldAccess
Experienced User
Experienced User
 
Posts: 20
Joined: August 29, 2010

Re: User Registration via Templates

Postby Jason Caldwell » September 7th, 2010, 11:19 pm

Excellent question.

Although WordPress does not, s2Member does assign a special attribute to the Custom Fields that it adds in. Every required field that s2Member adds in, will always have the attribute ( aria-required=true ).

So your CSS might look something like this:
Code: Select all
#user_pass,
#user_login,
#user_email,
input[aria-required=true]
    {
        background: #fbfbfb;
    } 

Tutorial here: http://www.w3schools.com/css/css_attrib ... ectors.asp
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: User Registration via Templates

Postby DomainWorldAccess » September 7th, 2010, 11:53 pm

Still feeling dense. Can't make it fly... Thanks for the help, though. Will re-approach after some sleep and some more reading.
User avatar
DomainWorldAccess
Experienced User
Experienced User
 
Posts: 20
Joined: August 29, 2010

Re: User Registration via Templates

Postby Jason Caldwell » September 7th, 2010, 11:56 pm

Sure thing. Let me know if you continue with struggles.
If you're using Firefox, I highly recommend Firebug for testing CSS and inspecting elements within a form.
http://getfirebug.com/

Firebug takes a few moments to adapt to, but afterward you'll be glad you got it.
You may also be interested in this thread: viewtopic.php?f=4&t=281&p=1670&hilit=login+styles#p1714
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA


Return to s2Member Plugin

Who is online

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

cron