1
cuckston
Incorporating user details into static page
  • 2005/7/6 12:55

  • cuckston

  • Quite a regular

  • Posts: 268

  • Since: 2004/1/19


I am wanting to incorporate users details into a static page. I.e. i can write in a block that will display on the front page, welcome [user]. Is there a hack around that makes this possible?

Many thanks

2
Mithrandir
Re: Incorporating user details into static page

Makes what possible?
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."

Cusix Software

3
cuckston
Re: Incorporating user details into static page
  • 2005/7/6 13:11

  • cuckston

  • Quite a regular

  • Posts: 268

  • Since: 2004/1/19


I mean making it possible to write "welcome {user}" and what ever user logins they see, "welcome username".

Hope this makes sence

4
m0nty
Re: Incorporating user details into static page
  • 2005/7/6 13:17

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


try

<{if $xoops_isuser}>
        
Welcome, <a href="<{$xoops_url}>/user.php"><{$xoops_uname}></a
to <{$xoops_sitename}>
<{else}>
        <
a href="<{$xoops_url}>/register.php">Become a member</aof <{$xoops_sitename}>, right now!
<{/if}>

5
cuckston
Re: Incorporating user details into static page
  • 2005/7/6 13:20

  • cuckston

  • Quite a regular

  • Posts: 268

  • Since: 2004/1/19


Ok looks good, what i actualy want to do is a little more complex, i want to be able to add the username into a link. I.e. www.mysite.com/username. Will this hack work in the same way?

Many thanks

6
bluenova
Re: Incorporating user details into static page

I think in a block it would have to be in the format of {X_UNAME} because <{$xoops_uname}> doesn't work in a block.

But {X_UNAME} doesn't work in a block either, only {X_SITEURL} works.

Any one know how to make username workin a block

Login

Who's Online

233 user(s) are online (122 user(s) are browsing Support Forums)


Members: 0


Guests: 233


more...

Donat-O-Meter

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

Latest GitHub Commits