vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Miscellaneous Hacks - TW7S - Change the look of the Login/Register in header (https://vborg.vbsupport.ru/showthread.php?t=231916)

wishtheend 09-30-2010 03:06 PM

With the default 4.0.7 layout - it hides the password field. Is there a way to basically move it all to the left so the password field, is not hidden? Here's my header

PHP Code:

<div class="above_body"> <!-- closing tag is in template navbar -->
<
div id="header" class="floatcontainer doc_header">
    <
div><a name="top" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}" class="logo-image"><img src="{vb:stylevar titleimage}" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a></div>
    <
div id="toplinks" class="toplinks">
        <
vb:if condition="$show['member']">
            <
ul class="isuser">
                <
li><a href="login.php?{vb:raw session.sessionurl}do=logout&amp;logouthash={vb:raw bbuserinfo.logouthash}" onclick="return log_out('{vb:rawphrase sure_you_want_to_log_out}')">{vb:rawphrase log_out}</a></li>
                <
vb:if condition="$show['registerbutton']">
                <
li><a href="register.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase register}</a></li>
                </
vb:if>
                <
li><a href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase control_panel}</a></li>
                <
li><a href="{vb:link member, {vb:raw bbuserinfo}}">{vb:rawphrase your_profile}</a></li>
                <
vb:if condition="$notifications_total">
                <
li class="popupmenu notifications" id="notifications">
                    <
class="popupctrl" href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase your_notifications}: <span class="notifications-number"><strong>{vb:raw notifications_total}</strong></span></a>
                    <
ul class="popupbody popuphover">
                        {
vb:raw notifications_menubits}
                    </
ul>
                </
li>
                <
vb:else />
                <
li class="popupmenu nonotifications" id="nonotifications">
                    <
class="popupctrl" href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase your_notifications}</a>
                    <
ul class="popupbody popuphover">
                        <
li>{vb:rawphrase no_new_messages}</li>
                        <
li><a href="private.php{vb:raw session.sessionurl_q}">{vb:rawphrase inbox}</a></li>
                    </
ul>
                </
li>
                </
vb:if>
                <
li class="welcomelink">{vb:rawphrase welcome_x_link_y, {vb:raw bbuserinfo.username}, {vb:link member, {vb:raw bbuserinfo}}}</li>
                <
vb:if condition="$vboptions['enablefacebookconnect']">
                    {
vb:raw facebook_header}
                </
vb:if>
            </
ul>
            {
vb:raw template_hook.header_userinfo}
            <
vb:comment><p>{vb:rawphrase last_visited_x_at_y, {vb:raw pmbox.lastvisitdate}, {vb:raw pmbox.lastvisittime}}</p></vb:comment>
        <
vb:else />
            <
ul class="nouser">
            <
vb:if condition="$show['registerbutton']">
                <
li><a href="register.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase register}</a></li>
            </
vb:if>
                <
li><a rel="help" href="faq.php{vb:raw session.sessionurl_q}">{vb:rawphrase help}</a></li>
                <
li>
            <
script type="text/javascript" src="clientscript/vbulletin_md5.js?v={vb:raw vboptions.simpleversion}"></script>
            <
form id="navbar_loginform" action="login.php?{vb:raw session.sessionurl}do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, {vb:raw show.nopasswordempty})">
                <
fieldset id="logindetails" class="logindetails">
                    <
div>
                        <
div>
                    <
