Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

help with images


ixbiosxi

Recommended Posts

i can see all the images but the main button images i've reinstalled the shopping cart twice ive even deleted the databasse that i created in mysql, and created a new one.

still no go.

has anyone had this problem before and if so do you know a solution? any help will be greatly appreciated

For an osCommerce and STS Tutorial click the www button in my profile.

Link to comment
Share on other sites

all the other image files work the only ones that dont are my buttons.

 

 

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://localhost'); // eg, http://localhost - should not be NULL for productive servers

define('HTTPS_SERVER', 'https://localhost'); // eg, https://localhost - should not be NULL for productive servers

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('DIR_WS_CATALOG', '/catalog/'); // absolute path required

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/'); // If "URL fopen wrappers" are enabled in PHP (which they are in the default configuration), this can be a URL instead of a local pathname

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', DIR_WS_CATALOG . 'pub/');

define('DIR_FS_DOCUMENT_ROOT', 'd:/phpdev/www');

define('DIR_FS_CATALOG', 'd:/phpdev/www/catalog/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

// define our database connection

define('DB_SERVER', 'localhost'); // eg, localhost - should not be NULL for productive servers

define('DB_SERVER_USERNAME', 'root');

define('DB_SERVER_PASSWORD', '');

define('DB_DATABASE', 'catalog');

define('USE_PCONNECT', 'true'); // use persistent connections?

define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'

?>

For an osCommerce and STS Tutorial click the www button in my profile.

Link to comment
Share on other sites

they're not new buttons they are the ones that come with the cart, they are the email buttons, and flag icons, and so on and so forth.

For an osCommerce and STS Tutorial click the www button in my profile.

Link to comment
Share on other sites

  • 3 weeks later...

OK, I think I'm having the same problem. I am using v2.2 snap 20020905 which I installed succesfully as a live site without probs at that time. All images and buttons worked (and still do work) fine. Then I went on hiatus.

 

Now I am working on it again and just got OSC, PHP, Apache, PHPmyadmin up and running on my PC so as not to work on a live site. When I installed OSC on the web server installation on my PC, everything works fine but now the buttons are missing!?! The directory structure is identical to that on the live web server with the exception of the parent directory, 'Naturespirit', which is named 'newsite' on the live server.

 

I know the buttons are located in

 

C:phpdevwwwNaturespiritincludeslanguagesenglishimagesbuttons

 

(I have catalog installed in the root directory) but they are not showing up on the pages. However, the links for those buttons all work fine. Asyou can see from Stevens config post, I can find nothing in 'configure.php' which directs the path to the 'buttons' directory. It is obviously an addressing prob but I am at a loss. I suspect it has to do with the different paths (root / web server / virtual - stc.) I supplied on install, but I don't know how, because everything works fine otherwise.

 

Referencing the above directory path, when offline, I have my browser home page set to 'localhost'. 'localhost' takes me directly to

 

C:phpdevwww

 

on my PC which brings up the webpage directory of everything in 'www'. Clicking on Naturespirit invokes 'default.php' and OSC starts, but the buttons are missing in the offline development site, which was copied from the original upzip that the live site was uploaded from. The buttons are missing not only on the welcome page, but also on any other page, such as the account_edit pages, etc. These are the buttons such as 'Edit Account', 'Continue', 'Quick Find', 'Sign In', 'Notifications', 'Order History', 'Address Book', etc.

 

I've tried to reinstall in a new directory with no luck. I also downloaded the live site files and compared, but can find no differences.

 

Anyone have any idea?

We stand in ignorance only for questions not asked. Plug up the leaks in your knowledge base and open up a flood of understanding.
Link to comment
Share on other sites

PS. The admin buttons all appear just fine. This only occurs with the catalog buttons. I know, I know.... try installing the catalog files in a 'catalog' directory but.... it worked just fine this way the first time.

We stand in ignorance only for questions not asked. Plug up the leaks in your knowledge base and open up a flood of understanding.
Link to comment
Share on other sites

Thanks, yes, all folders are set to 'drwxrwxrwx' and all files are set to '-rw-rw-rw-'

 

I've been trying to follow one thread, the button in the search box in the left column, to figure it out. I trace it down to search.php in includes/boxes but there my lack of php knowledge fails me. I don't understand how the button makes it from

 

<?php

 $info_box_contents = array();

 $info_box_contents[] = array('align' => 'left',

                              'text'  => BOX_HEADING_SEARCH

                             );

 new infoBoxHeading($info_box_contents, false, false);



 $hide = tep_hide_session_id();

 $info_box_contents = array();

 $info_box_contents[] = array('form'  => '<form name="quick_find" method="get" action="' . tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false) . '">',

                              'align' => 'center',

                              'text'  => $hide . '<input type="text" name="keywords" size="10" maxlength="30" value="' . htmlspecialchars(StripSlashes(@$HTTP_GET_VARS["keywords"])) . '" style="width: ' . (BOX_WIDTH-30) . 'px"> ' . 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);

?>

 

into the search box.

We stand in ignorance only for questions not asked. Plug up the leaks in your knowledge base and open up a flood of understanding.
Link to comment
Share on other sites

I mean, where does the array get loaded with the button images and where do BOX_HEADING_SEARCH and BOX_SEARCH_TEXT get defined? I've looked in configure, conditions, the css file, default, I've checked the tables in PHPmyadmin for filenames....

 

I'm doing this bootstrap, but I think my efforts so far have covered a lot of ground despite my limited knowledge of PHP. And, for sure, I'm learning it by doing this but not enough yet.

 

Any other help out there please?

We stand in ignorance only for questions not asked. Plug up the leaks in your knowledge base and open up a flood of understanding.
Link to comment
Share on other sites

These 2 lines should have your domain name instead of local host unless your implementing this script on your own box.

 

define('HTTP_SERVER', 'http://localhost'); // eg, http://localhost - should not be NULL for productive servers

define('HTTPS_SERVER', 'https://localhost'); // eg, https://localhost - should not be NULL for productive servers

Link to comment
Share on other sites

That is correct. In the live site on which the buttons show these two lines are set to 'mydomainname'. But on my own PC they are set to 'localhost' and the buttons do not appear.

We stand in ignorance only for questions not asked. Plug up the leaks in your knowledge base and open up a flood of understanding.
Link to comment
Share on other sites

This problem has been solved. Please see the thread 'quick find and in cart images not loading??' Search for topics by author 'charles' if you have problems locating it.

We stand in ignorance only for questions not asked. Plug up the leaks in your knowledge base and open up a flood of understanding.
Link to comment
Share on other sites

Archived

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

×
×
  • Create New...