PDA

View Full Version : Need help adding some navbar text


z0diac
09-01-2009, 10:07 PM
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/showthread.php?t=123886&highlight=display+unread+posts+and+reputation

HMBeaty
09-01-2009, 10:11 PM
The default code is:
<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 1251849045 at 1251849045 ---------------

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?