1
trspice
Want smarty to execute 2 jobs in 1
  • 2007/6/25 17:02

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


I am trying to have 2 modules display above the blocks when being viewed and want to use a single smarty (which I saw in a theme before but don't remember which theme) to recognize each module directory name but only the first directory is excuted. What is wrong with this code why it won't work?

le="color: #000000"><?php <{if $xoops_dirname == "xcgal" || "newbb"}> <{$xoops_contents}> <{else}> <div>MAIN BLOCKS</div>] <{$xoops_contents}> <{/if}>


Thanks
There's nothing but science....
The Reggae Album

2
Dave_L
Re: Want smarty to execute 2 jobs in 1
  • 2007/6/25 17:40

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Change:

<{if $xoops_dirname == "xcgal" || "newbb"}>

to:

<{if $xoops_dirname == 'xcgal' or $xoops_dirname == 'newbb'}>

3
trspice
Re: Want smarty to execute 2 jobs in 1
  • 2007/6/26 2:54

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


Dave that worked perfect. Thanks
There's nothing but science....
The Reggae Album

Login

Donat-O-Meter

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

Latest GitHub Commits