1
josevalviana
Displayname in Header Bar...

I really need some code to place the user Displayname after login in the header bar... Something like this...

User actions -------- Welcome, Displayname... If you aren't Displayname click here. --------- searchbox searchbutton


Here is some code: theme_usernav.html

#### Original Code ######
<{if $xoops_isadmin}>
<a class="item" href="<{$xoops_url}>/admin.php"><{$smarty.const._MA_NAV_ADMINISTRATION}></a>
<{/if}>
</div>
</td>

#### Included Code ########
<td id="welcome">
Welcome XXXX. If you are not XXXX click
<a href="<{$xoops_url}>/user.php?op=logout">here</a>. </td>

#### Original Code ######## <{else}>
<td id="date">
<{$smarty.now|date_format:"%A, %e %B %Y"}>
</td>

How can I change XXXX with the DisplayName of the user???
Have tried <{$user.name}> with no success...

Thanxs...

2
highlander
Re: Displayname in Header Bar...
  • 2005/11/3 18:37

  • highlander

  • Not too shy to talk

  • Posts: 151

  • Since: 2004/12/5


Hi Josevalviana,

try <{$xoops_uname}>

greetings Highlander.
So, I'm in the park wondering why frisbees get larger as they get closer when suddenly, it hits me...
www.AnimalPedigree.com

3
josevalviana
Re: Displayname in Header Bar...

Worked smoothly...

Thanxs....


Login

Who's Online

198 user(s) are online (126 user(s) are browsing Support Forums)


Members: 0


Guests: 198


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits