Back to vBulletin 4.x Template Modifications

Login and Password Icons
Mod Version: 1.00, by OldSchoolDSL

vB Version: 4.1.2 Rating: (6 votes - 4.17 average) Installs: 108
Released: 14 Mar 2011 Last Update: Never Downloads: 525
Not Supported Template Edits Re-usable Code  

What does this do?

This modification adds 2 small icons next to your login and password box fields (see screen shot or http://www.sociallyuncensored.com ). This is a code update for previous modification which has become outdated.

Credit
Proof of concept: TheWindows7Site (who inspired this modification)
Author & Developer: Boofo
Beta Tester & Financier: OldSchoolDSL

IMPORTANT Always backup your database before making any modification. Please read all steps carefully.

All template edits will take place in your HEADER template. You will need to download and upload the 2 small image files, before saving the template. You can of course replace these photos with your own, but should keep them the same size.

1. Find:
--------------------------

Code:
<input type="text" class="textbox<vb:if condition="!$username"> default-value</vb:if>" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>" />
--------------------------
ABOVE it add:
--------------------------

Code:
<img style="position: relative; top: 3px;" src="{vb:stylevar imgdir_siteicons}/username.png" alt="Username" />&nbsp;
--------------------------
2. Find:
--------------------------

Code:
<input type="password" class="textbox" tabindex="102" name="vb_login_password" id="navbar_password" size="10" />
--------------------------
ABOVE it add:
--------------------------

Code:
<img style="position: relative; top: 3px;" src="{vb:stylevar imgdir_siteicons}/password.png" alt="Password" />
--------------------------
3. Find:
--------------------------

Code:
<input type="text" class="textbox default-value" tabindex="102" name="vb_login_password_hint" id="navbar_password_hint" size="10" value="{vb:rawphrase password}" style="display:none;" />
--------------------------
AFTER it add:
--------------------------

Code:
&nbsp;<input type="checkbox" name="cookieuser" value="1" id="cb_cookieuser_navbar" class="cb_cookieuser_navbar" accesskey="c" tabindex="103" />
--------------------------
4. Find:
--------------------------

Code:
<div id="remember" class="remember">
					<label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" id="cb_cookieuser_navbar" class="cb_cookieuser_navbar" accesskey="c" tabindex="103" /> {vb:rawphrase remember_me}</label>
				</div>
------------------------------------------
EITHER remove it or replace it with:
------------------------------------------

Code:
<vb:comment>
				<div id="remember" class="remember">
					<label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" id="cb_cookieuser_navbar" class="cb_cookieuser_navbar" accesskey="c" tabindex="103" /> {vb:rawphrase remember_me}</label>
				</div>
				</vb:comment>
--------------------------
Please click INSTALL

Done!
Enjoy!

If you're tired of vBulletin you should upgrade to Woltlab Burning Board http://www.woltlab.com

Download

File Type: %1$s New Login Box (1).zip (6.9 KB, 603 downloads)

Addons

Screenshots

Click image for larger version
Name:	new_login.png
Views:	2815
Size:	4.5 KB
ID:	127415  

Similar Mods

Mini Mods Login Popup - Adds a DHTML popup login form w/ forgotten password & register links vBulletin 3.6 Add-ons

vblts.ru supports vBulletin®, 2022-2024