1
mawi27
xoops variables
  • 2006/1/20 18:10

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


Hi all,

is there any kind of reference for the XOOPS variables that u can use in a theme?
I am looking for the variable to use for the block weight.

TIA
Marco
--
Match Dart!
Darts Ranking, News, Videos, Forum and more

2
JMorris
Re: xoops variables
  • 2006/1/20 19:00

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


This is kinda old, so I'm not sure if all of the following are still accurate, but it's worth a shot.

Common XOOPS Smarty Variables
=============================
<{$SCRIPT_NAME}> /modules/team/tactics.php
<{$xoops_banner}>  
<{$xoops_charset}> ISO-8859-1
<{$xoops_footer}> Powered by XOOPS 2.0 ? 2001-2003 <{$xoops_imageurl}> http://modules.linux-gamers.net/theme...
<{$xoops_isadmin}> 1
<{$xoops_isuser}> 1
<{$xoops_js}> //-->
3
mawi27
Re: xoops variables
  • 2006/1/20 19:09

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


Thank you,

but I am in need of the block weight
Xoops Version 2.2.3

Marco
--
Match Dart!
Darts Ranking, News, Videos, Forum and more

4
grantp
Re: xoops variables
  • 2006/1/20 21:29

  • grantp

  • Just popping in

  • Posts: 1

  • Since: 2006/1/20


..and in the administration page, under System Admin, Preferences, General Settings: Set the "Debug Mode" to "Smarty Templates Debug" and you'll get a pop-up when you browse a module.
If you are using Fire-Fox, this will trigger it's pop-up blocker, just allow pop-ups for the site.
You'll see a list of all the smarty vars available for the page you are browsing.

I do agree that more of the raw vars should be available. I sometimes add vars to modules but this makes extra work at upgrade time as I have to re-do the hacks.

Does anyone know if there is a guide for module writers from the smarty vars point-of-view? Something like:

If the module has categories:
Include vars for the id and name in the form $modulename_catid and $modulename_catname.

If the module has items:
...

5
mawi27
Re: xoops variables
  • 2006/1/20 21:44

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


great!

now i see that {$block} is an arry with 5 fields, weight one of them.
I would use this one as
eg. <{if {$block.weight} == Number}> correct?

Edit:
or would that be {$block.[5]}?

Marco
--
Match Dart!
Darts Ranking, News, Videos, Forum and more

6
mawi27
Re: xoops variables
  • 2006/1/25 12:17

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


bump
--
Match Dart!
Darts Ranking, News, Videos, Forum and more

7
mawi27
Re: xoops variables
  • 2006/1/27 9:20

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


Hi there,

i understand, that there is no reference list of all variables, as i get no replies to my post.

New question: Can somebody tell me where the smarty variables are defined. Which files i have to search for them?

TIA Marco
--
Match Dart!
Darts Ranking, News, Videos, Forum and more

8
giba
Re: xoops variables
  • 2006/1/27 9:38

  • giba

  • Just can't stay away

  • Posts: 638

  • Since: 2003/4/26


Exist one hack for all debug variables xoops,

look Here

[Edited by Giba]

For more details, here


By Topet05 - XOOPS Brasil

Login

Who's Online

290 user(s) are online (178 user(s) are browsing Support Forums)


Members: 0


Guests: 290


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