1
josevalviana
Re: Displayname in Header Bar...

Worked smoothly...

Thanxs....




2
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...




TopTop



Login

Who's Online

149 user(s) are online (83 user(s) are browsing Support Forums)


Members: 0


Guests: 149


more...

Donat-O-Meter

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

Latest GitHub Commits