style type="text/css">
.
toplinks form img {
        
position:relative;  
        
top3px;        

</
style>

<
img src="./images/icons/username.png" alt="Username" />

                    

<
input id="navbar_username" class="bginput" type="text" onblur="if (this.value == '') this.value = 'Username';" onfocus="if (this.value == 'Username') this.value = '';" value="Username" tabindex="101" accesskey="u" size="10" name="vb_login_username" style="font-size: 11px;"/>

<
img src="./images/icons/password.png" alt="Password" />

                    <
input id="navbar_password" class="bginput" type="password" onblur="if (this.value == '') this.value = '';" onfocus="if (this.value == 'Password') this.value = '';" value="Password" tabindex="102" accesskey="u" size="10" name="vb_login_password" style="font-size: 11px;/>


                    

<label for="
cb_cookieuser_navbar">
<input id="
cb_cookieuser_navbar" type="checkbox" accesskey="c" tabindex="103" value="1" name="cookieuser" checked="checked"/>  
</label>
                

                    <input type="
submit" class="loginbutton" value="Login" tabindex="104" title="{vb:rawphrase enter_username_to_login_or_register}" accesskey="s" />
                        </div>
                    </div>
                </fieldset>


                
            
                <input type="
hidden" name="s" value="{vb:raw session.sessionhash}" />


                <input type="
hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
                <input type="
hidden" name="do" value="login" />
                <input type="
hidden" name="vb_login_md5password" />
                <input type="
hidden" name="vb_login_md5password_utf" />
            </form>    


            <script type="
text/javascript">
            YAHOO.util.Dom.setStyle('navbar_password_hint', "
display", "inline");
            YAHOO.util.Dom.setStyle('navbar_password', "
display", "none");
            YAHOO.util.Dom.setStyle('navbar_username', "
color", "#828282");
            
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 == '<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>')
                {
                
//
                    
textbox.value='';
                    
textbox.style.color='black';
                }
            }

            function 
navbar_username_blur(e)
            {
            
//
                
var textbox YAHOO.util.Event.getTarget(e);
                if (
textbox.value == '')
                {
                
//
                    
textbox.value='<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>';
                    
textbox.style.color='#828282';
                }
            }
            
            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>
                </
li>
                <
vb:if condition="$vboptions['enablefacebookconnect']">
                    {
vb:raw facebook_header}
                </
vb:if>
            </
ul>
        </
vb:if>
    </
div>
    <
div class="ad_global_header">
        {
vb:raw ad_location.global_header1}
        {
vb:raw ad_location.global_header2}
    </
div>
    <
hr />
</
div


BioWaffen 10-06-2010 09:38 AM

I had the same problem like wishtheend with 4.0.7, the password field has just gone away...
But for 4.0.4 - 4.0.7 there is the same hack just in another topic here, check this out:
https://vborg.vbsupport.ru/showthread.php?t=246683

Best regards
BioWaffen

nkumaran 10-11-2010 10:06 AM

[QUOTE=BioWaffen;2107328]I had the same problem like wishtheend with 4.0.7, the password field has just gone away...
But for 4.0.4 - 4.0.7 there is the same hack just in another topic here, check this out:
https://vborg.vbsupport.ru/showthread.php?t=246683


Thanks ...

2fast4ya 10-11-2010 05:48 PM

When I do this, I'm getting the following error: "adding child to non-existent node!"

Running version 4.0.6

0verl0rd 10-22-2010 02:13 PM

Awesome! Tagged....

damn i have tagged around 10 mods... i hope to do them all! LOL..

lubbie 10-24-2010 12:38 PM

Does anyone know how to get the Checkbox back where it was before the update to 4.0.8?
Mine is now at the beginning of the very left side.

emath 11-03-2010 12:53 PM

how can i make the login to be like in the demo : http://thewindows7site.com/forum/index.php

?

thanks

Sforums 12-22-2010 04:41 AM

I have been using this thing on previous versions of vb without any problems. Does it work with 4.1?

Sforums 12-22-2010 04:53 AM

Ok, just tried it and it doesn't work.

Quote:

adding child to non-existent node!
Too bad, I really like this stuff.

chriske 12-22-2010 01:24 PM

Yeah this should be standard in vb. With every update of vb i have to reinstal this mod :( (header template needs to be reverted almost every time unfortunately)

Currently uninstalled, hoping for a fix.

Gemma 12-22-2010 02:16 PM

Quote:

Originally Posted by Sforums (Post 2137498)
I have been using this thing on previous versions of vb without any problems. Does it work with 4.1?

I've got it running on vB 4.1 but I added mine below the navbar instead of into the header

Neptun 01-04-2011 06:30 PM

can you fix this for vb 4.1 ?

Kirk.H 01-04-2011 06:50 PM

thank you :)

OldSchoolDSL 01-04-2011 07:48 PM

edit: never mind (quoted wrong thread)

OldSchoolDSL 01-04-2011 08:16 PM

An update for 4.1 PL2

would be very nice (please & thank you)

OldSchoolDSL 01-04-2011 08:19 PM

Quote:

Originally Posted by Gemma (Post 2137640)
I've got it running on vB 4.1 but I added mine below the navbar instead of into the header

Care to explain a little more?

OldSchoolDSL 01-25-2011 01:47 AM

I've been trying to add this and every time the "password box" is missing.

Anyone willing to update this for 4.1.1 ?

OldSchoolDSL 02-02-2011 10:49 PM

PHP Code:

<script type="text/javascript">
if(
document.location.protocol=='http:'){
 var 
Tynt=Tynt||[];Tynt.push('b581mmdtar4jEradbi-bpO');Tynt.i={"b":true};
 (function(){var 
s=document.createElement('script');s.async="async";s.type="text/javascript";s.src='http://tcr.tynt.com/ti.js';var h=document.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h);})();
}
</
script>
<
vb:if condition="$bbuserinfo['usergroupid'] == 8">
<
meta HTTP-EQUIV="REFRESH" content="0;url=http://www.sociallyuncensored.com/banned.html">
</
vb:if>
<
script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<
link type="text/css" href="/forums/cometchat/cometchatcss.php" rel="stylesheet" charset="utf-8">
<
script type="text/javascript" src="/forums/cometchat/cometchatjs.php" charset="utf-8"></script>
<
div class="above_body"> <!-- closing tag is in template navbar -->
<
div id="header" class="floatcontainer doc_header">
    <
div><a name="top" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}" class="logo-image"><img src="{vb:stylevar titleimage}" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a></div>
    <
