user module custom error pages? 
Posted: 27 February 2008 11:37 AM   [ Ignore ]
Sr. Member
RankRankRankRank
Total Posts:  153
Joined  2007-02-19

Any way to create custom error pages when using the user module for register forms, etc.?

If I have a register form and lets say someone tries to sign up with the username “thomas5” but someone else already is using that name, it will give them the default EE error message which takes the user out of the current page and off to that ugly EE template. Didn’t know if there was a way to customize the error messages so that they displayed inside of one of the regular site templates so they were consistent with the look and feel of the rest of the site?

I can validate the majority of the form fields inline with some jQuery magic, but in this case if someone enters a username that’s already been chosen, it will take them to the EE template. I’ve seen sites before like when signing up for gmail as an example that validates the username field as you type and lets you know instantly if the name is taken. Either something like that or simply a way to have error messages show up inside my regular templates would be awesome.

-Deron

Profile
 
 
Posted: 27 February 2008 11:42 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  701
Joined  2004-03-30

Deron,

You could use jQuery to create an AJAX form post to an EE template. That template would feed the username into a query module call that would check it against the DB. You could return AJAXy dynamic feedback this way.

mk

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 27 February 2008 11:47 AM   [ Ignore ]   [ # 2 ]
Sr. Member
RankRankRankRank
Total Posts:  153
Joined  2007-02-19

hmmm, sounds difficult. wink

With my very novice experience with jQuery and the query module, I’m not sure this is something I could tackle at the current time. I may just have to settle for the default EE error pages for this instance.

Profile
 
 
Posted: 27 February 2008 11:52 AM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  701
Joined  2004-03-30

Sorry Deron. We’ll try and get some sample AJAX code together one of these days.

mk

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 27 February 2008 12:07 PM   [ Ignore ]   [ # 4 ]
Sr. Member
RankRankRankRank
Total Posts:  153
Joined  2007-02-19

No problem Mitchell. Just having the ability to throw the member stuff into normal templates is good enough for me. I was just getting greedy. wink

The user module is fantastic in my experience thus far. Wish I would have had time to try it a long time ago when you first enlightened me to it.

Profile
 
 
Posted: 01 May 2008 03:03 AM   [ Ignore ]   [ # 5 ]
Member
RankRankRank
Total Posts:  77
Joined  2008-04-29

Will have to revive this post? Is this still an unresolved issue in the new updates that it reverts back to the regular template rather than a custom one? I can imagine this having quite often on large production sites, so I wouldn’t be surprised if this comes up more than once.

So if somebody entered data that is already within the database, does this mean, by default, that the User module does not return the user to this registration page?

Cheers,
D.

Profile
 
 
Posted: 01 May 2008 06:41 AM   [ Ignore ]   [ # 6 ]
Sr. Member
RankRankRankRank
Total Posts:  153
Joined  2007-02-19

It will return the user to the registration page, but only after they click “go back” or whatever the verbiage is on the error page (I can’t remember what it is exactly).

Profile
 
 
Posted: 01 May 2008 06:45 AM   [ Ignore ]   [ # 7 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3343
Joined  2006-10-18

Custom Return / Error pages is on our list for future features smile

 Signature 
Profile