Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • pl709 Friend
    #123457

    Hello,

    I´m using sobi2 component and when i use the extended search option thats create a conflict with MOOTOOLS of the template.

    I have received a possible code to fix that conflit but i don´t where to put it in the template php code, when you help please?

    The code:

    <?php if (($option==”com_sobi2″)&& ($sobi2Task==”search” )){//do nothing }else{?>
    <script type=”text/javascript” src=”<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/js/mootools.js”></script><?php } ?>

    kashxo Friend
    #231855

    I’m not sure for the variable $sobi2Task, but as you said,
    please try to replace the code at the line 72 on ja_regulus_ex or line 55 on ja_regulus:
    [PHP]<script language=”javascript” type=”text/javascript” src=”<?php echo $ja_template_path;?>/scripts/moo.fx.js”></script>
    <script language=”javascript” type=”text/javascript” src=”<?php echo $ja_template_path;?>/scripts/moo.fx.pack.js”></script>
    <script language=”javascript” type=”text/javascript” src=”<?php echo $ja_template_path;?>/scripts/ja.moo.roller.config.js”></script>[/PHP]

    To
    [PHP]<?php if (($option==”com_sobi2″)&& ($sobi2Task==”search” )){ /* do nothing */ }else{?>
    <script language=”javascript” type=”text/javascript” src=”<?php echo $ja_template_path;?>/scripts/moo.fx.js”></script>
    <script language=”javascript” type=”text/javascript” src=”<?php echo $ja_template_path;?>/scripts/moo.fx.pack.js”></script>
    <script language=”javascript” type=”text/javascript” src=”<?php echo $ja_template_path;?>/scripts/ja.moo.roller.config.js”></script>
    <?php } ?>[/PHP]

    waiting for your result

    pl709 Friend
    #231879

    i have correct the bug this with your help but that way:

    [PHP]<script language=”javascript” type=”text/javascript” src=”<?php echo $ja_template_path;?>/scripts/moo.fx.js”></script>
    <script language=”javascript” type=”text/javascript” src=”<?php echo $ja_template_path;?>/scripts/moo.fx.pack.js”></script>
    <script language=”javascript” type=”text/javascript” src=”<?php echo $ja_template_path;?>/scripts/ja.moo.roller.config.js”></script> [/PHP]

    changed to

    [PHP]<?php if (($option==”com_sobi2″)&& ($sobi2Task==”search” )){ ?>
    <script language=”javascript” type=”text/javascript” src=”<?php echo $ja_template_path;?>/js/mootools.js”></script>
    <?php }else{?>
    <script language=”javascript” type=”text/javascript” src=”<?php echo $ja_template_path;?>/scripts/moo.fx.js”></script>
    <script language=”javascript” type=”text/javascript” src=”<?php echo $ja_template_path;?>/scripts/moo.fx.pack.js”></script>
    <script language=”javascript” type=”text/javascript” src=”<?php echo $ja_template_path;?>/scripts/ja.moo.roller.config.js”></script>
    <?php } ?> [/PHP]

    create the JS folder in the template directory and copy the mootools.js from com_sobi2/includes to “template”/js

    now its working

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 2 voices, and was last updated by  pl709 17 years ago.

We moved to new unified forum. Please post all new support queries in our New Forum