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?

<{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

Who's Online

203 user(s) are online (170 user(s) are browsing Support Forums)


Members: 0


Guests: 203


more...

Donat-O-Meter

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

Latest GitHub Commits