1
carpman
blocks and tags
  • 2004/8/31 12:02

  • carpman

  • Just popping in

  • Posts: 7

  • Since: 2004/8/31


Hello, i am trying to create a custom registered user welcome block, i would like to have the title say:

Welcome usersname


Now i have tried putting this as block title

Welcome {xoops_uname}

But i get an error, also tried putting this the main body of block and get same error, the error is that is just displays {xoops_uname} rather then the users name?

any ideas

cheers

2
tjnemez
Re: blocks and tags
  • 2004/8/31 16:34

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


<{if $xoops_isuser}>Welcome back href=\"<{$xoops_url}>/user.php\">"<{$xoops_uname}>"   <{else}>

action=\"<{$xoops_url}>/user.php\" method=\"post\">
Username:
size=\"12\" value=\"<{$block.unamevalue}>\" />
  Password:
size=\"12\" />
value=\"login\" />
 
name=\"login\" />

<{/if}>

3
carpman
Re: blocks and tags
  • 2004/8/31 16:56

  • carpman

  • Just popping in

  • Posts: 7

  • Since: 2004/8/31


Thanks for reply, don't thik you get what i want, i don't want a custom login in block only a users name in title.

If i am editing/creating a custom block i get small text box call:


Title

When the block is displayed this is the title for block, the main block text being under it.

I want the this to say:

Welcome usersname

I tried the top line of you sugestion but this does not work?


Quote:

tjnemez wrote:
<{if $xoops_isuser}>Welcome back href=\"<{$xoops_url}>/user.php\">"<{$xoops_uname}>"   <{else}>

action=\"<{$xoops_url}>/user.php\" method=\"post\">
Username:
size=\"12\" value=\"<{$block.unamevalue}>\" />
  Password:
size=\"12\" />
value=\"login\" />
 
name=\"login\" />

<{/if}>

4
Dave_L
Re: blocks and tags
  • 2004/8/31 18:11

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Try:
Welcome <{$xoops_uname}>

Login

Who's Online

253 user(s) are online (53 user(s) are browsing Support Forums)


Members: 0


Guests: 253


more...

Donat-O-Meter

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

Latest GitHub Commits