Screen name error on user registration
Posted: 23 March 2005 11:11 AM   [ Ignore ]  
Research Assistant
RankRankRank
Total Posts:  519
Joined  08-11-2004

For various reasons, I’ve commented out the screen name option in the user registration form.

However, now when users register they get the following error:

Notice: Undefined index: screen_name in
/httpdocs/system/modules/member/mod.member.php on line 3092

EE seems to be looking for the screen_name field on that line and spitting out the error. I haven’t tried commenting out that line as I disliked the idea of modifying core files.

So, is there a way I can get around this error in the EE control panel?

Profile
 
 
Posted: 23 March 2005 12:02 PM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7534
Joined  08-05-2002

Instead of commenting it out, change it to a hidden field that has a value of nothing.  EE will then, by default, make a person’s screen name the same as their username.

 Signature 
Profile
 
 
Posted: 23 March 2005 01:55 PM   [ Ignore ]   [ # 2 ]  
Research Assistant
RankRankRank
Total Posts:  519
Joined  08-11-2004

Thank you, that works.

To my fellow newbies, what you have to do is change the input value to “hidden”

I took that cut and paste the entire line, putting it right after the submit button. Since it’s hidden it doesn’t show up.

Then i deleted the entire table row that housed the screen data, so the info wouldn’t be there to confuse users.

Works like a charm!

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64978 Total Logged-in Users: 21
Total Topics: 82016 Total Anonymous Users: 21
Total Replies: 440814 Total Guests: 189
Total Posts: 522830    
Members ( View Memberlist )