1
stelian
how can i display the username near Logout ?
  • 2006/2/12 13:47

  • stelian

  • Just popping in

  • Posts: 87

  • Since: 2005/12/17


Hi all. Can anyoane help me with this?
I want to display the username near the Logout, in my theme.

The theme looks like this:

<a href="<{$xoops_url}>/user.php?op=logout">Logout</a>


I've tried something like this
<a href="<{$xoops_url}>/user.php?op=logout">Logout <{$xoopsUser}></a>
or
<a href="<{$xoops_url}>/user.php?op=logout">Logout "uid"</a>
and a few more but it didn't work.

Thanks in advance!

2
Dave_L
Re: how can i display the username near Logout ?
  • 2006/2/12 14:54

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


<a href="<{$xoops_url}>/user.php?op=logout">Logout (<{$xoops_uname}>)</a>


I do it like this, to limit the length, and to keep the name from wrapping to another line:

<a href="<{$xoops_url}>/user.php?op=logout">Logout&nbsp;(<{$xoops_uname|truncate:25:'...'|replace:" ":"&nbsp;"}>)</a>

3
stelian
Re: how can i display the username near Logout ?
  • 2006/2/12 15:25

  • stelian

  • Just popping in

  • Posts: 87

  • Since: 2005/12/17


Thanks a lot. This was exactly what i want. It works great.

I wish you all the best!

Login

Who's Online

189 user(s) are online (106 user(s) are browsing Support Forums)


Members: 0


Guests: 189


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