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.

 

Syntax Problem?

Syntax Problem?

Hallo Stephen, I made a donation a couple of days ago but decided that I didn't need the Pro version.
So I have Metamod working wonderfully with this.
if ( MM_DAY_OF_WEEK == 1 
     return 214; // Monday = "1"
if ( MM_DAY_OF_WEEK == 2 )
     return 215; // Monday = "1"
if ( MM_DAY_OF_WEEK == 3 )
     return 216; // Monday = "1"
if ( MM_DAY_OF_WEEK == 4 )
     return 217; // Monday = "1"
if ( MM_DAY_OF_WEEK == 5 )
     return 218; // Monday = "1"
if ( MM_DAY_OF_WEEK == 6 )
     return 219; // Monday = "1"
if ( MM_DAY_OF_WEEK == 0 )
     return 220; // Monday = "1"

When I add this at the beginning it seems to have no effect but continues to execute the statements above correctly..
if ( $user->id == "277" )
return "214, 215, 216, 217, 218, 219, 220"
I am definitely user 277, but only one module, the "day" module is displayed. All modules exist and are displayed correctly on the day.

What have I missed please?

pd4pbyc
Beginner Modder
ranks
useravatar
Offline
9 Posts
Administrator has disabled public posting

Re: Syntax Problem?

I got it working. Apart from a small syntax error stupid me forgot to login there I was user zero.

pd4pbyc
Beginner Modder
ranks
useravatar
Offline
9 Posts
Administrator has disabled public posting

Re: Syntax Problem?

well done smile

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
3329 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1689
Total Polls:
6
Total Posts:
5941
Posts this week:
1
User Info:
 
Total Users:
5348
Newest User:
towner4218
Members Online:
0
Guests Online:
118

Online: 
There are no members online

Forum Legend:

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