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
SOLVED: FrontEndUsers does not show lost username form
-
faglork
SOLVED: FrontEndUsers does not show lost username form
Last edited by faglork on Thu Jan 16, 2014 7:36 pm, edited 1 time in total.
Re: FrontEndUsers does not show lost username form
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:
HTH
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}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.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?
HTH
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
-
faglork
Re: FrontEndUsers does not show lost username form
That did it - many thanks!
Cheers,
Alex
Cheers,
Alex
Re: SOLVED: FrontEndUsers does not show lost username form
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
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
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.
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.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Re: SOLVED: FrontEndUsers does not show lost username form
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
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


