CLAR101 Posted December 27, 2011 Report Share Posted December 27, 2011 Hello I have a small issue within the CMS package it appears that colorbox does not want to work, I have tried the files I created and even the files provided and still no luck the code is below in case you need it. <link href="<?php echo APP_RESOURCES; ?>css/fp_style.css" media="screen" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="http://code.jquery.com/jquery-1.5.2.min.js"></script> <script type="text/javascript">$.noConflict();</script> <script type="text/javascript" src="<?php echo APP_RESOURCES; ?>javascript/colorbox/colorbox.js"></script> <link href="<?php echo APP_RESOURCES; ?>javascript/colorbox/colorbox.css" media="screen" rel="stylesheet" type="text/css" /> <script type="text/javascript"> jQuery(document).ready(function($) { $.colorbox({ transition: 'fade', initialWidth: '50px', initialHeight: '50px', overlayClose: false, escKey: false, scrolling: false, opacity: .6, href: '<?php echo SITE_PATH; ?>app/login.php', }); }); </script> Thanks in advance Yours Sincerely Chris Russell Quote Link to comment Share on other sites More sharing options...
falkencreative Posted December 27, 2011 Report Share Posted December 27, 2011 I would suggest double checking this line: href: '<?php echo SITE_PATH; ?>app/login.php', I believe the comma at the end of the line is unnecessary and could be causing a Javascript error. Quote Link to comment Share on other sites More sharing options...
CLAR101 Posted December 27, 2011 Author Report Share Posted December 27, 2011 Unfortunately that did not work I have even copied and pasted the code provided with the build a CMS course and that did not work ether. Thanks for the reply Quote Link to comment Share on other sites More sharing options...
CLAR101 Posted December 27, 2011 Author Report Share Posted December 27, 2011 Got colorbox to work for some reason it wont except local host as APP_RESOURCES so I changed it to my domain name and it works but color box looks like this I am glad I got it working though just need to figure out why it displays it in correctly Yours Sincerely Chris Russell Quote Link to comment Share on other sites More sharing options...
CLAR101 Posted December 27, 2011 Author Report Share Posted December 27, 2011 The border displays properly in Firefox and Internet Explorer but not in Opera however the close icon displays in Opera but not in Firefox or Internet Explorer LOL really weired the image above is the one from Opera. Quote Link to comment Share on other sites More sharing options...
CLAR101 Posted December 28, 2011 Author Report Share Posted December 28, 2011 Fixed it, the problem was I had to delete all my history in Opera in order for it to work, but at least it works thanks for everything Yours Sincerely Chris Russell Quote Link to comment Share on other sites More sharing options...
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.
Note: Your post will require moderator approval before it will be visible.