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™

Required fields changeable

s2Member Plugin. A Membership plugin for WordPress®.

Required fields changeable

Postby FarChris » December 29th, 2011, 1:37 pm

Hello,

in my registration form the login, first and last name are required.
But the first and lastname can be changed again in the profile.
How can I make this two fields not changeable?

Thank you for answers.
User avatar
FarChris
Registered User
Registered User
 
Posts: 3
Joined: December 28, 2011

Re: Required fields changeable

Postby Raam Dev » December 29th, 2011, 3:59 pm

Hi FarChris,

I don't believe there's a template to modify those two fields and make them not changeable, but I'm going to check with another support rep and get back to you.

Thank you for your patience.
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011

Re: Required fields changeable

Postby Raam Dev » January 5th, 2012, 8:31 pm

FarChris,

These two files handle the display of Profile editing forms.

1. This one handles the stand-alone version that normally opens in a popup window.
/s2member/includes/classes/profile-in.inc.php

2. This one handles the Shortcode [s2Member-Profile /]
/s2member/includes/classes/sc-profile-in.inc.php

This file handles form processing for both variations.
/s2member/includes/classes/profile-mods-in.inc.php

You can edit those files to force the First Name and Last Name input fields to be disabled by adding disabled="disabled" to the elements.

Keep in mind these are core files, so those changes will be overwritten when upgrading s2Member.
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011


Return to s2Member Plugin

Who is online

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

cron