Page 1 of 1

SOLVED: FrontEndUsers does not show lost username form

Posted: Thu Jan 16, 2014 4:37 pm
by faglork
Strange:

I have {FrontEndUsers} in the sidebar (page template).

When I click "Have you forgotten your password?" the lost password form is shown, this works ...

But when I click "Have you forgotten your username?" only the heading of the "lost username form" (as defined in the template) is shown, but nothing else, no form.

Now, in the template, right before the form, there is this:
{if $controlcount > 0}

So, obviously, $controlcount is not set or 0. What does that mean?

Any ideas, anyone?

All versions are up to date.

Cheers,
Alex

Re: FrontEndUsers does not show lost username form

Posted: Thu Jan 16, 2014 6:53 pm
by Jo Morg
I had this problem on one site I was working on... I don't have time to test it at the moment but try this:

Code: Select all

{* lost username confirm template form *}
<h4>{$title}</h4>
{if isset($message)}<h5 class="error">{$message}</h5>{/if}
  {$startform}{$hidden}
    <div class="pagerow">
      <div class="page_prompt">{$prompt_password}</div>
      <div class="page_input">
        <input type="password" name="{$actionid}feu_input_password" size="{$passwdfldlength}" maxlength="{$max_paswordlength}"/>
      </div>
    </div>
  {if $controlcount > 0}
    {foreach from=$controls item='entry'}
       <div class="pagerow">
          <div class="page_prompt">{$entry->hidden}{$entry->prompt}</div>
          <div class="page_input">{$entry->control}{$entry->addtext|default:''}</div>
       </div>
    {/foreach}
  {/if}
    {if isset($captcha) && isset($input_captcha)}
    <div class="pagerow">
      <p class="page_prompt">{$captcha_title}</div>
      <p class="page_input">{$input_captcha}<br/>{$captcha}</p>
    <div class="pagerow">{$submit}{$cancel}</div>
    {/if}
    <div class="pagerow">
      <div class="page_prompt"></div>
      <div class="page_input">
        <input type="submit" name="{$actionid}submit" value="{$FrontEndUsers->Lang('submit')}"/>
        <input type="submit" name="{$actionid}cancel" value="{$FrontEndUsers->Lang('cancel')}"/>
      </div>
    </div>
  {$endform}
faglork wrote:Now, in the template, right before the form, there is this:
{if $controlcount > 0}

So, obviously, $controlcount is not set or 0. What does that mean?

Any ideas, anyone?
I believe the {if $controlcount > 0} is not where it should be and that is what I changed. $controls hold custom fields IIRC, so if there are none count is 0.
HTH

Re: FrontEndUsers does not show lost username form

Posted: Thu Jan 16, 2014 7:36 pm
by faglork
That did it - many thanks!

Cheers,
Alex

Re: SOLVED: FrontEndUsers does not show lost username form

Posted: Thu Feb 13, 2014 12:38 pm
by janvl
Hi,

First of all thanks for the solution.

it solves the main problem, just I get a double set of submit and cancel buttons maybe because I use a captcha?

you can see it here
http://neu.karin-schmuck.net/index.php? ... gin-logout

I am (stil) trying to put a functioning complete and working shopsolution in 3 languages on the forum, updates and little time gave the delay.

Kind regards,
Jan

Re: SOLVED: FrontEndUsers does not show lost username form

Posted: Thu Feb 13, 2014 12:53 pm
by Jo Morg
Yes, for some reason there is an extra set of submit and cancel buttons inside the capcha conditional on the template...
just comment out or remove: <div class="pagerow">{$submit}{$cancel}</div> right after the <p class="page_input">{$input_captcha}<br/>{$captcha}</p>. That should solve it.

Re: SOLVED: FrontEndUsers does not show lost username form

Posted: Thu Feb 13, 2014 1:55 pm
by janvl
Big thanks,

I was uncertain on which to remove.
Just corrected it.

Now I should do my best to put the complete site as a download on the forum.

Kind regards,
JAn