vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Need help adding some navbar text (https://vborg.vbsupport.ru/showthread.php?t=222254)

z0diac 09-01-2009 10:07 PM

Need help adding some navbar text
 
Above the part on the top right (not on this forum as it's modified, but on stock vB) that says

You last visited: Today at 06:59 PM
Private Messages: Unread 0, Total 72.

ABOVE the "You Last Visited" I would like to add the line:

Welcome, <username>

I think it goes somewhere under the <!-- breadcrumb, login, pm info --> part of the navbar template. I'm just not sure of what to enter or where :confused:

EDIT:

'Found a nice little mod that does this and a bit more :)

https://vborg.vbsupport.ru/showthrea...and+reputation

HMBeaty 09-01-2009 10:11 PM

The default code is:
HTML Code:

<strong><phrase 1="$bbuserinfo[username]" 2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase></strong>

z0diac 09-01-2009 10:22 PM

Thanks redline. That mod I installed (which installed fine) isn't working. I cleared cache and reloaded.. nothing.

I'll try your code.

EDIT: strange, that code *is* already in my navbar, but it's not showing who I'm logged in as. The first line up there is the "You last visited.." line. Strange.

--------------- Added [DATE]1251849045[/DATE] at [TIME]1251849045[/TIME] ---------------

Ok, I see this in navbar:

<if condition="$show['member']">

Is there a setting somewhere in ACP to NOT show the username up there? Because the code redline ^^ above posted, *is* in my navbar, but it's not showing the person's username when they're logged in for some reason.

Welcome, Admin
You last visited: 29 Minutes Ago at 11:43 PM
Private Messages: Unread 0, Total 0.

But instead just shows this:

You last visited: 29 Minutes Ago at 11:43 PM
Private Messages: Unread 0, Total 0.


Is there a setting somewhere that I could have mistakenly turned off displaying the username?


All times are GMT. The time now is 05:29 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.01075 seconds
  • Memory Usage 1,715KB
  • 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_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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