div id="toplinks" class="toplinks">
        <
vb:if condition="$show['member']">
            <
ul class="isuser">
                <
li><a href="login.php?{vb:raw session.sessionurl}do=logout&amp;logouthash={vb:raw bbuserinfo.logouthash}" onclick="return log_out('{vb:rawphrase sure_you_want_to_log_out}')">{vb:rawphrase log_out}</a></li>
                <
vb:if condition="$show['registerbutton']">
                <
li><a href="register.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase register}</a></li>
                </
vb:if>
                <
li><a href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase control_panel}</a></li>
                <
li><a href="{vb:link member, {vb:raw bbuserinfo}}">{vb:rawphrase your_profile}</a></li>
                <!-- 
TW7S - New Way To Display Notifications (jQuery,CSS,jGrowl) -->
<
vb:if condition="$notifications_total">
<
script type="text/javascript">

$.
jGrowl('{vb:raw notifications_menubits} <br />You must view your notification(s) before this box will disappear.' , { stickytrueheader 'New Notification(s)' } );

</
script>
</
vb:if>

<
li><a href="private.php{vb:raw session.sessionurl_q}">{vb:rawphrase inbox}</a></li>
<!-- 
TW7S - New Way To Display Notifications (jQuery,CSS,jGrowl) -->
                <
li class="welcomelink">{vb:rawphrase welcome_x_link_y, {vb:raw bbuserinfo.username}, {vb:link member, {vb:raw bbuserinfo}}}</li>
                <
vb:if condition="$vboptions['enablefacebookconnect']">
                    {
vb:raw facebook_header}
                </
vb:if>
            </
ul>
<
vb:if condition="$bbuserinfo['pmunread']">  
    <
a href="private.php?"><img border="0" src="images/newpm.gif" width="22" height="10"></a>  
    </
vb:if>
            {
vb:raw template_hook.header_userinfo}
            <
vb:comment><p>{vb:rawphrase last_visited_x_at_y, {vb:raw pmbox.lastvisitdate}, {vb:raw pmbox.lastvisittime}}</p></vb:comment>
        <
vb:else />
            <
