Page 1 of 1

Forgotten Password Button

Posted: Thu May 14, 2009 10:58 pm
by uk_martin
Hi

How would it be possible to add a "Forgotten Password Button" to the login block on the Portal?

The current design can leave people a bit cold if they can't remember their password, as pressing the login button without filling in at least an attempt at a u/n and p/w isn't exactly the intuitive thing to do. OK if they do that they come to a page that has the lost password link, but it would be far better to have that in the login block (plenty of space for a button of the same design as the "login" button rather than have a text link I'd have thought.)

Be interested to hear if this can be done.

Thanks in advance

Martin

Re: Forgotten Password Button

Posted: Fri May 15, 2009 12:55 pm
by LDM
Martin, open styles/prosilver/template/portal/block/login_box.html

Find:

Code: Select all

<span class="genmed">{L_PASSWORD}:</span><br />
<input type="password" tabindex="2" id="password" name="password" size="25" class="inputbox autowidth" /> 
Add after:

Code: Select all

<dd><a href="/ucp.php?mode=sendpassword">{L_FORGOT_PASS}</a></dd>
If your forum is in a sub diretory, add the directory before the /ucp.php part, to make

Code: Select all

<dd><a href="/forum/ucp.php?mode=sendpassword">{L_FORGOT_PASS}</a></dd>
etc.

This will add the link under the box like this..
loginbox.png

Re: Forgotten Password Button

Posted: Sat May 16, 2009 3:08 am
by uk_martin
Thanks for that. Nearly there now. Any idea why the forgotten password link goes to the /ucp.php?mode=login page even if the /ucp.php?mode=sendpassword script is used?