Tato123 Posted January 8, 2015 Report Posted January 8, 2015 Hello everyone, I'm doing the new skin using Bootstrap for my company, but I have some serious problems. In layout.tpl file I need to call jquery.js <code> <script src = "<? php echo SITE_URL?> / lib / skins / Virtualiroma2 / js / jquery.js"> </ script> </ code> Most likely the script is in conflict with that in the file called core_htmlread.tpl <script type = "text / javascript"> var baseurl = "<? php echo SITE_URL;?>"; GeoURL var = "<? php echo GEONAME_URL;?>"; </ script> <link rel = "stylesheet" media = "all" type = "text / css" href = "<? php echo fileURL ('lib / css / phpvms.css')?>" /> <meta http-equiv = "Content-Type" content = "text / html; charset = <? php echo Config :: Get ('page_encoding');?>" /> <script type = "text / javascript" src = "http://ajax.googleap...jquery.min.js"> </ script> <script type = "text / javascript" src = "http://ajax.googleap...ery-ui.min.js"> </ script> <script type = "text / javascript" src = "http://maps.google.c...s?sensor=true"> </ script> <script type = "text / javascript" src = "<? php echo fileURL ('lib / js / jquery.form.js');?>"> </ script> <script type = "text / javascript" src = "<? php echo fileURL ('lib / js / phpvms.js');?>"> </ script> <script type = "text / javascript" src = "<? php echo fileURL ('lib / js / jquery.dataTables.js');?>"> </ script> <? php echo $ MODULE_HEAD_INC; If you recall from the script file layout.tpl when I try to book a flight "addbid" the system responds with "no route passed". If off the script, the system works properly. Does anyone know how to help me upgrade JQuery or if there is any solution? I tried to search the forum, there are many similar post but was not able to solve the problem. Thank You and Good Year 2015 to all Quote
Tom Posted January 8, 2015 Report Posted January 8, 2015 You can either get rid of your own call to jQuery, or replace the file included with phpVMS and update the head tpl. I would opt for the first as you can't be certain a newer version of jQuery is compatible with the phpVMS code. Quote
freshJet Posted January 8, 2015 Report Posted January 8, 2015 You can either get rid of your own call to jQuery, or replace the file included with phpVMS and update the head tpl. I would opt for the first as you can't be certain a newer version of jQuery is compatible with the phpVMS code. Which is extremely frustrating when you need the current version. Quote
Tato123 Posted January 8, 2015 Author Report Posted January 8, 2015 You can either get rid of your own call to jQuery, or replace the file included with phpVMS and update the head tpl. I would opt for the first as you can't be certain a newer version of jQuery is compatible with the phpVMS code. Hi Tom, if I remove the call, menus do not work , if I use the call phpvms, menus do not work too because Bootstrap's Javascript requires jQuery version 1.9.1 or higher, Quote
Tom Posted January 8, 2015 Report Posted January 8, 2015 Both true. Try replacing the core_head one with a newer version (still from Google CDN). It should still be available for bootstrap here. You'll probably just want to go through your site and check things that phpVMS uses jQuery for are still working. Quote
freshJet Posted January 8, 2015 Report Posted January 8, 2015 I have done it before, it does no harm as far as I can see, however there is no guarantee the same can be said for future versions obviously. I have removed the javascript bidding, so I don't have that issue anyway. Quote
StartVM Posted January 8, 2015 Report Posted January 8, 2015 And this is why phpVMS needs either a mass upgrade which I don't see happening, or its time to move on. At least for my VA... Quote
freshJet Posted January 9, 2015 Report Posted January 9, 2015 And this is why phpVMS needs either a mass upgrade which I don't see happening, or its time to move on. At least for my VA... It's not going to come from Nabeel, that's for sure. Nothing stopping others getting involved though. Quote
Tato123 Posted January 9, 2015 Author Report Posted January 9, 2015 I tried with the above but nothing I plugged in the script file core_htmlhead <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> but the system answe "No route passed" Quote
Tom Posted January 9, 2015 Report Posted January 9, 2015 I tried with the above but nothing I plugged in the script file core_htmlhead <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> but the system answe "No route passed" Have you removed your own reference to jQuery? Quote
Tato123 Posted January 11, 2015 Author Report Posted January 11, 2015 yes i removed the reference Quote
Administrators simpilot Posted January 11, 2015 Administrators Report Posted January 11, 2015 You can take a look here -> https://github.com/DavidJClark/phpvms_5.5.x/commit/bff6cd07674635a389c0336264664506644bf489 <- I made some changes to allow the functions from phpVMS to work with newer versions of jquery, not pretty right now but it does work. You may want to take a look at that and see if you can work it into your site. Quote
miniarma Posted January 12, 2015 Report Posted January 12, 2015 Try this, it worked for me In your header you will have something like this <script> $(document).ready(function() { //Retina Image $('img.retina').retina('@2x'); //LayerSlider Settings $('#layerslider').layerSlider({ skinsPath : 'images/layerslider_skins/', skin : 'borderlessdark', slideDelay : 5800, slideDirection : 'fade', thumbnailNavigation : false, navButtons : false, navStartStop : false, navPrevNext : true, hoverPrevNext : true, pauseOnHover : false, responsive : true }); </script> Place this line of code in so it looks like this "var $j = jQuery.noConflict();" <script> $(document).ready(function() { //Retina Image $('img.retina').retina('@2x'); //LayerSlider Settings $('#layerslider').layerSlider({ skinsPath : 'images/layerslider_skins/', skin : 'borderlessdark', slideDelay : 5800, slideDirection : 'fade', thumbnailNavigation : false, navButtons : false, navStartStop : false, navPrevNext : true, hoverPrevNext : true, pauseOnHover : false, responsive : true }); var $j = jQuery.noConflict(); </script> Now replace the $ with jQuery so now it will look like this <script> jQuery(document).ready(function() { //Retina Image jQuery('img.retina').retina('@2x'); //LayerSlider Settings jQuery('#layerslider').layerSlider({ skinsPath : 'images/layerslider_skins/', skin : 'borderlessdark', slideDelay : 5800, slideDirection : 'fade', thumbnailNavigation : false, navButtons : false, navStartStop : false, navPrevNext : true, hoverPrevNext : true, pauseOnHover : false, responsive : true }); var $j = jQuery.noConflict(); </script> Report back and let me know. If not send me a pm of your header and I will have a look at it for you Quote
Tato123 Posted April 2, 2015 Author Report Posted April 2, 2015 You can take a look here -> https://github.com/D...4664506644bf489 <- I made some changes to allow the functions from phpVMS to work with newer versions of jquery, not pretty right now but it does work. You may want to take a look at that and see if you can work it into your site. I have this error Strict Standards: Non-static method SchedulesData::setBidOnSchedule() should not be called statically in C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\newvar\core\common\SchedulesData.class.php on line 785 Bid added Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.