PragmaMx Mobile 1.12.3 HTML 5 & Responsive design - Javascript conflicts ?

Begonnen von shorty, 19 Dezember 2013, 23:36:51

⏪ vorheriges - nächstes ⏩

0 Mitglieder und 1 Gast betrachten dieses Thema.

AlternativeComputing

Try this:



if ( mxIsUser() )

{

    if ( mxModuleActive('Troc') && (MX_MODULE == 'Forum') )
   {
        define('MX_THIS_THEMEFILE', 'blog1.html');
    }
    elseif ( mxModuleActive('Webmasters') && (MX_MODULE == 'Videos') )
    {
        define('MX_THIS_THEMEFILE', 'blog2.html');
    }
    else
    {
       define('MX_THIS_THEMEFILE', 'theme.html');
    }

}

MfG

Peter

shorty

 Thanks for you fast response  :smile:
I need to purge cach  for see effects of modifications,
it's not working for me, i try many ways without success.  :morning:

AlternativeComputing

MfG

Peter

AlternativeComputing

Shorty:

In the settings.php line 149:



define('MX_THIS_THEMEFILE', 'theme.html');



change to:



/* Dateiname des templates */
if ( mxIsUser() )

{

    if ( mxModuleActive('FAQ') && (MX_MODULE == 'FAQ') )
   {
        define('MX_THIS_THEMEFILE', 'faq.html');
    }
    elseif ( mxModuleActive('Feedback') && (MX_MODULE == 'Feedback') )
    {
        define('MX_THIS_THEMEFILE', 'contactus.html');
    }
    else
    {
       define('MX_THIS_THEMEFILE', 'theme.html');
    }

}
else
{
   define('MX_THIS_THEMEFILE', 'theme.html');
}



Do it the same way, otherwise it will not work
MfG

Peter

AlternativeComputing

MfG

Peter


shorty

Thanks you !  :drinks:
it's works great like this if cache is turned off in settings file  :BD:
Finally javascript works good when i put calls in settings files
Don't need to touch header.php  So i think the problem was the version of jquery  :thumbup:

Now I.E and Firefox really works differently...
I.E block the left blocks on top so i will try to understand why...  :morning: