LoganberryGroup Posted April 27, 2011 Share Posted April 27, 2011 Hi. I have made a menu http://www.checkpointdirect.co.uk/menu/mega3/'>http://www.checkpointdirect.co.uk/menu/mega3/ and it works. However, when I put... <?php include 'includes/mega3/menu.php'; ?> ...in the header.php file I get http://www.checkpointdirect.co.uk/ Any help would be great. Thank you. Scott Link to comment Share on other sites More sharing options...
Taipo Posted April 27, 2011 Share Posted April 27, 2011 Might be associated with the relative linking in your menu php page. <link href="css/dcmegamenu.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script type='text/javascript' src='js/jquery.hoverIntent.minified.js'></script> <script type='text/javascript' src='js/jquery.dcmegamenu.1.3.2.js'></script> <script type="text/javascript"> $(document).ready(function($){ $('#mega-menu-5').dcMegaMenu({ rowItems: '4', speed: 'slow', effect: 'slide' }); }); </script> <link href="css/skins/orange.css" rel="stylesheet" type="text/css" /> </head> - Stop Oscommerce hacks dead in their tracks with osC_Sec (see discussion here)- Another discussion about infected files ::here::- A discussion on file permissions ::here::- Site hacked? Should you upgrade or not, some thoughts ::here::- Fix the admin login bypass exploit here- Pareto Security: New security addon I am developing, a remake of osC_Sec in PHP 5 with a number of fixes- BTC:1LHiMXedmtyq4wcYLedk9i9gkk8A8Hk7qX Link to comment Share on other sites More sharing options...
LoganberryGroup Posted April 27, 2011 Author Share Posted April 27, 2011 Might be associated with the relative linking in your menu php page. <link href="css/dcmegamenu.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script type='text/javascript' src='js/jquery.hoverIntent.minified.js'></script> <script type='text/javascript' src='js/jquery.dcmegamenu.1.3.2.js'></script> <script type="text/javascript"> $(document).ready(function($){ $('#mega-menu-5').dcMegaMenu({ rowItems: '4', speed: 'slow', effect: 'slide' }); }); </script> <link href="css/skins/orange.css" rel="stylesheet" type="text/css" /> </head> Hi. Thank you for your reply. What do you mean by relative linking? Thanks Scott. Link to comment Share on other sites More sharing options...
LoganberryGroup Posted April 27, 2011 Author Share Posted April 27, 2011 Change somethings, now got this http://www.checkpointdirect.co.uk/ ?? Also, now my buttons don't show? :/ Scott Link to comment Share on other sites More sharing options...
multimixer Posted April 27, 2011 Share Posted April 27, 2011 Hi. Thank you for your reply. What do you mean by relative linking? Thanks Scott. In other words: Are the paths to the files you "link" to in your includes/template_top.php file correct? <link href="css/dcmegamenu.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script type='text/javascript' src='js/jquery.hoverIntent.minified.js'></script> <script type='text/javascript' src='js/jquery.dcmegamenu.1.3.2.js'></script> Also, you don't need to link again to the jquery script, since it is already present in osCommerce, just make sure the calls to the megamenu scripts are after the call to the jquery script My community profile | Template system for osCommerce - New: Responsive | Feedback channel Link to comment Share on other sites More sharing options...
LoganberryGroup Posted April 27, 2011 Author Share Posted April 27, 2011 Thank you very, very much. :P Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.