Latest News: (loading..)

iiinetworks

Members
  • Content count

    3,686
  • Joined

  • Last visited

  • Days Won

    1

iiinetworks last won the day on April 15 2012

iiinetworks had the most liked content!

2 Followers

About iiinetworks

Profile Information

  1. STS's primary target is allowing you to reskin the store with one HTML file. If you are good with HTML but not PHP, it might be the contribution for you. BTS is good if you understand PHP and want to make changes to the whole store by changing one file. BTS is more intrusive (replaces all the catalog files), but it is also more flexible. Both contributions conflict with other contributions. STS because it has trouble mixing the outputs, and BTS because it makes so many changes that it can be hard to map where the other contribution wants to make changes to where they need to be made in the BTS files. If you are satisfied with the base 3 column layout, perhaps you would be better off just customizing the basic files. The most important places to make changes are includes/header.php, includes/footer.php, includes/column_left.php, includes/column_right.php, stylesheet.css, and includes/classes/boxes.php. Hth, Matt
  2. What Chandra told me when I asked was that the main problem was that the display can get messed up with more than 32 characters (not sure of the cut off; it's higher than 32, but I don't know how much higher). This would happen on the shopping cart and checkout confirmation pages. You can change the effective value by changing the appropriate field widths in customers_basket_attributes and orders_products_attributes. Both hold the option value as a varchar(32). You can change the 32 to be up to 255. If you need more than 255, you need to change to a text type. If you do encounter display problems, it might help to know that you can truncate a string with substr, e.g. define('MAX_OPTION_VALUE_LEN', '32'); $string = 'This string is longer than thirty-two characters'; echo ((strlen($string) > MAX_OPTION_VALUE_LEN) ? substr($string, 0, (MAX_OPTION_VALUE_LEN - 3)) . '...' : $string); which should display Hth, Matt
  3. This is most often caused by using an option value other than TEXT (which has an ID of 0 if you used the insert SQL while installing the contribution). It could also mean that your text value ID is not set properly in configure.php. Hth, Matt
  4. Around line 214 of checkout_process.php, you should see a line that looks like $products_ordered_attributes .= "\n\t" . $attributes_values['products_options_name'] . ' ' . tep_decode_specialchars($order->products[$i]['attributes'][$j]['value']); This line is what includes each attribute. Hth, Matt
  5. I don't remember what I had to do to get the product listing pages working. They are a pain. I'll look into adding some changes for the listing_split class and uploading a new version. You might have to rewrite the Back button code to point to tep_href_link(FILENAME_DEFAULT, 'cPath=' . implode('_', $cPath_array) or something like that ($cPath_array may not be the right name). Hth, Matt
  6. To fix this, change the require('includes/application_top.php'); at the top of the index.php and product_info.php files to say require_once('includes/application_top.php'); Until you get the rewrite working, I would not make the includes/functions/html_output.php changes. The site should still work otherwise with just the mod_rewrite rules and rewrite.php installed. Changing require to require_once should not affect site functionality (when not using the rewrite). That way, you should be able to get both types of URLs ( www.romeysblades.com/knives/ and http://www.romeysblades.com/index.php/cPath/24 ) working simultaneously. Once you do that, you can make the html_output changes (which make osCommerce display with the new URLs). I find the regular SEF URLs goofy and would not use them. I see no advantages to writing product_info.php/products_id/24 rather than product_info.php?products_id=24. I don't think that they would hurt anything at this point though. Hth, Matt
  7. That worked out great! for my problem... Question is why would removing tep_ have any affect on the array? It doesn't. It does handle the fact that osCommerce dropped the tep_array_merge function in favor of providing their own definition of array_merge when available. There used to be a function tep_array_merge that said something along the lines of "if array_merge is defined, use it; otherwise, use this code that has the same effect." This was replaced by code that says "if array_merge is not defined, use this definition for it." At the same time, all references to tep_array_merge (in the core code) were replaced with array_merge. Hth, Matt
  8. Does Options +FollowSymLinks RewriteEngine on RewriteRule admin - [L] RewriteCond %{REQUEST_URI} !-d RewriteCond %{REQUEST_URI} !^/$ RewriteRule !\.(gif|php|css|jpg)$ /rewrite.php work? Do you have a link to your site? When is it acting odd? Did you check to see if mod_rewrite works on your server by doing a simple rule like Options +FollowSymLinks RewriteEngine on RewriteRule /test.php /index.php You also might want to check if catalog is written into the code of rewrite.php anywhere. Hth, Matt
  9. That's how an auto-increment field works. Once you go past a number, it won't go back unless you manually alter the table. If you do not want that behavior, remove the auto-increment and set the id to something like MAX(id)+1 manually. Hth, Matt
  10. $sitereps_state = tep_db_prepare_input($HTTP_POST_VARS['sitereps_state']); tep_db_query("insert into " . TABLE_SITEREPS . " (sitereps_id, sitereps_name, sitereps_city, sitereps_state, sitereps_rank) values ('" . tep_db_input($sitereps_id) . "', '" . tep_db_input($sitereps_name) . "', '" . tep_db_input($sitereps_state) . "', '" . (int)$sitereps_rank . "')"); <td class="dataTableContent" align="center" width="15%"> <?php echo $sitereps['sitereps_state']; ?> </td> $contents[] = array('text' => '<br>' . TEXT_INFO_SITEREPS_STATE . '<br>' . tep_draw_pull_down_menu('sitereps_state', tep_get_sitereps_states())); It is hard to help when there is this much code. Particularly as it is spread over *six* threads. Part of the reason why I didn't post last night is that I started trying to read through the three threads that you PMed to me and just gave up. I think that I have distilled the relevant code from what you posted (for questions 1 and 2). I am missing at least one piece of code that would be relevant, the definition of function tep_get_sitereps_states. tep_draw_pull_down_menu expects to get passed a two dimensional array. The inner dimension is just a number representing position in the menu. The outer dimension is associative (i.e. keyed by a string), with keys of 'id' and 'text'. The 'text' is what appears in the menu; the 'id' is what the menu passes when you submit the form with that entry selected. In your case, you should be setting the 'text' to the state initials in your tep_get_sitereps_states function. I am guessing that your current function does not do it that way. Without seeing the function, this is the best that I can do with #1. As to #2, remember that the pull down menu passes the contents of the 'id' field when the page is submitted. As such, it is to be expected that what you put in the database (and therefore what appears when you read from the database) will be the id. You can change this behavior by adding a lookup to the states table to get the abbreviation. You can do this: before database insertion; when looking up data from the database; or by making the abbreviations the 'id' fields in the array. In regards to #3, I see many uses of tep_cfg_select_option in the oscommerce.sql, but none of tep_cfg_radio_field. I would try using tep_cfg_select_option instead (remainder of syntax would stay the same). My first guess on #4 is that it is the same problem as #2. What is tep_get_sitereps_ranks() returning? Hth, Matt
  11. Searching the forums for tep_array_merge suggests that you are mixing an older contribution with newer core code...try deleting tep_ to make it array_merge instead. Hth, Matt
  12. The model number length is set in the database. You can adjust it from 1 to 255 characters as needed by altering the products table. Hth, Matt
  13. Look here for more discussion. I found that link by searching for "quantity product listing" Hth, Matt
  14. MS1 didn't have the upload class yet. Two possible fixes (neither of which I've tried, use at your own risk): 1. Copy the upload class from MS2 and include it manually in admin/auction_listings_admin.php 2. Replace the calls to the upload class with the equivalent code that MS1 used for image upload. I know of at least one person who is using the upload class with MS1 for the File Upload contribution, so I think that 1 would work. 2 would probably be a pain to implement. Hth, Matt
  15. Change the tempdir to /temp. The base changed to include catalog/. If you print your file path, it most likely has two catalog/s in it, i.e. /home/you/catalog/catalog/temp when it should be /home/you/catalog/temp (replace /home/you as appropriate). ASP? Your problem is that troubleshooting PHP is so much easier that you don't realise how simple it would be. Don't worry, you'll soon get the hang of it. I like to sprinkle some output around, so that I know to what variables are being set. Like I said in this case, it would probably show that the file path has too many catalogs. Hth, Matt