293491
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



293492
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



293493
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



293494
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



293495
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.



293496
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?



293497
Catzwolf
Re: WF-Section V1 just about completed!
  • 2003/2/11 11:24

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


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





293498
onokazu
Re: WF-Section V1 just about completed!
  • 2003/2/11 11:17

  • onokazu

  • XOOPS Founder

  • Posts: 617

  • Since: 2001/12/13


Great, looking forward to the release as well as your newbb hack.



293499
IncommingForce
Re: WF-Section V1 just about completed!

really impressive !

cant wait for you release this version

like the new look of the wfsection sight, where did you find that theme ?



293500
Catzwolf
WF-Section V1 just about completed!
  • 2003/2/11 7:50

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


Just a note to say that WF-Section v1 (Xoops v3.8) will be due for release within the next week or so, and then I will be converting it to work on XOOPS v2 (Yes it does work on v2).

New features for WF-Section v1

Uploadmangement (Total new way dealing with files, you can use a image/file from anywhere on the server, without breaking it when you change directory config) and you can delete or rename them. (Killed the blank images for once and for all! )

Multiple uploads at once

User Submit article feature (With Html or XOOPS editor) and submitted articles are added to the waiting contents block, and added a new 'WF submitted' block.

Auto approve submitted articles, add expire date, change created date and the original created date can be retained.

Rate Articles.

Report broken downloads.

Added Top Ten and Popular links in the main menu,

Can choose the order display for each article (just like downloads etc).

You can choose to display articles, links, section images (sizeable), rated, votes etc

Images for new, updated and popular articles have been added.

External links can be given pseudo name (instead of using a 90 letter url )

NOTE: Can now add your own HTML pages wrapped into the WF-Section article and will look like part of WF-Section.

And I am in the process of finishing off the 'real' pages (instead of the stupid [page break] feature.

Other changes include cleaned up code, html and many small bug fixes (will give proper list when ready for download).

The XOOPS V2 version will have scripts to convert NSections, Sections etc to WF-Section.

Any Request for this last WF-Section for XOOPS 1? This is the time to do it as I will not be working on this XOOPS version after it is released!







Login

Who's Online

443 user(s) are online (281 user(s) are browsing Support Forums)


Members: 0


Guests: 443


more...

Donat-O-Meter

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

Latest GitHub Commits