vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 5.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=259)
-   -   Miscellaneous Hacks - Hide username on main-navbar (https://vborg.vbsupport.ru/showthread.php?t=325684)

delicjous 10-15-2017 09:00 PM

Hide username on main-navbar
 
1 Attachment(s)
You know your own username and it is actually not necessary to get this constantly in the login/logout-bar or topmenu-bar.
The avatar itself would already suffice and it would be quite nice to get the username to be shown by mouseover the Avatar.

Exactly what I have created in my forum and if you want to adjust this in your forum also, this is possible with CSS only. So it is cloud-friendly!

Before the adaptation and after the adaptation when you go with the mouse over the Avatar:
https://vborg.vbsupport.ru/attachmen...1&d=1508173935

After the css changes:
https://vborg.vbsupport.ru/attachmen...1&d=1508173935

Code:

/*hide-show username in main-navbar*/
#lnkUsernameMenu span.b-comp-menu-dropdown__trigger-username {
        display:none;
}
#lnkUsernameMenu:hover span.b-comp-menu-dropdown__trigger-username {
        display:block;
}

If you would like to do a fade-in and fade-out effect you could take a look at my forum.
I have another css-snippet there: hide-show username in main-navbar with a fade-effect
The most content is literally in german, but I will try to translate it all.

Take a look at:
vbulletin-forum.de


All times are GMT. The time now is 01:27 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.00963 seconds
  • Memory Usage 1,711KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete