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)

Sador 01-08-2010 12:24 PM

Quote:

Originally Posted by phonexpo (Post 1948691)
Here you go;

Meh, too bad this one is bigger than the original, it doesn't fit.

cloferba 01-08-2010 02:33 PM

Quote:

Originally Posted by RonH. (Post 1950306)
**Reserved** for release of vB 4.0.1 tonight. :up:

sure is tonight?:confused:

Bouncer222 01-09-2010 09:34 PM

Nice Mod, but one question....

How can I leave the checkbox under the login with the words "Remember me?" and the checkbox checked?

I want to do everything this mod offers, except leave it under and not make words disappear because users might not understand what the checkbox is for.

Thanks.

TandyServices 01-09-2010 10:03 PM

Quote:

Originally Posted by Bouncer222 (Post 1951492)
Nice Mod, but one question....

How can I leave the checkbox under the login with the words "Remember me?" and the checkbox checked?

I want to do everything this mod offers, except leave it under and not make words disappear because users might not understand what the checkbox is for.

Thanks.

You could try something like this:

Code:

<style type="text/css">
img {vertical-align:middle} 
</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;/>
                <input type="submit" class="loginbutton" value="Login" 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" 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>
        </vb:if>
    </div>


Bouncer222 01-10-2010 01:50 AM

I did it all, showed up as I wanted, but now I cannot login? No login button and even when trying to hit enter after typing it all nothing happens???

LifesGreatestGift 01-10-2010 11:55 AM

Quote:

Originally Posted by Bouncer222 (Post 1951621)
I did it all, showed up as I wanted, but now I cannot login? No login button and even when trying to hit enter after typing it all nothing happens???

Revert template, start over. Code works fine. Unless you're talking about the custom code listed above this post, then IDK. Click Installed and I will look into it :)

Bouncer222 01-10-2010 01:10 PM

Yes the code above your post, there is no more login that you can click to login, only register instead.

jahna 01-12-2010 05:40 AM

...still searching for the header template in my vbulletin files to do the modifications.... can anyone help me to find it please.... thanks a lot!

LifesGreatestGift 01-12-2010 08:05 PM

Quote:

Originally Posted by Bouncer222 (Post 1951492)
Nice Mod, but one question....

How can I leave the checkbox under the login with the words "Remember me?" and the checkbox checked?

I want to do everything this mod offers, except leave it under and not make words disappear because users might not understand what the checkbox is for.

Thanks.

https://vborg.vbsupport.ru/external/2010/01/91.jpg


Change the login part of your header to look like this (make sure you compare what you already have)
PHP Code:

<script type="text/javascript" src="clientscript/vbulletin_md5.js?v={vb:raw vboptions.simpleversion}"></script>
            <
form 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">
img {vertical-align:bottom
</
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;/>
                

                    <input type="
submit" class="loginbutton" value="Login" 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> 




https://vborg.vbsupport.ru/external/2010/01/92.jpg
To make the Remember Me checked by default change this part of the code above:
PHP Code:

<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


To look like this:
PHP Code:

<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" checked="checked" /> {vb:rawphrase remember_me}</label>
                </
div


Enjoy! :)

Bouncer222 01-12-2010 09:26 PM

Like I said in my previous post.....

The LOGIN and REGISTER button is GONE so therefore, you CANNOT login at all, it all appears like I wanted to, but what happened to the login button??


All times are GMT. The time now is 09:22 AM.

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.01252 seconds
  • Memory Usage 1,786KB
  • 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
  • (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