Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.


atherrien
Modder Extraordinaire
ranks
useravatar
User Info

Re: JoomFish frontend detection and "and if" fonction in PHP

OK I got it! The frontend language options solved the problem and it works great with a condition in the free PHP section such as:

Code:

if ($template == "electric_standard_jan2011" and $language_code == "fr") return 351;

Therefore if $language_code == "en" it wont return anything in this case, which is what I want.

I thought I tested the frontend option, I must have done something wrong... anyway, now it works!

As for the error :

Code:

Parse error: syntax error, unexpected T_IF in /home/guitar88/public_html/modules/mod_metamod/helper.php(606) : eval()'d code on line 4

There was a synthax error. I have used "and if" instead of "and". 

This thread is closed.

Thanks a lot, this is GREAT! smile

Alex.


Administrator has disabled public posting

Board Info

Board Stats:   Total Users: 3100  Total Topics: 1196  Total Polls: 7  Total Posts: 4453  Total Posts Today: 4
User Info:   Newest User :  boca0   Members Online: 2   Guests Online: 89
Online 
Jeff78bison
Topic
New
Locked
Topic
New
Locked
Sticky
Active
New/Active
Sticky
Active
New/Active
New/Closed
New Sticky
Closed/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky Active Locked
Active/Sticky
Sticky/Locked
Sticky/Active/Locked