1
patagon
XOOPS 2.2, smarty changes?
  • 2005/7/16 1:00

  • patagon

  • Quite a regular

  • Posts: 235

  • Since: 2002/1/8 0


Hi,

I installed XOOPS 2.2 and everything seems to work ok, except that in my theme.html I use this:

<{if !$xoops_isuser}>

to show (or not) some content. This doesnt seem to work anymore, it doesnt display even if I am a user.

I also use (in a block) this:


2
patagon
Re: XOOPS 2.2, smarty changes?
  • 2005/7/16 3:00

  • patagon

  • Quite a regular

  • Posts: 235

  • Since: 2002/1/8 0


ok, the first one doenst have anything to do with xoops. I use <{if $smarty.server.PHP_SELF=='/index.php'}> to check within theme.html if I'm on the homepage and xsas doenst add the index.php part, so thats why it doesnt show (if anyone knows how to modify this so that it works locally as well as in the server, that would be great

The second part I dont understand it. In theme.html I use <{$xoops_imageurl}> and it works, but if called in a block it doesnt (and it used to work in previous versions).

3
Mithrandir
Re: XOOPS 2.2, smarty changes?

Quote:

<{if !$xoops_isuser}>

That should still work. I did locate a minor thing, when it comes to when this is available.

Quote:
In theme.html I use <{$xoops_imageurl}> and it works, but if called in a block it doesnt (and it used to work in previous versions).

That is because the theme is loaded as the very last thing before display, to allow blocks or module code to override the theme simply by setting $xoopsConfig['theme_set'] to another value. If the theme was loaded at the beginning (meaning that variables such as <{$xoops_imageurl}> are assigned to Smarty) you could end up with a theme displaying items from another theme.
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."

Cusix Software

4
patagon
Re: XOOPS 2.2, smarty changes?
  • 2005/7/16 18:38

  • patagon

  • Quite a regular

  • Posts: 235

  • Since: 2002/1/8 0


Thanks Mith. I guess this is a very silly question, but how do you replace in a block xoops_imageurl? i tried xoops_url and then add theme/mytheme/images/image.gif but it doesnt work...

UPDATE: fixed it, thanks

Login

Who's Online

234 user(s) are online (159 user(s) are browsing Support Forums)


Members: 0


Guests: 234


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