ExpressionEngine Docs

Member Profile Templates - Legacy

Important: The Member Profile Templates are legacy as of ExpressionEngine 6. If you have to use them, it is required to set legacy_member_templates config override.

Overview

In order for this feature to be available, it needs to be enabled by adding

    $config['legacy_member_templates'] = 'y';

to your config.php file.

Note: When upgrading from an earlier version of ExpressionEngine to v6 or when Forum module is installed, the legacy_member_templates config override will automatically be set to ‘y’.

Member Profile Templates

Theme assets such as images are located in your installation under themes/ee/member/default/. Theme templates are located under system/ee/templates/_themes/member/.

To customize the templates:

  1. Copy themes/ee/member/theme_name/ to themes/user/member/custom_theme_name/
  2. Copy system/ee/templates/_themes/member/theme_name/ to system/user/templates/_themes/member/custom_theme_name/

Note: Any changes made to files in themes/ee/or system/ee/ will be lost during an update. Customized themes must be saved in the themes/user/ or system/user/ folder.

Templates in system/user/templates/_themes/member/ can be edited with a text editor, or you may choose to edit them via your Control Panel at Developer --> Templates --> Members.

To make edits to the templates from inside the Control Panel, set the system/user/templates/_theme/ folders and files to be writable. See File Permissions for details. Only themes in the system/user/templates/_theme/ folder will be available for editing in the Control Panel.

If you do create a custom theme, you may set it as the site default under Settings --> Member Settings

Note: When building your member profile templates, consider that any external links will pass along referrer data. This can cause security problems if someone clicks on an external link from a secure page. For example, if a user clicks an external link from the password reset page, the external site could use the password reset link from the referrer data to gain access to a user’s account. You can strip everything but the base URL by linking to {path=""}?URL=<your url>.

Creating Member Links

You can create links that point to various profile template powered member-related pages, enable visitors to sign-up for an account, log-in, log-out, edit their profile, etc.

Log In

This link points to the personal profile login page. To create the link, use this variable:

{path='member/login'}

Place the variable inside of a link tag:

<a href="{path='member/login'}">Log In</a>

Registration Page

This link points to the member registration page. To create the link, use this variable:

{path='member/register'}

Place the variable inside of a link tag:

<a href="{path='member/register'}">Register as a new member</a>

View Memberlist

This link points to the page showing a list of all registered members. To create the link, use this variable:

{path='member/memberlist'}

Place the variable inside of a link tag:

<a href="{path='member/memberlist'}">View the Memberlist</a>

Member Profile Page

This link points to the personal profile page of the logged-in user, allowing them to edit any of their settings. To create the link, use this variable:

{path='member/profile'}

Place the variable inside of a link tag:

<a href="{path='member/profile'}">Edit your profile</a>

When the link is rendered it will appear similar to: https://example.com/member/profile/

Forgotten Password?

This link points to the page where users can retrieve their password:

{path='member/forgot_password'}

Place the variable inside of a link tag:

<a href="{path='member/forgot_password'}">Forget your password?</a>