Login Area

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Xcynic
    Member
    • Jul 2007
    • 32
    • 4.2.x

    [Forum] Login Area

    Hello. I'm in the process of coding a style to work with vBulletin but I've encountered an issue with the login area. More specifically the password box.

    Everytime you click on it it disapears and jumps up besides the username area. I will provide you with a link so you can see it for yourself.

    We help you acquire the perfect domain for your site. Affordable payment options. Quick and responsive customer support available.


    Just click on the password box and you'll see what I'm talking about.

    Any help is appreciated!
  • Abdulla Ashoor
    Senior Member
    • Feb 2005
    • 628
    • 5.6.4

    #2
    Find those lines on your templates and update/delete them to satisfy your needs of customization:

    Code:
    <script type="text/javascript">
    			YAHOO.util.Dom.setStyle('navbar_password_hint', "display", "inline");
    			YAHOO.util.Dom.setStyle('navbar_password', "display", "none");
    			vB_XHTML_Ready.subscribe(function()
    			{
    			//
    				YAHOO.util.Event.on('navbar_username', "focus", navbar_username_focus);
    				YAHOO.util.Event.on('navbar_username', "blur", navbar_username_blur);
    				YAHOO.util.Event.on('navbar_password_hint', "focus", navbar_password_hint);
    				YAHOO.util.Event.on('navbar_password', "blur", navbar_password);
    			});
    			
    			function navbar_username_focus(e)
    			{
    			//
    				var textbox = YAHOO.util.Event.getTarget(e);
    				if (textbox.value == 'User Name')
    				{
    				//
    					textbox.value='';
    					textbox.style.color='#000000';
    				}
    			}
    
    			function navbar_username_blur(e)
    			{
    			//
    				var textbox = YAHOO.util.Event.getTarget(e);
    				if (textbox.value == '')
    				{
    				//
    					textbox.value='User Name';
    					textbox.style.color='#777777';
    				}
    			}
    			
    			function navbar_password_hint(e)
    			{
    			//
    				var textbox = YAHOO.util.Event.getTarget(e);
    				
    				YAHOO.util.Dom.setStyle('navbar_password_hint', "display", "none");
    				YAHOO.util.Dom.setStyle('navbar_password', "display", "inline");
    				YAHOO.util.Dom.get('navbar_password').focus();
    			}
    
    			function navbar_password(e)
    			{
    			//
    				var textbox = YAHOO.util.Event.getTarget(e);
    				
    				if (textbox.value == '')
    				{
    					YAHOO.util.Dom.setStyle('navbar_password_hint', "display", "inline");
    					YAHOO.util.Dom.setStyle('navbar_password', "display", "none");
    				}
    			}
    			</script>
    Seems this script in the 'header' template.
    Please feel free to contact me if you have any questions or concerns

    Links: vBulletin Manual - Code Documentation - FAQ - Bug Tracker - Lemon Juice
    vBulletin 5 Connect: Extensions - Articles - Features - Purchases

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    😀
    😂
    🥰
    😘
    🤢
    😎
    😞
    😡
    👍
    👎