Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Not Working In Ie - Stylesheet?


Chubz

Recommended Posts

Posted

I got trouble making my site working in IE. I have gone throught the main files in the root (catalog) directory & entered the full url to the stylesheet. I guess I need to look for all other files that call for it too because its not all working. Can anyone tell me which directories & files I need to edit to save me all night searching through them all?

 

Thanks :)

Posted
I got trouble making my site working in IE. I have gone throught the main files in the root (catalog) directory & entered the full url to the stylesheet. I guess I need to look for all other files that call for it too because its not all working. Can anyone tell me which directories & files I need to edit to save me all night searching through them all?

 

Thanks :)

 

As long as your stylesheet is in the same directory as your other files that are being displayed, you shouldn't have to put in the full url. What is it exactly that isn't working in IE? What other browsers have you used in order to test this out? Firefox? Opera? I'm just curious.

Posted
As long as your stylesheet is in the same directory as your other files that are being displayed, you shouldn't have to put in the full url. What is it exactly that isn't working in IE? What other browsers have you used in order to test this out? Firefox? Opera? I'm just curious.

 

I use firefox. I have only previewd in FF & IE

In IE no images are being displayed, links don't work, table backgrounds don't display & css styles don't display. The css sheet is in the same directory yes. Oscom is all in the root directory of my site if that helps.

 

After pasting the full url to the stylesheet, the table backgrounds & text styles work, but thats it.

Posted
I use firefox. I have only previewd in FF & IE

In IE no images are being displayed, links don't work, table backgrounds don't display & css styles don't display. The css sheet is in the same directory yes. Oscom is all in the root directory of my site if that helps.

 

After pasting the full url to the stylesheet, the table backgrounds & text styles work, but thats it.

 

 

Is it possible you have images turned off in IE? Tools -> InterntetOptions -> Advanced Tab -> Show Images.

Are your images .gif or .jpg format and not .bmp?

Posted

Show pictures is ticked in IE. I can see images on every other page in IE. All the images are .gif & .jpg It is a vanilla Oscom just installed yesterday (just when the forum was switched off lol).

Posted
Show pictures is ticked in IE. I can see images on every other page in IE. All the images are .gif & .jpg It is a vanilla Oscom just installed yesterday (just when the forum was switched off lol).

 

Can you post the URL of your site for us to try? That would at least tell us if it is your browser problem.

 

 

Also are you sure the images directory path is pointed to properly? Did you load the images in the Category or Product inserts (vs manually) and were able to view them before saving the product? You can select a product and click edit to determine if the images are loaded and referenced in the database.

 

does your CSS contain any img{display: none;}

Posted
Can you post the URL of your site for us to try? That would at least tell us if it is your browser problem.

Also are you sure the images directory path is pointed to properly? Did you load the images in the Category or Product inserts (vs manually) and were able to view them before saving the product? You can select a product and click edit to determine if the images are loaded and referenced in the database.

 

does your CSS contain any img{display: none;}

Sure, its http://www.mirrorsdirect.tv/index.php (please don't buy a mirror lol, they're just test items).

 

Here is my stylesheet.css

