1
fo-fo
<{$xoops_uname}> ?
  • 2005/4/20 8:56

  • fo-fo

  • Just popping in

  • Posts: 34

  • Since: 2005/4/13


hello to everybody.

I tried to display the username on page and it didn't work

1.
I insert

...

<{if $xoops_isuser}> Welcome, <{$xoops_uname}>

...

it displays "<{if $xoops_isuser}> Welcome, <{$xoops_uname}>" on the page and
not the actual username


2.
if I insert
...

<{if $xoops_isuser}> Welcome, <{$xoops_uname}>

...
it still displays "<{if $xoops_isuser}> Welcome, <{$xoops_uname}>"
but if I click on "<{$xoops_uname}>" it takes me to the 'view account page'



what is missing? why it doesn't show the actual username?

thanks.

2
rowdie
Re: <{$xoops_uname?
  • 2005/4/20 9:33

  • rowdie

  • Just can't stay away

  • Posts: 846

  • Since: 2004/7/21


Are you trying to do this using a custom block? Custom blocks don't recognise Smarty tags.

You need to add it to the theme.html file

3
fo-fo
Re: <{$xoops_uname?
  • 2005/4/20 9:50

  • fo-fo

  • Just popping in

  • Posts: 34

  • Since: 2005/4/13


I don't think I'm using custom block, yet I added these lines to .php pages that are in a XOOPS subfolder. Maybe there wouldn't show smarty tags?

Or maybe I don't use any blocks at all for this?

4
fo-fo
Re: <{$xoops_uname?
  • 2005/4/20 13:14

  • fo-fo

  • Just popping in

  • Posts: 34

  • Since: 2005/4/13


I've been thinking about this and I'd like to edit the New Members block to display <{$xoops_uname}> but couldn't do it with the 'Edit Template'.

why is that?

5
fo-fo
Re: <{$xoops_uname?
  • 2005/4/20 13:33

  • fo-fo

  • Just popping in

  • Posts: 34

  • Since: 2005/4/13


okay, I managed to do it like this. not too smart, but it works.

1. cloned the default template set
2. cloned set is editable
3. changed in Preferences Main »» General Settings the Default template set to the cloned set

Login

Who's Online

284 user(s) are online (208 user(s) are browsing Support Forums)


Members: 0


Guests: 284


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