Page 1 of 1

disable display name on profile page

PostPosted: September 8th, 2011, 4:01 pm
by antseo
is there a way to disable the display field on the profile page. The field is called: ws_plugin__s2member_profile_display_name

If so, which page would I edit? I'm using the Member Profile Modifications feature.

Re: disable display name on profile page

PostPosted: September 9th, 2011, 1:46 am
by Cristián Lávaque
Could you show me a screenshot of that, please? Thanks. :)

Re: disable display name on profile page

PostPosted: September 11th, 2011, 9:34 pm
by antseo
Hi Cristian. Actually, I used the script that Jason created where it uses the beginning part of the email address to create the username which has worked but I'm just trying to now disable that username or hide it so that the user cannot edit it on sign up. However, I get the error that it must be filled in. Anyway to prevent the user from creating a username from the registration sign up?

Re: disable display name on profile page

PostPosted: September 16th, 2011, 3:46 am
by Cristián Lávaque
You could try hiding the field using CSS.

Re: disable display name on profile page

PostPosted: September 16th, 2011, 8:02 am
by antseo
okay, yes that's a great suggestion. I'll give that a try.

Re: disable display name on profile page

PostPosted: September 17th, 2011, 7:07 pm
by antseo
So Cristian, I'm using the Member Profile Modifications in s2member and on the profile page, I need to hide a field and label. Which css file do I modify?

Re: disable display name on profile page

PostPosted: September 25th, 2011, 12:30 am
by Cristián Lávaque
Look for the ID of the input field in the HTML. For the label, if it or the parent tag don't have an ID, you could use the sibling selector and the input's ID. http://css-tricks.com/5514-child-and-sibling-selectors/