Forgotten Password Button

Post any general problems, information or issues on ModphpBB3 in here.
Post Reply
User avatar
uk_martin
Forum Member
Forum Member
Posts: 85
Joined: Fri Jan 30, 2009 2:49 pm

Forgotten Password Button

Post 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
User avatar
LDM
Site Admin
Site Admin
Posts: 1786
Joined: Thu May 29, 2008 6:51 pm

Re: Forgotten Password Button

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
uk_martin
Forum Member
Forum Member
Posts: 85
Joined: Fri Jan 30, 2009 2:49 pm

Re: Forgotten Password Button

Post 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?
Post Reply