1
SpecialK
How to: Welcome! (User's name)
  • 2005/10/9 11:42

  • SpecialK

  • Just popping in

  • Posts: 8

  • Since: 2005/10/9


Anyone know of a way to welcome a member by user name after logging in. Something like "Welcome, (User name)!"
near the top of the page or center block. I suspect the User name would have to be pulled from the member's list.

TIA,

SpecialK

2
JMorris
Re: How to: Welcome! (User's name)
  • 2005/10/9 12:48

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


Fist, welcome to XOOPS!

To display a welcome message in your theme, add the following line in theme.html where you want the message to be displayed:

<b>Welcome:&nbsp;<{if $xoops_isuser}><{$xoops_uname}><{else}>Guest<{/if}>b>


Make sure you clear the contents of the templates_c folder after you make your changes or they won't take effect.

This answer was found using the Search box at the top right corner of this website. It's pretty handy for most questions.

Best Regards,

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

3
SpecialK
Re: How to: Welcome! (User's name)
  • 2005/10/10 5:16

  • SpecialK

  • Just popping in

  • Posts: 8

  • Since: 2005/10/9


Thanks for the quick response, James I will give it a shot, and I will do a better search as suggested the next time around.

Thanks again...

SK

Login

Who's Online

422 user(s) are online (340 user(s) are browsing Support Forums)


Members: 0


Guests: 422


more...

Donat-O-Meter

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

Latest GitHub Commits