Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
TW7S - Change the look of the Login/Register in header Details »»
TW7S - Change the look of the Login/Register in header
Version: 4.0.0, by LifesGreatestGift LifesGreatestGift is offline
Developer Last Online: Apr 2015 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.0.0 Rating:
Released: 01-01-2010 Last Update: 01-01-2010 Installs: 325
Template Edits
Re-useable Code Additional Files Translations  
No support by the author.

Before


After


Click Here for Live preview.

Installation:
  • Upload images
  • Perform template edits below

-----------------------------------------------------
vB 4.0.1 Fix
Those of you who performed this mod on 4.0.0 and have upgraded to 4.0.1, all you have to do is revert the header template and perform the edits again. For some reason when the templates were merged with the new code it messed up the links when logged in.
-----------------------------------------------------

Open header template

Find:
PHP Code:
<input type="text" class="textbox default-value" 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>" onfocus="if (this.value == '<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>'){this.value=''; this.style.color='black';}" onblur="if (this.value == '') {this.value='<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>'; this.style.color='#828282';}"/>
                    <
input type="password" class="textbox default-value" name="vb_login_password" id="navbar_password" size="10" tabindex="102" onfocus="this.style.color='black';" />
                    <
input type="submit" class="loginbutton" value="{vb:rawphrase log_in}" tabindex="104" 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" tabindex="103" id="cb_cookieuser_navbar" class="cb_cookieuser_navbar" accesskey="c" /> {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>    
        </
vb:if>
    </
div

Replace With:
PHP Code:
<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"/>
</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>    
        </vb:if>
    </div> 
Save your changes

To have the "Remember Me" box always checked:

Find:
PHP Code:
<input id="cb_cookieuser_navbar" type="checkbox" accesskey="c" tabindex="103" value="1" name="cookieuser"/> 

Replace With:
PHP Code:
<input id="cb_cookieuser_navbar" type="checkbox" accesskey="c" tabindex="103" value="1" name="cookieuser" checked="checked"/> 

Download Now

File Type: zip New Login Box.zip (3.8 KB, 1839 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
SaN-DeeP

Comments
  #202  
Old 09-30-2010, 03:06 PM
wishtheend wishtheend is offline
 
Join Date: Dec 2009
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #203  
Old 10-06-2010, 09:38 AM
BioWaffen BioWaffen is offline
 
Join Date: Sep 2006
Location: Stuttgart
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #204  
Old 10-11-2010, 10:06 AM
nkumaran nkumaran is offline
 
Join Date: Jul 2009
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[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 ...
Reply With Quote
  #205  
Old 10-11-2010, 05:48 PM
2fast4ya 2fast4ya is offline
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Running version 4.0.6
Reply With Quote
  #206  
Old 10-22-2010, 02:13 PM
0verl0rd 0verl0rd is offline
 
Join Date: Oct 2010
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome! Tagged....

damn i have tagged around 10 mods... i hope to do them all! LOL..
Reply With Quote
  #207  
Old 10-24-2010, 12:38 PM
lubbie lubbie is offline
 
Join Date: May 2010
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #208  
Old 11-03-2010, 12:53 PM
emath emath is offline
 
Join Date: Sep 2008
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

?

thanks
Reply With Quote
  #209  
Old 12-22-2010, 04:41 AM
Sforums Sforums is offline
 
Join Date: Dec 2010
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have been using this thing on previous versions of vb without any problems. Does it work with 4.1?
Reply With Quote
  #210  
Old 12-22-2010, 04:53 AM
Sforums Sforums is offline
 
Join Date: Dec 2010
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Quote:
adding child to non-existent node!
Too bad, I really like this stuff.
Reply With Quote
  #211  
Old 12-22-2010, 01:24 PM
chriske chriske is offline
 
Join Date: Oct 2008
Posts: 167
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:00 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09865 seconds
  • Memory Usage 2,477KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete