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)

Ricsca 08-22-2010 10:53 AM

foru vbulletin 4.0.6?

Thanks

apokphp 08-22-2010 08:50 PM

Quote:

Originally Posted by Ricsca (Post 2087750)
foru vbulletin 4.0.6?

Thanks

Unfortunately no. This mod is not supported.

lubbie 08-29-2010 05:46 PM

Maybe someone here could explain how this works on 4.0.6 - I saw a few boards running this mod on the new Version.
Or maybe the Coder himself could do an update. This mod is marked as supported

massizero 09-04-2010 10:47 AM

Quote:

Originally Posted by lubbie (Post 2091209)
Maybe someone here could explain how this works on 4.0.6 - I saw a few boards running this mod on the new Version.
Or maybe the Coder himself could do an update. This mod is marked as supported

I saw a lot of 4.0.6. board running these mod too..
any help?

demonfatal 09-05-2010 01:33 PM

Just replace in the header template:
Code:

<fieldset id="logindetails" class="logindetails">
<div>
<div>
<input type="text" class="textbox" 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="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="password" class="textbox" tabindex="102" name="vb_login_password" id="navbar_password" size="10" />
<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>

With that:
Code:

<fieldset id="logindetails" class="logindetails">
<div>
<div>
<style type="text/css">
.toplinks form img {
        position:relative; 
        top: 4px;       
}
</style>
<img src="images/misc/username.png" alt="Username" />
<input type="text" class="textbox" 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>" />
<img src="images/misc/password.png" alt="Password" />
<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;" />
<label for="cb_cookieuser_navbar">
<input type="checkbox" name="cookieuser" type="hidden" value="1" tabindex="103" id="cb_cookieuser_navbar" class="cb_cookieuser_navbar" accesskey="c" checked="checked" /> </label>

<input type="password" class="textbox" tabindex="102" name="vb_login_password" id="navbar_password" size="10" />
<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>

Where the PNG images are located in the folder "images/misc/"

massizero 09-05-2010 06:28 PM

Quote:

Originally Posted by demonfatal (Post 2094102)
Just replace in the header template:

Thanks!!

BadgerDog 09-06-2010 05:00 PM

Quote:

Originally Posted by demonfatal (Post 2094102)
Just replace in the header template:
Code:

<fieldset id="logindetails" class="logindetails">
<div>
<div>
<input type="text" class="textbox" 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="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="password" class="textbox" tabindex="102" name="vb_login_password" id="navbar_password" size="10" />
<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>

With that:
Code:

<fieldset id="logindetails" class="logindetails">
<div>
<div>
<style type="text/css">
.toplinks form img {
        position:relative; 
        top: 4px;       
}
</style>
<img src="images/misc/username.png" alt="Username" />
<input type="text" class="textbox" 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>" />
<img src="images/misc/password.png" alt="Password" />
<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;" />
<label for="cb_cookieuser_navbar">
<input type="checkbox" name="cookieuser" type="hidden" value="1" tabindex="103" id="cb_cookieuser_navbar" class="cb_cookieuser_navbar" accesskey="c" checked="checked" /> </label>

<input type="password" class="textbox" tabindex="102" name="vb_login_password" id="navbar_password" size="10" />
<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>

Where the PNG images are located in the folder "images/misc/"

Also works great in 4.04 ... thank you .. :)

Any chance of having the "Remember Me?" box still appear below Username, but checked?

Just so members know what checking the box infers?

Thanks again ...

Regards,
Badger

syrus.xl 09-06-2010 07:54 PM

If checked="checked" is in accesskey "c" label then it will show up as checked. There's a lot you can do with the login, I personally have auto submit checked but hidden. But then if a person does not physically logout of the forum then they will remain logged in.

I have actually done this on numerous vbulletin boards, where people do not want the 'Remember Me' text or box showing because it looks out of place - just floats in the middle of nowhere!:rolleyes:

Hendrizius 09-08-2010 01:29 PM

Maybe integrate this by default into vBulletin? Really improves the visual quality of the board.

BadgerDog 09-09-2010 03:15 PM

Quote:

Originally Posted by syrus.xl (Post 2094734)
If checked="checked" is in accesskey "c" label then it will show up as checked. There's a lot you can do with the login, I personally have auto submit checked but hidden. But then if a person does not physically logout of the forum then they will remain logged in.

I have actually done this on numerous vbulletin boards, where people do not want the 'Remember Me' text or box showing because it looks out of place - just floats in the middle of nowhere!:rolleyes:


Thanks .. appreciate the feedback ... :up:

Can you tell me what line I need to change in demonfatal's code above, so that the checked box is indeed checked by default, however, the box is hidden such as it is on your site?

Regards,
Badger


All times are GMT. The time now is 07:46 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.01243 seconds
  • Memory Usage 1,760KB
  • 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
  • (4)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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