Buddy Forms Wordpress

Codex Home → Getting Started → User Submitted Guides → Modifying the Registration Form

Modifying the Registration Form

Once you've installed WordPress and BuddyPress, created WordPress pages for BuddyPress to use for Registration and Activation, and then enabled "Anyone can register" (under Settings > Full general > Membership), you lot're prepare to let users sign up for your new site.

Tip: If you lot're already logged in to your new site, visiting mysite.net/register volition redirect yous to the site abode folio. Not to worry, that'south the expected behavior, since there's no point in registering if you're already registered, right? And then fire up a second browser that'due south not logged into the site, and betoken it at your registration folio. Past default, it'll expect something like this.

The BuddyPress registration form in its default state.

The section "Business relationship Details" is the portion required for WordPress; the other portion, "Profile Details," is the part BuddyPress adds.

The registration form is comprised of two halves: the standard WordPress form and the section that BuddyPress add.

BuddyPress offers a tool to customize the Profile Details section. You can admission it by visiting the WordPress administration area and going to Users > Profile Fields. The only field that appears by default is Name (Main), which is a required field. This field serves as the user'south display proper noun on the site; information technology is displayed at the top of the user's profile and as well in activeness items.

The BuddyPress registration form's admin interface in its default state.

Profile fields tin collect a diversity of information from your users. BuddyPress one.viii offers the following field types: text box, multi-line text box, date selector, radio buttons, drop-downward select box, multi select box and checkboxes. Permit's add together a group of radio buttons to collect your users' favorite color upon signup. First, click on the "Add New Field" push.

Add a new field by clicking on "Add New Field"

In this instance, you've added the "field title" (used every bit the label on the registration form) and the "field description" (used as explanatory text on the registration form if not empty), decided that this isn't a required field and entered your first color choice.

Working with the form builder to add new options.

You might need more options, so you can click the link "Add some other option" to add more options until you're satisfied.

Adding more options to my form field.

Whoops, if you didn't enter the colors in the correct order, you can click and drag the options to correct the lodge. If y'all need to remove an pick, you tin can click the [x] to the right of the option.

The form builder allows you to reorder options using drag and drop.

At present you tin set the default visibility setting, add an choice for the user to override the visibility settings, and save the new field.

Visibility settings are on a per-field basis.

The new field appears in the form assistants surface area. Using your other browser (the one that isn't logged into the site), bank check your work by reloading the registration grade.

The updated form includes my new field.

Y'all can alter the order the contour fields announced on the registration course past clicking and dragging to reorder the fields.

Reorder the fields by dragging.

While the new user'southward favorite color is interesting, you've decided that it'south not important enough to clog up the registration form. Instead, you'd like to have a mode for the user to fill up that out after she's registered. This is where profile field groups come into play. Back in the WP contour field admin, detect that the fields are organized under a tab that reads "Base (Main)". This refers to the contour field grouping that the field belongs to. Fields in the "Base" group are displayed on the registration class. You lot can add another group (or more) to collect other data. We'll add together a new group by clicking on the link "Add New Field Group" adjacent to the folio title "Contour Fields."

Add a new group by clicking the button near the page title.

Give the new group a title and clarification, then click on "Create Field Group."

Give the new group a title and description, then click on "Create Field Group."

Now, you can motility the "Favorite Color" field from the "Base" grouping to the "More Details" grouping by dragging it to the "More Details" tab.

Now, I can move the "Favorite Color" field from the "Base" group to the "More Details" group by dragging it to the "More Details" tab.

The "Favorite Colour" field is no longer displayed on the registration course just can be edited via the BuddyPress user profile.

vitalewhoser.blogspot.com

Source: https://codex.buddypress.org/getting-started/guides/modifying-the-registration-form/

0 Response to "Buddy Forms Wordpress"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel