inserting .js script

Feel free to talk about everything related to our Joomla Products
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Fri Jul 24, 2015 6:36 pm
Im trying to insert a .js script in site. I need it to load above the mootools-core script (I would like it to be the first line) and can not figure out which file to add the line to. Any help would be appreciated.

Joomla 2.5.19
Gavick Simplicity

Current:

</style>
<script src="/media/system/js/mootools-core.js" type="text/javascript"></script>
<script src="/media/system/js/core.js" type="text/javascript"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js" type="text/javascript"></script>
<script src="/components/com_k2/js/k2.js?v2.6.9&amp;sitepath=/" type="text/javascript"></script>
<script src="/media/system/js/caption.js" type="text/javascript"></script>
<script src="/media/system/js/mootools-more.js" type="text/javascript"></script>
<script src="/media/system/js/modal.js" type="text/javascript"></script>
<script src="http://www.solutions-recovery.com/templates/gk_simplicity/js/gk.scripts.js" type="text/javascript"></script>
<script src="http://www.solutions-recovery.com/templates/gk_simplicity/js/gk.menu.js" type="text/javascript"></script>
<script type="text/javascript">
window.addEvent('load', function() {
new JCaption('img.caption');
});
window.addEvent('domready', function() {

SqueezeBox.initialize({});
SqueezeBox.assign($$('a.modal'), {
parse: 'rel'
});
});
$GKMenu = { height:true, width:true, duration: 250 };
$GK_TMPL_URL = "http://www.solutions-recovery.com/templates/gk_simplicity";

$GK_URL = "http://www.solutions-recovery.com/";

</script>

What I want:

</style>
<script src="/dialogtech.js" type="text/javascript"></script>
<script src="/media/system/js/mootools-core.js" type="text/javascript"></script>
<script src="/media/system/js/core.js" type="text/javascript"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js" type="text/javascript"></script>
<script src="/components/com_k2/js/k2.js?v2.6.9&amp;sitepath=/" type="text/javascript"></script>
<script src="/media/system/js/caption.js" type="text/javascript"></script>
<script src="/media/system/js/mootools-more.js" type="text/javascript"></script>
<script src="/media/system/js/modal.js" type="text/javascript"></script>
<script src="http://www.solutions-recovery.com/templates/gk_simplicity/js/gk.scripts.js" type="text/javascript"></script>
<script src="http://www.solutions-recovery.com/templates/gk_simplicity/js/gk.menu.js" type="text/javascript"></script>
<script type="text/javascript">
window.addEvent('load', function() {
new JCaption('img.caption');
});
window.addEvent('domready', function() {

SqueezeBox.initialize({});
SqueezeBox.assign($$('a.modal'), {
parse: 'rel'
});
});
$GKMenu = { height:true, width:true, duration: 250 };
$GK_TMPL_URL = "http://www.solutions-recovery.com/templates/gk_simplicity";

$GK_URL = "http://www.solutions-recovery.com/";

</script>
User avatar
Fresh Boarder

GK User
Fri Jul 24, 2015 8:53 pm
Hi,
you have two options:
1) Edit layout/default.php from template folder
2) Use module/plugin which allows you to use custom js file or just code: https://www.gavick.com/documentation/jo ... s-php-code

Sorry, but in general we do not help in code customizations.
User avatar
Platinum Boarder

GK User
Fri Jul 24, 2015 8:55 pm
P.s.
Besides, Joomla 2.5.19 - are you kidding ?
you should have at least 2.5.28,

your CMS version was not updated more than year, you have been in coma?
User avatar
Platinum Boarder

GK User
Fri Jul 24, 2015 9:48 pm
thank you oscar.
User avatar
Fresh Boarder


cron