1
Montisarts
custom block tags question
  • 2003/2/11 23:26

  • Montisarts

  • Not too shy to talk

  • Posts: 158

  • Since: 2003/1/26


Hi,

I'm trying to make a custom welcoming block on my site with Xoops2.
I'd like to know if there are more tags you can use (like the {X_SITEURL} tag which shows your site url). I wanna make a welcoming text that shows the user name or realname in it. Is there a tag I can use .. for instance: {username} or {realname} ?

Any suggestions on this one?

example:

Hi Dr_Funkenstein , welcome to {X_SITEURL}

so what tag should I use to display the username or realname?

2
sunsnapper
Re: custom block tags question

Hey there.

I looked in Theme Manager >> Default >>System >>
system_info.html

And came up with the following:

realname    <{$user_realname}>


I could not find "username" in that file (it's pulling it from the language file as best I can tell)... but, the devs are pretty consistent, so I would try:
username    <{$user_username}>


Hope that helps.

3
Montisarts
Re: custom block tags question
  • 2003/2/12 1:01

  • Montisarts

  • Not too shy to talk

  • Posts: 158

  • Since: 2003/1/26


nope, sorry, thanks for the trouble of looking but it doesn't work. In the Xoopsgallery on this site it does work though. At the bottom of the page it sais welcome, Dr_Funkenstein. That what I need in a custom block.

greetz

4
sunsnapper
Re: custom block tags question

Try onokazu's post from this thread. I think it does what you want, including first it tests to make sure the person is logged in.
https://xoops.org/modules/newbb/viewtopic.php?topic_id=5533&forum=7#22801

5
Montisarts
Re: custom block tags question
  • 2003/2/12 1:36

  • Montisarts

  • Not too shy to talk

  • Posts: 158

  • Since: 2003/1/26


It still doesn't work in the custom blocks part. This may work in a new module, but it doesn't work as a code for the custom block content, but thanks again , we'll get there sooner or later

6
sunsnapper
Re: custom block tags question

Yeah, I've been trying some things at my site... and I think I'm getting confused between Smarty syntax and PHP syntax.

I'm sorry if I'm passing my confusion off to you...

There is some information about Smarty variables in the Wiki. But, that's Smarty, which I'm not sure if you can put in a custom block... maybe, but who knows...
username        <{$xoops_uname}>


http://wiki.xoops.org/wakka.php?wakka=SmartyVariables

7
Montisarts
Re: custom block tags question
  • 2003/2/12 5:04

  • Montisarts

  • Not too shy to talk

  • Posts: 158

  • Since: 2003/1/26


I got it to work, but not in the custom blocks.

I put
<{$xoops_uname}>
in the skin.html to make it work. So thanks a lot for the info m8. It's not exactly what I was looking for but it will do just fine 'till I find out how to do it in a custom block.


8
gniknalu
Re: custom block tags question
  • 2004/1/6 20:42

  • gniknalu

  • Just popping in

  • Posts: 80

  • Since: 2003/2/28


Is there a way to have <{$xoops_uname}> work in a custom block? Inquiring minds want to know.

Gnik

Login

Who's Online

224 user(s) are online (166 user(s) are browsing Support Forums)


Members: 0


Guests: 224


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