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)

Trumpetrhapsody 02-17-2010 09:07 PM

Still work on 4.0.2?

EDIT: Nevermind... missed about 3 pages of people asking about this.

sinistergaming 02-17-2010 10:04 PM

neet thanks

wilczek 02-18-2010 05:35 AM

Cadelin & Front Page - Thanks a lot - I am on 4.0.1 and want to upgrade to 4.0.2 - So when I do this I will then wait for this to be confirmed as 4.0.2 friendly.

Cheers,

W

aberg 02-18-2010 05:33 PM

Good work. thanks!

ExtremeGaming 02-19-2010 10:25 AM

Installed and working on 4.0.2 !

Alibass 02-19-2010 07:22 PM

Quote:

Originally Posted by TheWindows7Site (Post 1984199)
Just finished with the forum update to 4.0.2 and there is no need to update the code :) Previous code works fine

After reverting template and reinstalling code, mod is working fine with 4.0.2

voglermc 02-19-2010 09:06 PM

I think the replace is missing a bit of code.
Code:

</form>
           
                </li>
            </ul>
        </vb:if>
    </div>


nibb 02-20-2010 04:34 AM

Looks good but you are now giving the user more work as he has to erase the text in the boxes first to enter his username and password. I know they can be left blank in the value, but it would be better if they erase them self when you click on them like other login boxes do.

rikmac 02-20-2010 10:33 AM

Good work.

thanks!

The-Undead 02-22-2010 10:11 PM

With some tweaking to tidy the code this looks much better, thanks.



Quote:

Originally Posted by voglermc (Post 1986817)
I think the replace is missing a bit of code.
Code:

</form>
           
                </li>
            </ul>
        </vb:if>
    </div>


Quote:

Originally Posted by nibb (Post 1987059)
Looks good but you are now giving the user more work as he has to erase the text in the boxes first to enter his username and password. I know they can be left blank in the value, but it would be better if they erase them self when you click on them like other login boxes do.


For both, use following replace for vB 4.0.2:
Code:

                                    <img src="./images/icons/username.png" alt="Username" />
                                    <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';}"/>
                                    <img src="./images/icons/password.png" alt="Password" />
                                    <input type="password" class="textbox default-value" tabindex="102" name="vb_login_password" id="navbar_password" size="10" onfocus="this.style.color='black';" />
                                    <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" tabindex="104" value="{vb:rawphrase log_in}" 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>
                </li>
            </ul>
        </vb:if>
    </div>

Put this part in headinclude template to help with validation:
Code:

<style type="text/css">
.toplinks form img {
position:relative; 
top: 3px;       
}
</style>


Username is present but it doesn't need deleting, on-click removes the text as per default. :)


All times are GMT. The time now is 09:00 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.01359 seconds
  • Memory Usage 1,749KB
  • 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
  • (3)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