Page 1 of 1

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

Posted: Thu Apr 23, 2009 4:38 pm
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

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

Posted: Fri Apr 24, 2009 8:59 am
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