ul class="nouser">
            <
vb:if condition="$show['registerbutton']">
                <
li><a href="register.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase register}</a></li>
            </
vb:if>
                <
li><a rel="help" href="faq.php{vb:raw session.sessionurl_q}">{vb:rawphrase help}</a></li>
                <
li>
            <
script type="text/javascript" src="clientscript/vbulletin_md5.js?v={vb:raw vboptions.simpleversion}"></script>
            <
form id="navbar_loginform" action="login.php?{vb:raw session.sessionurl}do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, {vb:raw show.nopasswordempty})">
                <
fieldset id="logindetails" class="logindetails">
                    <
div>
                        <
div>
                    <
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;" />
                    <
input type="submit" class="loginbutton" tabindex="104" value="{vb:rawphrase log_in}" title="{vb:rawphrase enter_username_to_login_or_register}" accesskey="s" />
                        </
div>
                    </
div>
                </
fieldset>
                <
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" checked="checked" /> {vb:rawphrase remember_me}</label>
                </
div>

                <
input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
                <
input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
                <
input type="hidden" name="do" value="login" />
                <
input type="hidden" name="vb_login_md5password" />
                <
input type="hidden" name="vb_login_md5password_utf" />
            </
form>
            <
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 == '<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>')
                {
                
//
                    
textbox.value='';
                    
textbox.style.color='{vb:stylevar toplinks_form_input.color}';
                }
            }

            function 
navbar_username_blur(e)
            {
            
//
                
var textbox YAHOO.util.Event.getTarget(e);
                if (
textbox.value == '')
                {
                
//
                    
textbox.value='<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>';
                    
textbox.style.color='{vb:stylevar toplinks_form_input_defaultValue.color}';
                }
            }
            
            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>
                </
li>
                <
vb:if condition="$vboptions['enablefacebookconnect']">
                    {
vb:raw facebook_header}
                </
vb:if>
            </
ul>
        </
vb:if>
    </
div>
    <
div class="ad_global_header">
        {
vb:raw ad_location.global_header1}
        {
vb:raw ad_location.global_header2}
    </
div>
    <
hr />
</
div>
<
link href='http://fonts.googleapis.com/css?family=Cantarell' rel='stylesheet' type='text/css'>
<
link href='http://fonts.googleapis.com/css?family=Inconsolata' rel='stylesheet' type='text/css'>
<
link href='http://fonts.googleapis.com/css?family=Molengo' rel='stylesheet' type='text/css'>
<
link href='http://fonts.googleapis.com/css?family=Tangerine' rel='stylesheet' type='text/css'>
<
link href='http://fonts.googleapis.com/css?family=Cardo' rel='stylesheet' type='text/css'>
<
link href='http://fonts.googleapis.com/css?family=Crimson+Text' rel='stylesheet' type='text/css'>
<
link href='http://fonts.googleapis.com/css?family=Droid+Serif' rel='stylesheet' type='text/css'>
<
link href='http://fonts.googleapis.com/css?family=IM+Fell+English+SC' rel='stylesheet' type='text/css'>
<
link href='http://fonts.googleapis.com/css?family=Josefin+Sans+Std+Light' rel='stylesheet' type='text/css'>
<
link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>
<
link href='http://fonts.googleapis.com/css?family=Neuton' rel='stylesheet' type='text/css'>
<
link href='http://fonts.googleapis.com/css?family=OFL+Sorts+Mill+Goudy+TT' rel='stylesheet' type='text/css'>
<
link href='http://fonts.googleapis.com/css?family=Reenie+Beanie' rel='stylesheet' type='text/css'>
<
link href='http://fonts.googleapis.com/css?family=Vollkorn' rel='stylesheet' type='text/css'

So if anyone can tell me what I need to resolve in my header

They'd be doing me a very big favor.

mayank8789 03-10-2011 08:59 AM

where is header i am not found any header.please help me

mayank8789 03-11-2011 11:27 AM

Quote:

Originally Posted by TheWindows7Site (Post 1945133)
Very nice forum color scheme. May I make a suggestion?

