Page 1 of 1

Required fields changeable

PostPosted: December 29th, 2011, 1:37 pm
by FarChris
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.

Re: Required fields changeable

PostPosted: December 29th, 2011, 3:59 pm
by Raam Dev
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.

Re: Required fields changeable

PostPosted: January 5th, 2012, 8:31 pm
by Raam Dev
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.