/*
 $Id: stylesheet.css,v 1.56 2003/06/30 20:04:02 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

.boxText { font-family: Verdana, Arial, sans-serif; font-size: 10px; }
.errorBox { font-family : Verdana, Arial, sans-serif; font-size : 10px; background: #ffb3b5; font-weight: bold; }
.stockWarning { font-family : Verdana, Arial, sans-serif; font-size : 10px; color: #cc0033; }
.productsNotifications { background: #f2fff7; }
.orderEdit { font-family : Verdana, Arial, sans-serif; font-size : 10px; color: #70d250; text-decoration: underline; }

BODY {
 background: #ffffff;
 color: #000000;
 margin: 0px;
}

A {
 color: #000000;
 text-decoration: none;
}

A:hover {
 color: #AABBDD;
 text-decoration: underline;
}

FORM {
display: inline;
}

TR.header {
 background: #ffffff;
}

TR.headerNavigation {
 background: #bbc3d3;
}

TD.headerNavigation {
 font-family: Verdana, Arial, sans-serif;
 font-size: 10px;
 background: #bbc3d3;
 color: #ffffff;
 font-weight : bold;
}

A.headerNavigation { 
 color: #FFFFFF; 
}

A.headerNavigation:hover {
 color: #ffffff;
}

TR.headerError {
 background: #ff0000;
}

TD.headerError {
 font-family: Tahoma, Verdana, Arial, sans-serif;
 font-size: 12px;
 background: #ff0000;
 color: #ffffff;
 font-weight : bold;
 text-align : center;
}

TR.headerInfo {
 background: #00ff00;
}

TD.headerInfo {
 font-family: Tahoma, Verdana, Arial, sans-serif;
 font-size: 12px;
 background: #00ff00;
 color: #ffffff;
 font-weight: bold;
 text-align: center;
}

TR.footer {
 background: #bbc3d3;
}

TD.footer {
 font-family: Verdana, Arial, sans-serif;
 font-size: 10px;
 background: #bbc3d3;
 color: #ffffff;
 font-weight: bold;
}

.infoBox {
 background: #b6b7cb;
}

.infoBoxContents {
 background: #f8f8f9;
 font-family: Verdana, Arial, sans-serif;
 font-size: 10px;
}

.infoBoxNotice {
 background: #FF8E90;
}

.infoBoxNoticeContents {
 background: #FFE6E6;
 font-family: Verdana, Arial, sans-serif;
 font-size: 10px;
}

TD.infoBoxHeading {
 font-family: Verdana, Arial, sans-serif;
 font-size: 10px;
 font-weight: bold;
 background: #bbc3d3;
 color: #ffffff;
}

TD.infoBox, SPAN.infoBox {
 font-family: Verdana, Arial, sans-serif;
 font-size: 10px;
}

TR.accountHistory-odd, TR.addressBook-odd, TR.alsoPurchased-odd, TR.payment-odd, TR.productListing-odd, TR.productReviews-odd, TR.upcomingProducts-odd, TR.shippingOptions-odd {
 background: #f8f8f9;
}

TR.accountHistory-even, TR.addressBook-even, TR.alsoPurchased-even, TR.payment-even, TR.productListing-even, TR.productReviews-even, TR.upcomingProducts-even, TR.shippingOptions-even {
 background: #f8f8f9;
}

TABLE.productListing {
 border: 1px;
 border-style: solid;
 border-color: #b6b7cb;
 border-spacing: 1px;
}

.productListing-heading {
 font-family: Verdana, Arial, sans-serif;
 font-size: 10px;
 background: #b6b7cb;
 color: #FFFFFF;
 font-weight: bold;
}

TD.productListing-data {
 font-family: Verdana, Arial, sans-serif;
 font-size: 10px;
}

A.pageResults {
 color: #0000FF;
}

A.pageResults:hover {
 color: #0000FF;
 background: #FFFF33;
}

TD.pageHeading, DIV.pageHeading {
 font-family: Verdana, Arial, sans-serif;
 font-size: 20px;
 font-weight: bold;
 color: #9a9a9a;
}

TR.subBar {
 background: #f4f7fd;
}

TD.subBar {
 font-family: Verdana, Arial, sans-serif;
 font-size: 10px;
 color: #000000;
}

TD.main, P.main {
 font-family: Verdana, Arial, sans-serif;
 font-size: 11px;
 line-height: 1.5;
}

TD.smallText, SPAN.smallText, P.smallText {
 font-family: Verdana, Arial, sans-serif;
 font-size: 10px;
}

TD.accountCategory {
 font-family: Verdana, Arial, sans-serif;
 font-size: 13px;
 color: #aabbdd;
}

TD.fieldKey {
 font-family: Verdana, Arial, sans-serif;
 font-size: 12px;
 font-weight: bold;
}

TD.fieldValue {
 font-family: Verdana, Arial, sans-serif;
 font-size: 12px;
}

TD.tableHeading {
 font-family: Verdana, Arial, sans-serif;
 font-size: 12px;
 font-weight: bold;
}

SPAN.newItemInCart {
 font-family: Verdana, Arial, sans-serif;
 font-size: 10px;
 color: #ff0000;
}

CHECKBOX, INPUT, RADIO, SELECT {
 font-family: Verdana, Arial, sans-serif;
 font-size: 11px;
}

TEXTAREA {
 width: 100%;
 font-family: Verdana, Arial, sans-serif;
 font-size: 11px;
}

SPAN.greetUser {
 font-family: Verdana, Arial, sans-serif;
 font-size: 12px;
 color: #f0a480;
 font-weight: bold;
}

TABLE.formArea {
 background: #f1f9fe;
 border-color: #7b9ebd;
 border-style: solid;
 border-width: 1px;
}

TD.formAreaTitle {
 font-family: Tahoma, Verdana, Arial, sans-serif;
 font-size: 12px;
 font-weight: bold;
}

SPAN.markProductOutOfStock {
 font-family: Tahoma, Verdana, Arial, sans-serif;
 font-size: 12px;
 color: #c76170;
 font-weight: bold;
}

SPAN.productSpecialPrice {
 font-family: Verdana, Arial, sans-serif;
 color: #ff0000;
}

SPAN.errorText {
 font-family: Verdana, Arial, sans-serif;
 color: #ff0000;
}

.moduleRow { }
.moduleRowOver { background-color: #D7E9F7; cursor: pointer; cursor: hand; }
.moduleRowSelected { background-color: #E9F4FC; }

.checkoutBarFrom, .checkoutBarTo { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #8c8c8c; }
.checkoutBarCurrent { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #000000; }

/* message box */

