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.

 

[solved] Module won't display using recipe

[solved] Module won't display using recipe

I have this under the PHP window and I can't get the module to display the result.

Code:

if ( $core_genius->inTimeSpan("Oct 01 - Feb 28" ) ) return "127"; 

Is "core_genius" a separate extension that needs to be installed (or is there somewhere it needs to be enabled)?  I can't find any reference to it.

I was able to get Metamod to display a module using the quick module entry area, but not using any of the "recipes".

Edited By: metamodguy
19-Nov-13 19:59:11

cebby
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Re: [solved] Module won't display using recipe

Hi Cebby,

core_genius is part of JomGenius which is a standard part of MetaMod. You can read all about it on http://www.metamodpro.com/jomgenius/about and http://www.metamodpro.com/jomgenius/parameters

It's possible that the time span may need to go without leading zeros (certainly the examples in the docs don't have leading zeros) so you could try that.

Also, of course you need to make sure that module 127 exists :-)

When using time-based code, ensure that you have set the correct time zone in the dropdown in the MetaMod configuration.

Also try turning on MetaMod's Debug mode to see what timezone it thinks it's in.

If those suggestions still don't help please get back to me.

Best regards,
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
3312 Posts
User info in posts
Administrator has disabled public posting

Re: [solved] Module won't display using recipe

Removing the leading zero did the trick - thanks so much!!

cebby
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1667
Total Polls:
6
Total Posts:
5909
Posts this week:
1
User Info:
 
Total Users:
10113
Newest User:
michael2066
Members Online:
1
Guests Online:
198

Online: 
michael2066

Forum Legend:

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