The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Turn autocomplete off in login form
Hi all,
for a recent project, my boss asks me to implement the autocomplete=off html attribute in the login form. Do you know in which file I have to edit the login form? And if it's a good idea at all? Everybody is like; well it's more secure, but it's also annoying I think. Regards, |
#2
|
||||
|
||||
I would recommend using jquery
Code:
$('.autoDisable').attr('autocomplete','off'); Code:
class="autoDisable" for example on the username input field before Code:
<input type="text" class="textbox default-value" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="User Name" style="color: rgb(130, 130, 130); "> Code:
<input type="text" class="textbox default-value autoDisable" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="User Name" style="color: rgb(130, 130, 130); "> |
#3
|
|||
|
|||
Thanks for your reply sir. Would it be advisable to do that on the username or password field?
And which files contain the username input field code you quoted above? |
#4
|
||||
|
||||
couldnt hurt to do both. remember to include the jquery library in order for the jquery code to work (when placed in javascript element). Username/password code is in the header template.
--------------- Added [DATE]1323020021[/DATE] at [TIME]1323020021[/TIME] --------------- here is the actual code for the username/password fields 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>" /> <input type="password" class="textbox" tabindex="102" name="vb_login_password" id="navbar_password" size="10" /> <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;" /> |
#5
|
|||
|
|||
I know this thread is old but Im lost on the use jquery usage.
Very lost and trying to solve the same issue as djvd-sammobile |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|