mhpcomputerservices Posted January 9, 2006 Posted January 9, 2006 Hi I was tinkering with my site today but I've only removed some christmas stuff so I don't think that will have made this happen. Now I normally browse using firefox but I happened to view my site in IE and noticed that the right column is out of place and that theres some problems with the Search Infobox .... but only in IE, it's fine in Firefox! Please see for yourself: www.mhpcomputerservices.com I have had a look through and have been stumped as to what has happened, it may be something really simple that I have over looked. Can anyone give me some pointers please. I'm not sure what code to include here but I shall put the Search Box code below as this is the bot that is also displaying incorrectly. /catalog/includes/box/search.php <?php /* $Id: search.php,v 1.22 2003/02/10 22:31:05 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ ?> <!-- search //--> <tr> <td><table width="125" border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="images/search.jpg" width="125" height="30"></td> </tr> <tr> <td><table width="123" border="0" cellspacing="0" cellpadding="0" align="right"> <tr> <td><?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_SEARCH); // new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('form' => tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'), 'align' => 'center', 'text' => tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px"') . ' ' . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . '<br>' . BOX_SEARCH_TEXT . '<br> <a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>'); new infoBox($info_box_contents); ?></td> </tr> </table> </td> </tr> </table> </td> </td> </tr> <!-- search_eof //--> Any help is greatly appreciated. Many Thanks MHP
mhpcomputerservices Posted January 9, 2006 Author Posted January 9, 2006 EKKKK I've just noticed that in IE none of the button images are working !! Hmmmm :unsure:
mhpcomputerservices Posted January 15, 2006 Author Posted January 15, 2006 Please, Please is there anyone out there that can help me? I've no doubt its something really silly and simple but I cannot for the life of me figure out what it is! Seeing as MSIE dominates the general browser usage I need to fix it but I can't! HELP :'( Kind Regards MHP
tomf2 Posted January 15, 2006 Posted January 15, 2006 I'm very new to osCommerce, mostly lurking here to absorb info. I can't give you a definate answer, but will pass on some info and a wild guess. Info: Your button/images (reviews, add to cart, tell a friend, quick find) are simply failing to appear in Mac Safaria browsers. On either Mac Netscape or Mac Firefox I get text rather than image (alt tags??). Wild Guess: Something wrong with the path info for the images? You have: img src="includes/languages/english/images/buttons/button_reviews.gif" That seems to be "normal" for osCommerce, just make sure: 1) your pages and your includes fold are in the same directory 2) the button images are really at that location. Hope that helps, remember that I'm a real osCommerce "newbee". Please, Please is there anyone out there that can help me? I've no doubt its something really silly and simple but I cannot for the life of me figure out what it is! Seeing as MSIE dominates the general browser usage I need to fix it but I can't! HELP :'( Kind Regards MHP
mhpcomputerservices Posted January 16, 2006 Author Posted January 16, 2006 Info: Your button/images (reviews, add to cart, tell a friend, quick find) are simply failing to appear in Mac Safaria browsers. On either Mac Netscape or Mac Firefox I get text rather than image (alt tags??). Wild Guess: Something wrong with the path info for the images? You have: img src="includes/languages/english/images/buttons/button_reviews.gif" That seems to be "normal" for osCommerce, just make sure: 1) your pages and your includes fold are in the same directory 2) the button images are really at that location. Hi Thanks for replying I was beginning to wonder if there was anyone out there :D I have finally found out what the problem was: attempting to browse directly to one of the images in catalog/includes/languages/english/images/buttons gave an Error 500. So i dived into the error log files on my server and found entries like this: [alert] [client **.**.**.**] /home/fhlinux198/m/mhpcomputerservices.com/user/htdocs/catalog/includes/.htaccess: order not allowed here So ah ha! I thought ... after removing/renaming the .htaccess file it now works ok. Now this .htaccess file is the one that came with the oscommerce installation by removing it am I affecting anything else? Thanks for your help BTW Kind Regards MHP
Lt_Quantis Posted January 16, 2006 Posted January 16, 2006 I have the same problem as you Marcus, I've installed osC on both my local server running Win2003 and the icon appears but on my host run Linux it's gone, so have the language flags for some reason. Like you renaming .htaccess sorts it out, but I suspect this quick fix isn't the answer... :-" Anyone have a pointer :D
tomf2 Posted January 17, 2006 Posted January 17, 2006 Again, I'm VERY new to osCommerce... so take my comments with that in mind!!!!!!! I "think" the .htaccess file is ONLY for use with Apache servers. If you are running a Windows Server or Linux server, I don't "think" you want that file uploaded. I "think" MHP is running Linux and Lt_Quantis mentioned a Windows2003 server. Note that a Windows20003 server is not the same as a Windows Operating System (which may very well be running Apache Server). Below is the actual content of the .htaccess file: # $Id: .htaccess,v 1.3 2003/06/12 10:53:20 hpdl Exp $ # # This is used with Apache WebServers # # For this to work, you must include the parameter 'Options' to # the AllowOverride configuration # # Example: # # <Directory "/usr/local/apache/htdocs"> # AllowOverride Options # </Directory> # # 'All' with also work. (This configuration is in the # apache/conf/httpd.conf file) # The following makes adjustments to the SSL protocol for Internet # Explorer browsers <IfModule mod_setenvif.c> <IfDefine SSL> SetEnvIf User-Agent ".*MSIE.*" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 </IfDefine> </IfModule> # If Search Engine Friendly URLs do not work, try enabling the # following Apache configuration parameter # # AcceptPathInfo On # Fix certain PHP values # (commented out by default to prevent errors occuring on certain # servers) # #<IfModule mod_php4.c> # php_value session.use_trans_sid 0 # php_value register_globals 1 #</IfModule> I have the same problem as you Marcus, I've installed osC on both my local server running Win2003 and the icon appears but on my host run Linux it's gone, so have the language flags for some reason. Like you renaming .htaccess sorts it out, but I suspect this quick fix isn't the answer... :-" Anyone have a pointer :D
mhpcomputerservices Posted January 17, 2006 Author Posted January 17, 2006 Hi Lt_Quantis and Tom Well I have figured out why the .htaccess file does not work correctly, my host has imposed limitations on the use of .htaccess files. (Admittedly with forewarning - after I found the announcement <_< ) With my host they can only be used for URL security and redirections now. Oh well at least I know why it went qwerky now ....... Regarding your situation Lt_Quantis, can you find out if there are any limitations on the use of .htaccess files on your server? Regards MHP
Recommended Posts
Archived
This topic is now archived and is closed to further replies.