-
AuthorPosts
-
October 28, 2007 at 12:28 am #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 Friendkashxo
- Join date:
- April 2007
- Posts:
- 605
- Downloads:
- 0
- Uploads:
- 21
- Thanks:
- 11
- Thanked:
- 78 times in 40 posts
October 31, 2007 at 3:34 am #231855I’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
October 31, 2007 at 12:09 pm #231879i 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
-
AuthorPosts
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