Jump to content
Latest News: (loading..)

FWR Media

♥Ambassador
  • Content count

    6,718
  • Joined

  • Last visited

  • Days Won

    46

Everything posted by FWR Media

  1. FWR Media

    KissIT Image Thumnailer

    There is no reason for any conflict .. unless Mailbeez have been daft enough to use the class name of one of the SPL classes.
  2. FWR Media

    ULTIMATE SEO URLS 5 - who's interested?

    @@hardikbaweja There are different versions of rewriters for IIS which work in different ways so I have never taken the time to attempt writing for them all .. e.g. URLRewriter IIS rewrite ISAPI_Rewrite Ionic's Isapi Rewrite Filteretc etc. Helicon Ape looks to be the best as far as i'm concerned as the syntax is designed to match apache mod_rewrite almost exactly.
  3. FWR Media

    ULTIMATE Seo Urls 5 - by FWR Media

    @@fgwapo you would need to modify aPage_Modules::linkTextParts()
  4. FWR Media

    ULTIMATE Seo Urls 5 - by FWR Media

    @@fgwapo The character conversion files must be named exactly the same as the osCommerce language. E.g. if you had includes/languages/spanish/ And the character_conversion file was named espanol.php then it won't work. Also ensure that the character conversion file is saved as the correct charset.
  5. FWR Media

    Ultimate Seo Urls 5 Pro

    This was the old development thread .. see my sig for the support topic. USU5 is nothing to do with keywords or descriptions.
  6. @@mafiouso includes/functions/database looks as if it has been incorrectly edited or otherwise broken. I would refactor the complete function from a fresh up to date copy of osCommerce then reapply the KissER code.
  7. FWR Media

    ULTIMATE Seo Urls 5 - by FWR Media

    @@cfemoca Is your server very restricted? you need to be able to override settings via .htaccess. Try adding the following to .htaccess: - AcceptPathInfo On Aslo PM me a personal link to the site in question so I can test.
  8. Ok but please don't think " my site is fine" because you have suppressed the errors .. your site is broken .. it has 98 errors which need to be fixed.
  9. @@epwork Well it would if yours was standard osCommerce but it's not. It's the includes/modules/config/cart.php that seems to be reporting. I would guess that either this file is run before the KissER code or it is resetting the error handling
  10. FWR Media

    ULTIMATE Seo Urls 5 - by FWR Media

    USU5 cannot produce a uri like that.
  11. FWR Media

    ULTIMATE Seo Urls 5 - by FWR Media

    @@bazmlb Please read the instructions fully Add the code from htaccess.txt to .htaccess making sure that RewriteBase is set correctly.
  12. FWR Media

    Ultimate Seo Urls 5 Pro

    @@sammedit Up to you really, I would always save the session before a header redirect. The change isn't needed for USU5 to work.
  13. FWR Media

    Increase Price by 5.5% at the end

    So the order_total module file should be .. <?php class ot_2co { var $title, $output, $charge_percent_2co, $payment_code_2co; function ot_2co() { $this->code = 'ot_2co'; $this->title = MODULE_ORDER_TOTAL_2CO_TITLE; $this->description = MODULE_ORDER_TOTAL_2CO_DESCRIPTION; $this->enabled = ( (MODULE_ORDER_TOTAL_2CO_STATUS == 'true') ? true : false); $this->sort_order = MODULE_ORDER_TOTAL_2CO_SORT_ORDER; // 2co charge percentage $this->charge_percent_2co = 5.5; // The EXACT name of the payment module code e.g. $this->code = '2co'; in the payment class file $this->payment_code_2co = 'pm2checkout'; $this->output = array(); } function process() { global $order, $currencies, $payment; if ( ( $payment != $this->payment_code_2co ) ) return; $percentage = $order->info['total'] / 100 * $this->charge_percent_2co; $order->info['total'] = ( $order->info['total'] + $percentage ); $this->output[] = array('title' => $this->title . ':', 'text' => $currencies->format($percentage, true, $order->info['currency'], $order->info['currency_value']), 'value' => $percentage); } function check() { if (!isset($this->_check)) { $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_ORDER_TOTAL_2CO_STATUS'"); $this->_check = tep_db_num_rows($check_query); } return $this->_check; } function keys() { return array('MODULE_ORDER_TOTAL_2CO_STATUS', 'MODULE_ORDER_TOTAL_2CO_SORT_ORDER'); } function install() { tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Display 2CO charge', 'MODULE_ORDER_TOTAL_2CO_STATUS', 'true', 'Do you want to display the 2co charge?', '6', '1','tep_cfg_select_option(array(\'true\', \'false\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_ORDER_TOTAL_2CO_SORT_ORDER', '1', 'Sort order of display.', '6', '2', now())"); } function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } } ?>
  14. FWR Media

    Increase Price by 5.5% at the end

    Ahhh I believe I found it.. $this->payment_code_2co = 'pm2checkout';
  15. FWR Media

    Increase Price by 5.5% at the end

    Here you go: - Save this as file catalog/includes/modules/order_total/ot_2co.php <?php class ot_2co { var $title, $output; function ot_2co() { $this->code = 'ot_2co'; $this->title = MODULE_ORDER_TOTAL_2CO_TITLE; $this->description = MODULE_ORDER_TOTAL_2CO_DESCRIPTION; $this->enabled = ( (MODULE_ORDER_TOTAL_2CO_STATUS == 'true') ? true : false); $this->sort_order = MODULE_ORDER_TOTAL_2CO_SORT_ORDER; // 2co charge percentage $this->charge_percent_2co = 5.5; // The EXACT name of the payment module code e.g. $this->code = '2co'; in the payment class file $this->payment_code_2co = '2co'; $this->output = array(); } function process() { global $order, $currencies, $payment; if ( ( $payment != $this->payment_code_2co ) ) return; $percentage = $order->info['total'] / 100 * $this->charge_percent_2co; $order->info['total'] = ( $order->info['total'] + $percentage ); $this->output[] = array('title' => $this->title . ':', 'text' => $currencies->format($percentage, true, $order->info['currency'], $order->info['currency_value']), 'value' => $percentage); } function check() { if (!isset($this->_check)) { $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_ORDER_TOTAL_2CO_STATUS'"); $this->_check = tep_db_num_rows($check_query); } return $this->_check; } function keys() { return array('MODULE_ORDER_TOTAL_2CO_STATUS', 'MODULE_ORDER_TOTAL_2CO_SORT_ORDER'); } function install() { tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Display 2CO charge', 'MODULE_ORDER_TOTAL_2CO_STATUS', 'true', 'Do you want to display the 2co charge?', '6', '1','tep_cfg_select_option(array(\'true\', \'false\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_ORDER_TOTAL_2CO_SORT_ORDER', '1', 'Sort order of display.', '6', '2', now())"); } function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } } ?> Then the following as catalog/includes/languages/english/modules/order_total/ot_2co.php <?php define('MODULE_ORDER_TOTAL_2CO_TITLE', '2CO Charge'); define('MODULE_ORDER_TOTAL_2CO_DESCRIPTION', 'Additional charge by 2CO'); ?> Now . .with the first file see ( line 14 ): $this->payment_code_2co = '2co'; I haven't the foggiest idea what the real code is for this payment module so guessed one up. Check the payment class file for the correct code and change the file before attempting to use. Go to admin>Modules>Order Total install the module and set the sort order before tax if you want the percentage added before tax and after for the opposite. This is thoroughly untested as I had never heard of 2co but it looks ok :)
  16. FWR Media

    Increase Price by 5.5% at the end

    Just write a new order totals module then enable it in the correct order in admin.
  17. FWR Media

    ULTIMATE Seo Urls 5 - by FWR Media

    Change the method in admin to rewrite and make sure you have added the correct code to .htaccess as per the instructions. That is poor code which will redirect any path based uri
  18. FWR Media

    ULTIMATE Seo Urls 5 - by FWR Media

    @@bazmlb Very odd . .check for the existence of the file: - catalog/includes/modules/ultimate_seo_urls5/database_install/installer_constants.php
  19. FWR Media

    ULTIMATE Seo Urls 5 - by FWR Media

    @@bazmlb Have a look at your error log .. there's something wrong with paths. What version of PHP are you running?
  20. Security Pro has nothing to do with products_description .. it protects the querystring.
  21. Just loaded PHP 5.4.5 in the hope that ob_gzhandler and zlib.output_compression are playing nicely again .. sadly they are not. Basically even when zlib.output_compression is off PHP triggers a warning when the ob_gzhandler ob_start() callback function is used. https://bugs.php.net/bug.php?id=55544&edit=1 So I've done a bit of tinkering with 2.3.2 code in case it helps the 2.4 cause, it's a lot of code for a simple operation but that's what nasty bugs give us! // if gzip_compression is enabled, start to buffer the output if ( (GZIP_COMPRESSION == 'true') && !headers_sent() // Need this in the footer && ($ext_zlib_loaded = extension_loaded('zlib')) && (PHP_VERSION >= '4') ) { $zlib = ini_get ( 'zlib.output_compression' ); // an empty string where it doesn't exist or is null $ini_set_available = function_exists('ini_set'); // some hosts disable this /** * @see https://bugs.php.net/bug.php?id=55544&edit=1 * PHP 5.4.0 - 5.4.5 - ob_gzhandler always conflicts with zlib.output_compression */ $last_known_bugged_version = '5.4.5'; $php_bugged_version = ( (version_compare(PHP_VERSION, '5.4.0') >= 0) && (version_compare(PHP_VERSION, $last_known_bugged_version) <= 0 ) ) ? true : false; // If zlib is null - an empty string - 0 - or off/OFF we take it as being turned off if ( ( ($zlib == null) || ($zlib == '') ) || $zlib == 0 || strtolower( (string)$zlib ) == 'off' ) { /** * No point trying to ini_set if the host has it turned off! * zlib.output_compression was available from 4.0.5 */ if ( $ini_set_available && (version_compare(PHP_VERSION, '4.0.5') >= 0 ) ) { ini_set('zlib.output_compression', 1); ini_set('zlib.output_compression_level', GZIP_LEVEL); // If the PHP version is larger than 4.0.4 and it is not a bugged version then we should be ok using the ob_gzhandler callback } elseif ( (version_compare(PHP_VERSION, '4.0.4') >= 0 ) && !$php_bugged_version ) { ob_start('ob_gzhandler'); } else { // last ditch defence include(DIR_WS_FUNCTIONS . 'gzip_compression.php'); ob_start(); ob_implicit_flush(); } } else ini_set('zlib.output_compression_level', GZIP_LEVEL); // It's on so well set the level // For use in the footer $ini_zlib_output_compression = (int)ini_get('zlib.output_compression'); } // end gzip compression Apologies in advance for when the forum destroys the code spacing. The $last_known_bugged_version = '5.4.5' would have to be changed if we are really unfortunate and the problem persists in 5.4.6 added a file as the spacing did indeed break.
  22. @@Harald Ponce de Leon Excellent, one less compatibility issue to worry about!
  23. FWR Media

    ULTIMATE Seo Urls 5 - by FWR Media

    http://www.bearcreekleather.com = RewriteBase / Should be just: - RewriteBase /
  24. FWR Media

    ULTIMATE Seo Urls 5 - by FWR Media

    @@bcleather Please read the instructions: - documentation/install_files/install_complete.htm If your server won't accept path based uris nore allow it to be set in .htaccess then you need to speak to your host .. or simply don't use path based uris .. use rewrite.
  25. FWR Media

    ULTIMATE Seo Urls 5 - by FWR Media

    Your server is set up not to accept path info as a part of the uri. In .htaccess put: - AcceptPathInfo On
×