Display error from frontenduser in {content} instead of where form exists

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
lampsie
Forum Members
Forum Members
Posts: 38
Joined: Fri Nov 17, 2006 9:25 am

Display error from frontenduser in {content} instead of where form exists

Post by lampsie »

Hi,
Hoping the subject line pretty much sums up my query...I have inserted the FEU login form into a very narrow space in my template...problem occurs if user enters invalid username/password, as the error gets displayed alongside the form. I can't quite figure out a way to either:
a) Make FEU default all errors to a page_alias
b) Hide the error text in the form login template in FEU, and instead display in the {content}

Can anyone help?

Thanks,
Lampsie
lampsie
Forum Members
Forum Members
Posts: 38
Joined: Fri Nov 17, 2006 9:25 am

Re: Display error from frontenduser in {content} instead of where form exists

Post by lampsie »

Ok, figured this one out :)

In my Login Template in FEU module, I replaced the error section with this:

Code: Select all

{$startform}
{if $error}
  {capture assign=login_error}{$error}{/capture}
{/if}
Then, in my main template, I placed in this:

Code: Select all

{if $login_error neq ""}<font color="red"><b>Client login error:</b> {$login_error}</font><br /><br />{/if}
{content}
hope this helps someone :)
lampsie
Post Reply

Return to “Modules/Add-Ons”