.messageBox { font-family: Verdana, Arial, sans-serif; font-size: 10px; }
.messageStackError, .messageStackWarning { font-family: Verdana, Arial, sans-serif; font-size: 10px; background-color: #ffb3b5; }
.messageStackSuccess { font-family: Verdana, Arial, sans-serif; font-size: 10px; background-color: #99ff00; }

/* input requirement */

.inputRequirement { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #ff0000; }

Posted
Anyone know which files I can edit for now, just so that I can get it to work? Thanks :)

 

That is wierd.

 

It appears to be a path issue. If you type the full path of the image it appears in the browser.

http://www.mirrorsdirect.tv/images/mainpag...amed-footer.jpg

 

Check your server paths and image directory in the catalog/includes/configure.php.

Perhaps Firefox fills in a missing / whereas MSIE doesn't.

 

Else try putting the full url path of the images in your catalog/includes/languages/english/index.php ....define TEXTMAIN

or where ever you added your table of images.

 

Only other thing I can think of is to make sure the images/mainpage directory is readable (Chmod 755 or 777)

Posted

Can you post your catalog/includes/configure.php file (leave out the Data Base info at the bottom).

Posted

Here is my configure.php I have replaced "/catalog" with just "/" because Oscom is in the root directory.

 

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', ''); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', false); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', '');
 define('HTTPS_COOKIE_DOMAIN', '');
 define('HTTP_COOKIE_PATH', '');
 define('HTTPS_COOKIE_PATH', '');
 define('DIR_WS_HTTP_CATALOG', '/');
 define('DIR_WS_HTTPS_CATALOG', '/');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
 define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

Posted

Ok I tried changing the following constants to:

  define('DIR_WS_HTTP_CATALOG', 'www.mirrorsdirect.tv/');
 define('DIR_WS_HTTPS_CATALOG', 'www.mirrorsdirect.tv/');

That made the images display, but all the links end up with the url twice & none of them work. :'(

Posted

I just had a brainstorm.

If I put the full URL to the images directory, that should solve it for now (hopefully). I'll try it when I get home.

 

It doesn't sound right that I should have to do that though, but I can't imagine it could be any rogue code because it was a brand new vanilla install. (I have made a couple of changes since).

Could it be a server issue perhaps?

Posted

Try changing the config file to this

// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://www.mirrorsdirect.tv'); // eg, [url="http://localhost"]http://localhost[/url] - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://www.mirrorsdirect.tv'); // eg, [url="https://localhost"]https://localhost[/url] - should not be empty for productive servers
 define('ENABLE_SSL', false); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', '');
 define('HTTPS_COOKIE_DOMAIN', '');
 define('HTTP_COOKIE_PATH', '/');
 define('HTTPS_COOKIE_PATH', '/');
 define('DIR_WS_HTTP_CATALOG', '/');
 define('DIR_WS_HTTPS_CATALOG', '/');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
 define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

See if that helps.

Posted

Yes! That did the trick, thank you very much! :thumbsup:

It is hopelessly slow now though, but I think that's just a busy server thing.

 

Thanks again.

Posted

Your welcome. Glad it worked. As far as being slow that is out of my league. Hopefully it gets better for you.

Posted

I have just edited all the main files where I put the full url to the stylesheet back to just stylesheet.css. That seems to have done the trick.

Now I can get some sleep. Thanks :)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...