Page 1 of 1

User Registration via Templates

PostPosted: July 24th, 2010, 6:18 pm
by John Joe
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?

Re: User Registration via Templates

PostPosted: July 28th, 2010, 6:34 am
by Jason Caldwell
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.

Re: User Registration via Templates

PostPosted: July 31st, 2010, 2:37 am
by John Joe
Thank you Jason, I will look into the hooks and see what I can do to improve the registration process.

Re: User Registration via Templates

PostPosted: September 6th, 2010, 10:17 pm
by DomainWorldAccess
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!

Re: User Registration via Templates

PostPosted: September 7th, 2010, 12:40 pm
by Elizabeth
Hi,

Edit your login.css file inside your wp-admin/css folder through FTP. The one you need is label.

Re: User Registration via Templates

PostPosted: September 7th, 2010, 1:11 pm
by DomainWorldAccess
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?

Re: User Registration via Templates

PostPosted: September 7th, 2010, 11:19 pm
by Jason Caldwell
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

Re: User Registration via Templates

PostPosted: September 7th, 2010, 11:53 pm
by DomainWorldAccess
Still feeling dense. Can't make it fly... Thanks for the help, though. Will re-approach after some sleep and some more reading.

Re: User Registration via Templates

PostPosted: September 7th, 2010, 11:56 pm
by Jason Caldwell
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