Go into your templates, open up vbulletin-chrome.css

Do a search for .toplinks form input.loginbutton

and change the attributes to read the following

PHP Code:

.toplinks form input.loginbutton {
    
font-size: {vb:math {vb:stylevar font.fontSize}-2}px;
    
padding{vb:math {vb:stylevar padding}/2};
    
background-color:  #186400;
    
border:solid 1px #ffffff;
        
color#ffffff;



And your login area will be perfect :) (I matched the green for the background color)

https://vborg.vbsupport.ru/external/2011/03/28.png

how find this Template :confused:

i am going admin cp>Styles & Templates>Search in Style and pest this text but not found any styel

please help me

mayank8789 03-13-2011 04:57 PM

anybody help me !!!!!!!!!!!!!!!!!!!!!!!!

OldSchoolDSL 03-14-2011 01:26 AM

The author seems not to be updating this. So I have placed a paid offer to anyone who can

1) Update this template modification
2) Without having to re-write the whole header as this modification does.

https://vborg.vbsupport.ru/showthread.php?t=260328

OldSchoolDSL 03-14-2011 06:24 AM

Quote:

Originally Posted by OldSchoolDSL (Post 2173096)
The author seems not to be updating this. So I have placed a paid offer to anyone who can

1) Update this template modification
2) Without having to re-write the whole header as this modification does.

https://vborg.vbsupport.ru/showthread.php?t=260328

Boofo has taken on the project and has provided wonderful support.

The good news to the community is I will be release this work, publicly for the community to use.

OldSchoolDSL 03-14-2011 08:20 AM

UPDATE: https://vborg.vbsupport.ru/showthread.php?t=260341

DiLaRa 09-08-2011 07:36 AM

danke

bp323 09-12-2011 01:43 AM

did not work as hoped. but i did manage to input the images previous to the input box's
thanks again!

Divokymuz 10-12-2011 09:10 AM

I still use this, but because of a changed header template, i replaced a little bit more :-)

Find this and replace tih the replacement code in the first post.
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;" />
                                        <input type="submit" class="loginbutton" tabindex="104" value="{vb:rawphrase log_in}" title="{vb:rawphrase enter_username_to_login_or_register}" accesskey="s" />
                                                </div>
                                        </div>
                                </fieldset>
                                <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>

                                <input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
                                <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
                                <input type="hidden" name="do" value="login" />
                                <input type="hidden" name="vb_login_md5password" />
                                <input type="hidden" name="vb_login_md5password_utf" />
                        </form>
                        <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 == '<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>')
                                {
                                //
                                        textbox.value='';
                                        textbox.style.color='{vb:stylevar toplinks_form_input.color}';
                                }
                        }

                        function navbar_username_blur(e)
                        {
                        //
                                var textbox = YAHOO.util.Event.getTarget(e);
                                if (textbox.value == '')
                                {
                                //
                                        textbox.value='<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>';
                                        textbox.style.color='{vb:stylevar toplinks_form_input_defaultValue.color}';
                                }
                        }
                       
                        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>
                                </li>
                                <vb:if condition="$vboptions['enablefacebookconnect']">
                                        {vb:raw facebook_header}
                                </vb:if>
                        </ul>
                </vb:if>
        </div>


paulket 01-30-2012 02:48 PM

Is this working for anyone using 4.1.10?

OldSchoolDSL 01-30-2012 04:11 PM

Quote:

Originally Posted by paulket (Post 2294207)
Is this working for anyone using 4.1.10?

There is a newer version found here:
https://vborg.vbsupport.ru/showthread.php?t=260341

paulket 01-31-2012 12:57 AM

Quote:

Originally Posted by OldSchoolDSL (Post 2294241)
There is a newer version found here:
https://vborg.vbsupport.ru/showthread.php?t=260341

Thank you, OldSchoolDSL. Your version is working perfectly with 4.1.10.


All times are GMT. The time now is 12:51 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01814 seconds
  • Memory Usage 2,074KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (3)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (30)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete