Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

Error with Return of many module ids

Error with Return of many module ids

I get the an error when I do a "return 46,45;"
with this code:

Code:

$vm = JomGenius("virtuemart"); // need this at the start of every rule

if ( $vm->check( "pagetype = frontpage" ) ) return 46,45;

No error with "return 46;".

The error I get is:
"Parse error: syntax error, unexpected ',' in C:\xampp\htdocs\gourmet\modules\mod_metamod\helper.php(539) : eval()'d code on line 2"

I did this following the Metamod instructions:
"... return the module id or module position name, a comma-separated list of module ids ..."

Can you help?
Robert

rakagod
Beginner Modder
ranks
useravatar
Offline
10 Posts
Administrator has disabled public posting

Re: Error with Return of many module ids

This works if you put quotes around them, like this:

return "46,45";


Cheers,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3319 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1674
Total Polls:
6
Total Posts:
5917
Total Posts Today:
5
User Info:
 
Total Users:
11536
Newest User:
lucero1247
Members Online:
4
Guests Online:
160


Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked