Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 if string conditional
bekti Offline
Junior Member
**
Posts: 43
Joined: Mar 2012
Post: #7
RE: if string conditional

Code:
<setvar r>array('{string1}', '{string2}', '{string3}')</setvar>
<?=$GLOBALS['tplvars']['r'][array_rand($GLOBALS['tplvars']['r'])?>



but when i try to set

Code:
<setvar r>array('{myadvertisements[zone_1]}', '{myadvertisements[zone_2]}', '{myadvertisements[zone_3]}')</setvar>
<?=$GLOBALS['tplvars']['r'][array_rand($GLOBALS['tplvars']['r'])?>



it's appear an error..my header template doesn't show up...

any fix?

08-30-2012 01:21 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
if string conditional - bekti - 08-29-2012, 01:14 PM
RE: if string conditional - ZiNgA BuRgA - 08-29-2012, 03:25 PM
RE: if string conditional - bekti - 08-29-2012, 03:57 PM
RE: if string conditional - ZiNgA BuRgA - 08-29-2012, 04:51 PM
RE: if string conditional - bekti - 08-29-2012, 07:08 PM
RE: if string conditional - RateU - 08-30-2012, 01:11 AM
RE: if string conditional - bekti - 08-30-2012 01:21 AM
RE: if string conditional - leefish - 08-30-2012, 01:36 AM
RE: if string conditional - bekti - 08-30-2012, 02:02 AM

 Standard Tools
Forum Jump: