Jump to content

badbo

Members
  • Content count

    196
  • Joined

  • Last visited

Everything posted by badbo

  1. badbo

    View Counter

    Thanks jack for the great piece of work. I have it installed and working on windows 2012 server php 5.3 Oscommerce 2.3.4 Of course there is no .htaccess so have to use url rewrites instead Windows users should check to see if database is using STRICT_TRANS_TABLES modes before installing view_counter. Run sql SET GLOBAL sql_mode = ''; before installing database changes Thanks again Jack
  2. badbo

    View Counter

    View Counter V 1.5 is what i installed Thanks going to try to install it again.
  3. badbo

    View Counter

    Thanks but there was none.
  4. badbo

    View Counter

    ran backup on files and database BOX_VIEW_COUNTER is still in admin as soon as I get rid of that i will try again, and when I get it really screwed up I will pay you to fix it. LOL Thanks Jack
  5. badbo

    View Counter

    Thanks jack, under view_counter_color.php in admin i get 404,s on all the links I will go back thru the install to see if i missed something, also when I ran the installer for database I had STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION and had a tech stop so i ran the uninstall but it said it did but i have two sets of View Counter in database. looked in configuration in database. only shows 1 of each Thanks
  6. badbo

    View Counter

    Never mind I forgot to disable STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION in database. Windows don't like it. Thanks
  7. badbo

    View Counter

    Have an install error trying to create tables in database 1101 - BLOB/TEXT column 'data' can't have a default value CREATE TABLE view_counter_flags (ip_number INT( 64 ) UNSIGNED NOT NULL, data blob DEFAULT '', index idx_ip_number (ip_number)) ENGINE=InnoDB Thanks
  8. badbo

    View Counter

    Will one of the sample one work Jack, Thanks
  9. badbo

    View Counter

    So jack you want 75 to install and a db9 is 499.00 lol Nice mod but that leaves me out.
  10. Most of the time it is because of your admin settings. Somewhere i saw in this forum that advanced htaccess was for https not http, but i could be wrong. I bet if you post your admin settings and your server info that Rainer will help you. Are you using windows or whatever.
  11. Rainer I cured my problem with: tep_image(DIR_WS_IMAGES . 'thumbs/def/small/' . $specials['products_image'], $specials['products_name'], '80', '80'); adding the image sizes where I needed them. Thanks
  12. Thanks maybe I have a setting wrong somewhere.
  13. Thanks Rainer for updating this contribution to 2.3.4. Thumbs are created everywhere. One small problem. The image width and image height is not showing on the index.php image when i inspect element. Alt txt is showing. trying to speed up site with 8k products so on speed test I receive- The following image(s) are missing width and/or height attributes for all the product images on index. Thanks for looking.Server is windows 2012 with rewrite set to true and rewrites added. And yes there is a template overlay which does not change core files. The only core file changed was replacing categories.php with categories-opi.php.
  14. Update for image.verify.php uploaded http://addons.oscommerce.com/info/8210 Fix for missing Edit and Delete Buttons only
  15. badbo

    ULTIMATE Seo Urls 5 - by FWR Media

    I just wrote over it and works fine on windows 2012 .
  16. badbo

    ULTIMATE Seo Urls 5 - by FWR Media

    Open \includes\modules\ultimate_seo_urls5\cache_system\cache and delete them all at one time
  17. Have been away a few years due to poor health, happens when you reach 65

    1. altoid

      altoid

      Tell me it ain't so!!

  18. badbo

    Product listing

    Thanks Rainer i will give it a try
  19. badbo

    Product listing

    You said: 2. You say you didn't apply the changes to product_info and it's where the kissit modifications are applied. They are not applied on the product listings. There your images point to: images/small/........not to: includes/modules/kiss_image_thumbnailer/thumbs/........ Open catalog/product_info.php in your flat file editorFind ( about line 88 ) ... $pi_entry .= '" target="_blank" rel="fancybox">' . tep_image(DIR_WS_IMAGES . $pi['image']) . '</a>'; Replace with ... $pi_entry .= '" target="_blank" rel="fancybox">' . tep_image( DIR_WS_IMAGES . $pi['image'], '', KISSIT_MAIN_PRODUCT_IMAGE_WIDTH, KISSIT_MAIN_PRODUCT_IMAGE_HEIGHT ) . '</a>'; Find ( about lines 104 - 106 ) $('#piGal ul').bxGallery({ maxwidth: 300, maxheight: 200, Replace with ... $('#piGal ul').bxGallery({ maxwidth: <?php echo KISSIT_MAIN_PRODUCT_IMAGE_WIDTH; ?>, maxheight: <?php echo KISSIT_MAIN_PRODUCT_IMAGE_HEIGHT; ?>, Find ( about line 118 )... <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank" rel="fancybox">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), null, null, 'hspace="5" vspace="5"') . '</a>'; ?> Replace with ... <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank" rel="fancybox">' . tep_image( DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), KISSIT_MAIN_PRODUCT_IMAGE_WIDTH, KISSIT_MAIN_PRODUCT_IMAGE_HEIGHT, 'hspace="5" vspace="5"' ) . '</a>'; ?> Those edits not available on a fresh download of 2.3.4 <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2014 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); if (!isset($HTTP_GET_VARS['products_id'])) { tep_redirect(tep_href_link(FILENAME_DEFAULT)); } require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCT_INFO); $product_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); $product_check = tep_db_fetch_array($product_check_query); require(DIR_WS_INCLUDES . 'template_top.php'); if ($product_check['total'] < 1) { ?> <div class="contentContainer"> <div class="contentText"> <?php echo TEXT_PRODUCT_NOT_FOUND; ?> </div> <div style="float: right;"> <?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', tep_href_link(FILENAME_DEFAULT)); ?> </div> </div> <?php } else { $product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); $product_info = tep_db_fetch_array($product_info_query); tep_db_query("update " . TABLE_PRODUCTS_DESCRIPTION . " set products_viewed = products_viewed+1 where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and language_id = '" . (int)$languages_id . "'"); if ($new_price = tep_get_products_special_price($product_info['products_id'])) { $products_price = '<del>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</del> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>'; } else { $products_price = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])); } if (tep_not_null($product_info['products_model'])) { $products_name = $product_info['products_name'] . '<br /><span class="smallText">[' . $product_info['products_model'] . ']</span>'; } else { $products_name = $product_info['products_name']; } ?> <?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')); ?> <div> <h1 style="float: right;"><?php echo $products_price; ?></h1> <h1><?php echo $products_name; ?></h1> </div> <div class="contentContainer"> <div class="contentText"> <?php if (tep_not_null($product_info['products_image'])) { $photoset_layout = '1'; $pi_query = tep_db_query("select image, htmlcontent from " . TABLE_PRODUCTS_IMAGES . " where products_id = '" . (int)$product_info['products_id'] . "' order by sort_order"); $pi_total = tep_db_num_rows($pi_query); if ($pi_total > 0) { $pi_sub = $pi_total-1; while ($pi_sub > 5) { $photoset_layout .= 5; $pi_sub = $pi_sub-5; } if ($pi_sub > 0) { $photoset_layout .= ($pi_total > 5) ? 5 : $pi_sub; } ?> <div id="piGal"> <?php $pi_counter = 0; $pi_html = array(); while ($pi = tep_db_fetch_array($pi_query)) { $pi_counter++; if (tep_not_null($pi['htmlcontent'])) { $pi_html[] = '<div id="piGalDiv_' . $pi_counter . '">' . $pi['htmlcontent'] . '</div>'; } echo tep_image(DIR_WS_IMAGES . $pi['image'], '', '', '', 'id="piGalImg_' . $pi_counter . '"'); } ?> </div> <?php if ( !empty($pi_html) ) { echo ' <div style="display: none;">' . implode('', $pi_html) . '</div>'; } } else { ?> <div id="piGal"> <?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name'])); ?> </div> <?php } } ?> <script type="text/javascript"> $(function() { $('#piGal').css({ 'visibility': 'hidden' }); $('#piGal').photosetGrid({ layout: '<?php echo $photoset_layout; ?>', width: '250px', highresLinks: true, rel: 'pigallery', onComplete: function() { $('#piGal').css({ 'visibility': 'visible'}); $('#piGal a').colorbox({ maxHeight: '90%', maxWidth: '90%', rel: 'pigallery' }); $('#piGal img').each(function() { var imgid = $(this).attr('id').substring(9); if ( $('#piGalDiv_' + imgid).length ) { $(this).parent().colorbox({ inline: true, href: "#piGalDiv_" + imgid }); } }); } }); }); </script> <?php echo stripslashes($product_info['products_description']); ?> <?php $products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "'"); $products_attributes = tep_db_fetch_array($products_attributes_query); if ($products_attributes['total'] > 0) { ?> <p><?php echo TEXT_PRODUCT_OPTIONS; ?></p> <p> <?php $products_options_name_query = tep_db_query("select distinct popt.products_options_id, popt.products_options_name from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "' order by popt.products_options_name"); while ($products_options_name = tep_db_fetch_array($products_options_name_query)) { $products_options_array = array(); $products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "'"); while ($products_options = tep_db_fetch_array($products_options_query)) { $products_options_array[] = array('id' => $products_options['products_options_values_id'], 'text' => $products_options['products_options_values_name']); if ($products_options['options_values_price'] != '0') { $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies->display_price($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') '; } } if (is_string($HTTP_GET_VARS['products_id']) && isset($cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']])) { $selected_attribute = $cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']]; } else { $selected_attribute = false; } ?> <strong><?php echo $products_options_name['products_options_name'] . ':'; ?></strong><br /><?php echo tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute); ?><br /> <?php } ?> </p> <?php } ?> <div style="clear: both;"></div> <?php if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) { ?> <p style="text-align: center;"><?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); ?></p> <?php } ?> </div> <?php $reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " r, " . TABLE_REVIEWS_DESCRIPTION . " rd where r.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and r.reviews_id = rd.reviews_id and rd.languages_id = '" . (int)$languages_id . "' and reviews_status = 1"); $reviews = tep_db_fetch_array($reviews_query); ?> <div class="buttonSet"> <span class="buttonAction"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_draw_button(IMAGE_BUTTON_IN_CART, 'cart', null, 'primary'); ?></span> <?php echo tep_draw_button(IMAGE_BUTTON_REVIEWS . (($reviews['count'] > 0) ? ' (' . $reviews['count'] . ')' : ''), 'comment', tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params())); ?> </div> <?php if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_also_purchased(3600); } else { include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS); } ?> </div> </form> <?php } require(DIR_WS_INCLUDES . 'template_bottom.php'); require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
  20. badbo

    Product listing

    $product[$row]['image_size'] = az_get_image_size(DIR_WS_ . $listing['products_image'], '80', ''); $product[$row]['image'] = tep_image(DIR_WS_ . $listing['products_image'], $listing['products_name'], '80', ''); seems it is calling get_ image instead of tep_image
  21. badbo

    Product listing

    Seems you missed the part where i said the image i posted just showed on one monitor and not the monitor next to it on a different machine. What I should have said is the edits for the product_info.php are not in 2.3.4 because bx gallery is not there and the edits won't work. I did not mean the mod does not work. I just wanted to know if there is a setting to get those images scaled on the index. Thanks
  22. badbo

    Product listing

    .com is 2.3.4 .net is 2.3.2
  23. badbo

    Product listing

    KissIT_image_thumbnailer_r9 on 2.3.2 and 2.3.4 not BS That snapshot I posted only happened on one monitor on every page. I tried on another server and different monitor in same room all was normal. I still don't think things are working correctly. When I use gtmetrix to check. Have a very poor score for scaled images. Will put both sites up for you to see if and when you have time. txomega.com and txomega.net both are running. I could not make the changes for product_info.php because those edits are not there to make. Thanks
  24. badbo

    Product listing

    Been awhile since I install this one. Tried it on a fresh install of 2.3.4 didn't work out. So I decided to try on a fresh install of 2.3.2 and got a surprise. txomega.net/whats up.png Add the http: if you would like to see it.
  25. badbo

    Ultimate Seo Urls 5 Pro

    PHP Catchable fatal error: Argument 1 passed to aPage_Modules::linkText() must be an array, null given, called in C:\Inetpub\wwwroot\xxxxxx\includes\modules\ultimate_seo_urls5\page_modules\product_info.php on line 170 and defined in C:\Inetpub\wwwroot\xxxx\includes\modules\ultimate_seo_urls5\abstracts\page_modules.php on line 338 PHP Warning: Invalid argument supplied for foreach() in C:\Inetpub\wwwroot\xxx\includes\modules\ultimate_seo_urls5\page_modules\product_reviews.php on line 94 PHP Warning: Invalid argument supplied for foreach() in C:\Inetpub\wwwroot\xxx\includes\modules\ultimate_seo_urls5\page_modules\index.php on line 111 PHP Warning: Invalid argument supplied for foreach() in C:\Inetpub\wwwroot\xxx\includes\modules\ultimate_seo_urls5\page_modules\product_info.php on line 102 PHP Warning: Invalid argument supplied for foreach() in C:\Inetpub\wwwroot\xxx\includes\modules\ultimate_seo_urls5\page_modules\product_reviews.php on line 94 I am sure this is something I messed up. Thanks for looking
×