1
timgno
Conflict Jquery
  • 2010/12/11 20:04

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


xoops 2.5.0

where is the file for this function jquery?
<script type="text/javascript"
//<![CDATA[
            
(function($){
                $(
document).ready(function(){
                $.
jGrowl("Thanks for login, admin .", {  life:3000 position"center"speed"slow" });
            });
            })(
jQuery);            
//]]></script>


This creates problems with other scripts.

I also already added the jQuery library in my theme, and when I login to reinsert this again.

tim

2
novlang1984
Re: Conflict Jquery

If you don't want to load JQuery twice, you should add this script in <head>

Quote:
<{php}>
global $xoTheme;
$xoTheme->addScript("browse.php?Frameworks/jquery/jquery.js");
$this->assign('xoops_module_header', $xoTheme->renderMetas(null, true));
<{/php}>

3
timgno
Re: Conflict Jquery
  • 2010/12/11 21:08

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


Thanks - Solved

but the jquery library is duplicated on login
<script type="text/javascript" src="http://127.0.0.1/xoops-2.5.0/htdocs/browse.php?Frameworks/jquery/jquery.js"></script>

<
script type="text/javascript" src="http://127.0.0.1/xoops-2.5.0/htdocs/browse.php?Frameworks/jquery/jquery.ui.custom.min.js"></script>

<
script type="text/javascript" src="http://127.0.0.1/xoops-2.5.0/htdocs/themes/tx2bcr004/js/morpho.js"></script>

<
script type="text/javascript" src="http://127.0.0.1/xoops-2.5.0/htdocs/themes/tx2bcr004/js/jq.init.js"></script>

<
script src="http://127.0.0.1/xoops-2.5.0/htdocs/include/xoops.js" type="text/javascript"></script
<
script src="http://127.0.0.1/xoops-2.5.0/htdocs/themes/tx2bcr004/language/italian/script.js" type="text/javascript"></script
<
script src="http://127.0.0.1/xoops-2.5.0/htdocs/modules/meteoit/include/tabs.js" type="text/javascript"></script
<
script src="http://127.0.0.1/xoops-2.5.0/htdocs/browse.php?Frameworks/jquery/jquery.js" type="text/javascript"></script>

4
timgno
Re: Conflict Jquery
  • 2011/1/2 21:59

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


I solved it by finding the file core.php, now I have no problem with jquery to login.

Login

Who's Online

133 user(s) are online (87 user(s) are browsing Support Forums)


Members: 0


Guests: 133


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits