sukhicool Posted March 1, 2008 Posted March 1, 2008 Hello friends, I have got some major problem all of a sudden. My site has stopped working in Internet Explorer. It works well in Mozilla Firefox. The IMAGES and CSS are not working for Internet Explorer whereas it works for Mozilla. Please help. The site can be seen here. Rgds, Sukhi
Guest Posted March 1, 2008 Posted March 1, 2008 This is what the default osc head section should be <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> This is yours <html dir="LTR" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>ShopperixMall</title> <base href="/"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> Notice the <base href>? That is a very important part of osc. Change your pages back to the default settings.
sukhicool Posted March 2, 2008 Author Posted March 2, 2008 Thanks a lot bktrain ! Removing <base href> from the index page solved my problem for it. Can u please tell as if what is it's purpose in OScommerce and I dont know as if why the google adsense has stopped working... Is it also again some configuration issue? Regards, Sukhi This is what the default osc head section should be <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> This is yours <html dir="LTR" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>ShopperixMall</title> <base href="/"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> Notice the <base href>? That is a very important part of osc. Change your pages back to the default settings.
Guest Posted March 2, 2008 Posted March 2, 2008 Your index page does not have your doctype. Add this <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> Also on your index page your <base href is <!--<base href=""> --> Change to <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> Make sure all of your store front pages have the doctype and the base href. As to the importance of the above code it identigies HTTP request, either secure or nonsecure. For the google question I don't understand what you are asking.
sukhicool Posted March 2, 2008 Author Posted March 2, 2008 I have done the changes as suggested. For the google, I have added Google AdSense advertisement in the Right column under the 'Currencies'. It was appearing fine, but after this <base> issue, the Adsense advertisement has also stopped working. do you have any idea as if what might be the cause. Thanks a lot for your quick help ! Regards, Sukhi Your index page does not have your doctype. Add this <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> Also on your index page your <base href is <!--<base href=""> --> Change to <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> Make sure all of your store front pages have the doctype and the base href. As to the importance of the above code it identigies HTTP request, either secure or nonsecure. For the google question I don't understand what you are asking.
Guest Posted March 2, 2008 Posted March 2, 2008 Sorry I don't have any clue about the Google Adsense and how it works. Hopefully someone out will be able to help you with that.
Guest Posted March 2, 2008 Posted March 2, 2008 I just looked. If you are talking about the Google Adsense Box contrib from here http://addons.oscommerce.com/info/3031 Then you have to have the <base href> as directed above. That contrib displays that box pending your HTTP request. It is set to only show when the request is NONSSL. Hope that helps
Recommended Posts
Archived
This topic is now archived and is closed to further replies.