norber:
I think i solved it!
FEC autotype is "classInstantiate"
And now i know that config.mobile is loaded BEFORE fec config since config.mobile array order is 0 and config.fec is 90.
The problem is "when" it runs. And i found that it does that inside that foreach in autoload_func.php. That the actions to run is defined in a switch case.
So i looked for case 'classInstantiate' (around line 128):
case 'classInstantiate':
$objectName = $entry['objectName'];
$className = $entry['className'];
>
> and then i added this
>
> ```
//if its a phone and object name = FECObserver and class name=FECObserver ignore it
if (($deviceType=="phone") && ($objectName=="FECObserver") && ($className=="FECObserver")) {
$donothing="";
}else{
//rest of the original code
}// close added if
Now in phone versions the fec is not loaded, while in the rest (computer, tablet, etc) its ok.
Hope it will be helpful for somebody.
Thanks for all the zenners who helped me, for their time and patience.
Sorry for bring up an old thread...
The above sounded like just what i was after, but i could not get it to work...
in the end, i ended up editing
includes\classes\observers\class.esl.php
I changed...
function update(&$class, $eventID, $paramsArray) {
if ((FEC_EASY_SIGNUP_STATUS) == 'true') {
// redirect to ESL
zen_redirect(zen_href_link(FILENAME_LOGIN, '', 'SSL'));
}
}
to this...
function update(&$class, $eventID, $paramsArray) {
if ((FEC_EASY_SIGNUP_STATUS) == 'true' && ($isMobile)) {
// redirect to ESL
zen_redirect(zen_href_link(FILENAME_LOGIN, '', 'SSL'));
}
}
Added the && ($isMobile) to the if statement to check before redirecting to Easy Signup and Login
and as far as i can tell, she is working...
http://www.nzlw.co.nz
Let me know your thoughts...