PDA

View Full Version : Lost password link.


TosaInu
08-31-2004, 04:00 PM
Hello,

I've added a lost password link in the header template, near the logo <center>
<b><a href ="http://forums.totalwar.org/vb/login.php?do=lostpw">Lost/reset password.</a></b></center>. But it's ugly.

I like to move it to the userbar unregistered visitors see or here

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Or maybe eveven more convenient in the login box. Or maybe all 3. Which templates to edit?

TosaInu
08-31-2004, 04:38 PM
Templates/navbar. Find


</tr>
</table>
</div>
<!-- / nav buttons bar -->

And add above


<!-- lost -->
<if condition="$show['registerbutton']">
<td class="vbmenu_control"><a href ="login.php?do=lostpw">Lost Password</a></td>
</if>

Warning
This will show the link for a visitor and hideit for users who are logged in. But it will likely require you to allow new registrations. If the board is closed, it will not show. You may then use the persistent:


<!-- lost -->
<td class="vbmenu_control"><a href ="login.php?do=lostpw">Lost Password</a></td>

TosaInu
08-31-2004, 05:39 PM
And to make it in the login form.

Find in Templates/navbar


<else />

<td class="alt2" nowrap="nowrap" style="padding:0px">

<!-- login form -->
<form action="login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password,vb_ login_md5password_utf)">
<script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>


add below


<td class="smallfont"><a href ="login.php?do=lostpw">Lost Password</a></td>
</tr>
<tr>

Blackbeard
09-01-2004, 08:40 AM
How about in the footer? great work