xoops forums

Forum Index


Board index » All Posts




Montisarts

Not too shy to talk
Posted on: 2003/2/12 5:04
Montisarts
Montisarts (Show more)
Not too shy to talk
Posts: 158
Since: 2003/1/26
#292271

Re: custom block tags question

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.



mktwain124

Just popping in
Posted on: 2003/2/12 3:21
mktwain124
mktwain124 (Show more)
Just popping in
Posts: 44
Since: 2002/9/27
#292272

Re: WF-Section V1 just about completed!

Hi Catzwolf,
Thanks for all your hard work on WF-Section. I've used it in the past and think it's a nice embellishment to the standard sections module.

Quote:
Catzwolf wrote:
Ok, am I wasting my time with this version of WF-Section and should I just move straight to a XOOPS V2?


I think that most XOOPS users have the intention of moving to X2 whenever possible, particularly when many things (like v1.3.* themes) will soon be deprecated. Unfortunately, it also seems that most v1.3.8 modules need considerable tweaking in order to work properly in X2, particularly to incorporate smarty templates. I can't speak for others, but I would be much more interested in an X2 version of WF-Section - partly so I can learn what changes to make on some of the other modules in order to get them to work with X2. Thanks again!


Catzwolf

Home away from home
Posted on: 2003/2/12 2:41
Catzwolf
Catzwolf (Show more)
Home away from home
Posts: 1392
Since: 2007/9/30
#292273

Re: WF-Section V1 just about completed!

I know many of you have ported to XOOPS v2 and playing with that, but I did expect some sort of feed back on this!

Ok, am I wasting my time with this version of WF-Section and should I just move straight to a XOOPS V2?


sunsnapper

Friend of XOOPS
Posted on: 2003/2/12 2:07
sunsnapper
sunsnapper (Show more)
Friend of XOOPS
Posts: 403
Since: 2002/4/10
#292274

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


Montisarts

Not too shy to talk
Posted on: 2003/2/12 1:36
Montisarts
Montisarts (Show more)
Not too shy to talk
Posts: 158
Since: 2003/1/26
#292275

Re: custom block tags question

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


sunsnapper

Friend of XOOPS
Posted on: 2003/2/12 1:09
sunsnapper
sunsnapper (Show more)
Friend of XOOPS
Posts: 403
Since: 2002/4/10
#292276

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/viewto ... pic_id=5533&forum=7#22801


Montisarts

Not too shy to talk
Posted on: 2003/2/12 1:01
Montisarts
Montisarts (Show more)
Not too shy to talk
Posts: 158
Since: 2003/1/26
#292277

Re: custom block tags question

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


sunsnapper

Friend of XOOPS
Posted on: 2003/2/12 0:42
sunsnapper
sunsnapper (Show more)
Friend of XOOPS
Posts: 403
Since: 2002/4/10
#292278

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.


Montisarts

Not too shy to talk
Posted on: 2003/2/11 23:26
Montisarts
Montisarts (Show more)
Not too shy to talk
Posts: 158
Since: 2003/1/26
#292279

custom block tags question

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?


Catzwolf

Home away from home
Posted on: 2003/2/11 11:24
Catzwolf
Catzwolf (Show more)
Home away from home
Posts: 1392
Since: 2007/9/30
#292280

Re: WF-Section V1 just about completed!

Cheers Kazu,

Just about nearly half way throu the coding the newbb 'enhancement'

Still looking for ideas that people would like to see in it