rook4eva Posted July 2, 2006 Posted July 2, 2006 Hello i am new to oscommerce, i have just installed it on with no problems. The site works ok except some of the images are not showing up. The quick find button does not seem to be working and i would like to know which php files i have to edit ti fix this. (there are so many i dont even know where to start). The address to my site is http://www.completecomputer.co.uk
spax Posted July 2, 2006 Posted July 2, 2006 It looks like the parameter for button_quick_find.gif has been removed from includes/boxes/search.php Check in the original file to see what it should be. The gif itself will be located in includes/languages/english/images/buttons/ button_buy_now.gif should also be in that directory but it is missing from your site, check to see if it is there. The only other images I noticed missing, are the ones for your sub-categories. You will need to associate images to them from your admin, then upload them.
rook4eva Posted July 2, 2006 Author Posted July 2, 2006 It looks like the parameter for button_quick_find.gif has been removed from includes/boxes/search.php Check in the original file to see what it should be. The gif itself will be located in includes/languages/english/images/buttons/ button_buy_now.gif should also be in that directory but it is missing from your site, check to see if it is there. The only other images I noticed missing, are the ones for your sub-categories. You will need to associate images to them from your admin, then upload them. hello i have checked the image directories and the pictures are all there. I have checked the coding in includes/boxes/search.php and it seems to be ok. This is the coding: <?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 © 2003 osCommerce Released under the GNU General Public License */ ?> <!-- search //--> <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> <!-- search_eof //--> if you see something wrong with it please say so, as i cannot see anything wrong with it.
jamie06 Posted July 5, 2006 Posted July 5, 2006 Hi, I have just installed OSC and am having the same problem. When the page is displayed it looks fine except some of the images inc the language buttons and the quick find button are broken. Some images/buttons are displaying half of the picture and some are fine. werid? I have just wiped everything and re-installed but I am getting the same problem - though this time it is slightly better!?? (this time the my account,cart contents amd checkout icons in the top left are displaying fine - before they didn't) The images seem are there and I have only changed the permission as detailed in the manual (although I did have to change catalog/includes/configure.php to 444 as I still had the error in pink at the top of the homepage). Please let me know if i can tell you anything else to help someone help me figure this out! Jamie.
choosealogin Posted July 5, 2006 Posted July 5, 2006 Rook4eva, you might want to look at this thread http://www.oscommerce.com/forums/lofiversion/i...hp/t185617.html I think it might apply to your situation jamie06, Without seeing the problem, it's hard to tell for sure...but it sounds like your images are corrupted. That can happen from uploading them in ascii mode. They need to be uploaded in binary. I use Filezilla for FTP uploading/downloading, and I've never had a problem with it set on "auto" mode. I think you shoud reupload your images (in binary) and if they still only show "halfway" then try a different FTP program.
jamie06 Posted July 5, 2006 Posted July 5, 2006 thanks choosealogin! I have uploaded the images directorys again in binary mode and they are all displaying properly! apart from the language icon: /htdocs/catalog/includes/languages/english/images/icon.gif and the quick find button: /htdocs/catalog/includes/languages/english/images/button/button_quick_find.gif I have uploaded these again separtly in binary mode but they still will not display? permissons are set to 707 but changing to 777 doesn't seem to change things. I have looked at the above users php extract - do you need to put the full path to the image or does it know where to look? Jamie
choosealogin Posted July 5, 2006 Posted July 5, 2006 jamie, Well, that's an improvement. It's odd that only 2 images are not showing now. It doesn't sound like it's necessarily either problem listed above, ...now anyway. Although since both of those are in the 'includes' directory, you might take a look at the thread I directed rook4eva to. Worth a try anyway. To answer your question, if all of your paths are set correctly in your configure.php files, then yes- it knows where to find the images. Since only 2 images are not showing, I suspect that your paths are fine. Before you do anything else, you might just right click one (or both) of the broken images, select 'properties' and see what your browser shows as the path. Could you come back and post that info?
jamie06 Posted July 10, 2006 Posted July 10, 2006 I have deleted the htaccess file from my includes and now buttons are displyed properley. :-) Thanks for your help, Jamie.
rook4eva Posted September 18, 2006 Author Posted September 18, 2006 i have solved the problem, many thanks.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.