2017 © Pedro Peláez
 

silverstripe-module memberprofiles

Member registration and profile management

image

silverstripe/memberprofiles

Member registration and profile management

  • Thursday, September 29, 2016
  • by ajshort
  • Repository
  • 2 Watchers
  • 1 Stars
  • 2,582 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 68 Forks
  • 0 Open issues
  • 9 Versions
  • 1 % Grown

The README.md

SilverStripe Member Profile Pages Module

Maintainer Contacts

Requirements

Installation Instructions

  1. Place this directory in the root of your SilverStripe installation.
  2. Visit yoursite.com/dev/build to rebuild the database.

Usage Overview

A new page type is added in the CMS called a "Member Profile Page". This allows you to create a page that allows users to register and/or manage their profile. Registration can be enabled or disabled in the "Behaviour" tab., (*1)

Content

The "Profile", "Registration" and "After Registration" allow you to set an individual title and content to display for each of these contexts., (*2)

Profile Fields

In the "Main" tab you are presented with a table to manage the fields that a user is presented with on the profile page. These are automatically kept in sync with the Member object., (*3)

You can control if the field is shown on registration, or to already registered users. You can also give it a custom title, and for some fields a default value that is pre-populated on registration. You can also specify if the field is required, or should be unique across all messages. A custom error message can also be set to display if there are any validation errors., (*4)

Groups

You can choose a set of groups that are attached to the profile page. When a user registers they will be added to these groups, and an existing Member must belong to these groups in order to edit their profile on this profile page., (*5)

In addition to the fixed group membership, users are also able to select optional groups to belong to (if desired). The list of groups they can select from is chosen in the bottom group list. To actually let users select, the "Groups" field must be made editable in the list of fields above., (*6)

Validation

The "Validation" tab makes it possible to enable email validation, which means that a user must click on a link emailed to them before they can log in., (*7)

If a user loses their confirmation email, or you wish to manually confirm an account you can do so via the "Security" CMS section - just click on a member and there will be a dropdown down the bottom allowing you to perform these actions., (*8)

Template Usage

You can link to the profile page with the optional ?BackURL= parameter which will set a URL that the user will be redirected to after they complete registration. This requires the "RegistrationRedirect" property to be set on the After Registration tab., (*9)

If you like, you can manually set a redirection target by setting Session::set('MemberProfile.REDIRECT') to a URL value., (*10)

Examples

Custom Fields

This example shows how to add a custom phone number field to the Member object which is available on the member profile page. You do this by using an extension to add the database field, and then hooking into Member::updateMemberFormFields to add the form field. The module then picks this form field up and makes it available in the CMS., (*11)

class MemberExtension extends DataExtension {

  private static $db = array(
    'PhoneNumber' => 'Text'
  );

  public function updateMemberFormFields(FieldList $fields) {
    $fields->push(new TextField('PhoneNumber', 'Phone number'));
  }

}

Known Issues

Issue Tracker, (*12)

The Versions

29/09 2016

dev-patch-1

dev-patch-1

Member registration and profile management

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrew Short

registration profile silverstripe member

28/09 2016

dev-master

9999999-dev

Member registration and profile management

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrew Short

registration profile silverstripe member

22/05 2016

1.2.1

1.2.1.0

Member registration and profile management

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrew Short

registration profile silverstripe member

11/04 2016

1.2.0

1.2.0.0

Member registration and profile management

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrew Short

registration profile silverstripe member

13/03 2015

1.1.1

1.1.1.0

Member registration and profile management

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrew Short

registration profile silverstripe member

27/11 2014

1.1.x-dev

1.1.9999999.9999999-dev

Member registration and profile management

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrew Short

registration profile silverstripe member

27/11 2014

1.1.0

1.1.0.0

Member registration and profile management

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrew Short

registration profile silverstripe member

16/09 2013

1.0.x-dev

1.0.9999999.9999999-dev

Member registration and profile management

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrew Short

registration profile silverstripe member

14/12 2012

dev-development

dev-development

Member registration and profile management

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrew Short

registration profile silverstripe member