Jump to content

Psytanium

Members
  • Content count

    465
  • Joined

  • Last visited

  • Days Won

    4

Reputation Activity

  1. Thanks
    Psytanium reacted to Jack_mcs in Google XML Sitemap SEO   
    Please try this. In the googlesitemap/index.php file, change this line
    if (defined('SEO_URLS') && SEO_URLS == 'true' || defined('SEO_ENABLED') && SEO_ENABLED == 'true' ) { to
    if (false) {  
  2. Like
    Psytanium reacted to Dan Cole in Newsletters & Subscribers OSC 2.3   
    I think I'm using a real hacked up version of this on a responsive version of osC.  I use a double opted in subscription routine so I don't have this issue but you can probably add some thing like Jack's new HoneyPot Captcha add-on to prevent bots from subscribing.   I think you'll find his code to be fairly easy to add to most forms.  If you are interested in taking a look you'll find it here.
    Dan   
  3. Thanks
    Psytanium reacted to burt in ULTIMATE Seo Urls 5 - by FWR Media   
    It is telling you that sometimes, for unknown reason...
    $text_array is not an array.  A foreach therefore...cannot work.
    Try this;
    foreach ( (array)$text_array as $key => $text ) { Which forces $text_array as an array.
  4. Like
    Psytanium reacted to John W in ULTIMATE Seo Urls 5 - by FWR Media   
    @Psytanium  If this is your live site, you really shouldn't output errors to the screen.  Send them to a file that you can check.
  5. Like
    Psytanium reacted to multimixer in Make a copy of a shipping module to use separate   
    Did you add a "_" into the module name, like zone_1.php and class zone_1 ?
     
    Change it to a name like zone1.
     
    Just a possible issue
  6. Like
    Psytanium reacted to kymation in [Contribution] Products Specifications   
    That will work in most cases. It may fail if you have a GET parameter that is being changed, so that you end up with both the old and new values. I would spend some time testing this before using it in a live store.
    Regards
    Jim
     
  7. Like
    Psytanium reacted to Cary in Google XML Sitemap SEO   
    Anyone get Google XML Sitemap to work with SEO URLs 5? XML links are not SEO URL formatted.
  8. Like
    Psytanium reacted to Jack_mcs in Google XML Sitemap SEO   
    No, that isn't necessary. Once the search engines are aware of the maps they will look at them automatically. Just be sure you have added them to your google and Bing webmaster accounts. But if you want to click on the links, it won't hurt anything.
  9. Like
    Psytanium reacted to raiwa in Optional Related Products, Version 4.0   
    Hello @@Psytanium,
     
    SOrry this is not yet possible from the admin page.
    However you could filter (search) by product ids/ranges in the database table and then delete multiple items.
     
    rgds
    Rainer
  10. Like
    Psytanium reacted to ecommunlimited in Google XML Sitemap SEO   
    @@Psytanium
     
    The sitemapindex.xml list all of the other sitemaps so that is what is recommended to be turned into google and the other search engines.
     
    Also, you should point to it in your robots.txt file as well.
     
    For http protocol:
    sitemap: http://your-domain-name.com/sitemapindex.xml
     
    For https protocol:
    sitemap: https://your-domain-name.com/sitemapindex.xml
     
    Take care
    Bill
  11. Like
    Psytanium reacted to Jack_mcs in Google XML Sitemap SEO   
    @@Psytanium William is correct about the sitemapindex.xml being the only one you need to add. However, if there are errors, they are not easily found just with it. For that reason, I suggest adding all of the ones you want to use. If errors occur, they will show in those files. Also, google will show how many of the links are listed. This isn't anything you use but it is nice to see that they are working on the site.
  12. Like
    Psytanium reacted to Jack_mcs in Google XML Sitemap SEO   
    Something in your account is preventing the index.php from loading. Rename it to something else and then use the url with that new name.
  13. Like
    Psytanium reacted to Dan Cole in Wish List for osC 2.3.4 BS GOLD   
    @@Psytanium
     
    It has been quite awhile since I installed this but it sounds like the code that needs to be added to application_top.php is missing or perhaps in the wrong spot...could that be it?
     
    Dan
  14. Like
    Psytanium got a reaction from Tsimi in Wish List for osC 2.3.4 BS GOLD   
    Hello,

    I have the addon Wish List revision 4 for osCommerce 2.3 installed on my osc2.3.4
    But when I click the Add to wishlist button in my product_info page, it redirect me the wishlist page without adding the product to the list.

    Any idea what could it be ?

    Thank you
  15. Like
    Psytanium reacted to raiwa in ULTIMATE Seo Urls 5 - by FWR Media   
    Hello @@Psytanium,
     
    Just replace your complete tep_redirect function, but keep this part of your original function:
        if ( (ENABLE_SSL == true) && (getenv('HTTPS') == 'on') ) { // We are loading an SSL page       if (substr($url, 0, strlen(HTTP_SERVER . DIR_WS_HTTP_CATALOG)) == HTTP_SERVER . DIR_WS_HTTP_CATALOG) { // NONSSL url         $url = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG . substr($url, strlen(HTTP_SERVER . DIR_WS_HTTP_CATALOG)); // Change it to SSL       }     } This has been updated I believe in 2.3.4 and is not updated in the SEO URL5 instructions.
     
     
     
    Its the same, has been updated in osc2.3.4, just use this for reference.
     
     
    Find:
    $prod_list_contents .= ' <div class="col-xs-6 text-right">' . tep_draw_button(IMAGE_BUTTON_BUY_NOW, 'cart', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action', 'sort', 'cPath')) . 'action=buy_now&products_id=' . $listing['products_id']), NULL, NULL, 'btn-success btn-sm') . '</div>'; Replace with:
    $prod_list_contents .= ' <div class="col-xs-6 text-right">' . tep_draw_button(IMAGE_BUTTON_BUY_NOW, 'cart', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action', 'sort', 'cPath', 'products_id')) . 'action=buy_now&products_id=' . $listing['products_id']), NULL, NULL, 'btn-success btn-sm') . '</div>'; regards
    Rainer
  16. Like
    Psytanium got a reaction from radhavallabh in [Contribution] Products Specifications   
    are you going to release new modified version soon ?
  17. Like
    Psytanium reacted to Jack_mcs in Auto Update Currencies   
    I haven't seen that problem yet but thanks for posting the url.
  18. Like
    Psytanium reacted to tgely in ULTIMATE Seo Urls 5 - by FWR Media   
    Temporary fix for mysql cache when updates to v2.3.3.2 with tep_db_connect();
     
    cache_system\mysql.php
     
    find:

    public function store( array $registry_vars = array() ) { if ( false !== self::$cache_on ) { if ( false !== $this->insert ) { $data = serialize( $registry_vars ); // Serialize the registry of data $rawdata = base64_encode( gzdeflate( $data ) ); // encode and deflate $targets = array( ':cache_name', ':cache_data', ':cache_date' ); $replacements = array( tep_db_input( self::$cache_name ), tep_db_input( $rawdata ), date( "Y-m-d H:i:s" ) ); $query = str_replace( $targets, $replacements, $this->insert_query ); Usu_Main::i()->query( $query ); } } }
     
    change:

    public function store( array $registry_vars = array() ) { tep_db_connect(); if ( false !== self::$cache_on ) { if ( false !== $this->insert ) { $data = serialize( $registry_vars ); // Serialize the registry of data $rawdata = base64_encode( gzdeflate( $data ) ); // encode and deflate $targets = array( ':cache_name', ':cache_data', ':cache_date' ); $replacements = array( tep_db_input( self::$cache_name ), tep_db_input( $rawdata ), date( "Y-m-d H:i:s" ) ); $query = str_replace( $targets, $replacements, $this->insert_query ); Usu_Main::i()->query( $query ); } } }
  19. Like
    Psytanium reacted to Jack_mcs in Auto Update Currencies   
    Thanks for posting that. I'm sure it will help others.
  20. Like
    Psytanium reacted to Bob Terveuren in Auto Update Currencies   
    Hi there Jack
     
    @@Psytanium
     
    Here's the code I use on a 2.3.4 site - has the mysqli stuff in there
    <?php /* Auto Update Currencies v 1.0 by Jack_mcs - oscommerce-solution.com osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ ///////CONFIGURABLE VARIABLES/////////// define('DEFAULT_CURRENCY', 'GBP'); define('HOURS_BETWEEN_UPDATES' , '24'); //if more than one day, multiply days by hours so the setting for two days would be 2 * 24 = 48 define('REPORT_NO_UPDATE', true); //if the currencies are not updated since they have already been updated, don't report it. Set to false to always receive this message define('NO_REPORT', 0); define('SCREEN', 1); define('EMAIL', 2); define('SCREEN_EMAIL', 3); $output_report = EMAIL; ///////////////END////////////////////// define('CURRENCY_SERVER_PRIMARY', 'xe'); define('CURRENCY_SERVER_BACKUP', 'oanda'); require_once('includes/configure.php'); require_once(DIR_WS_FUNCTIONS . 'localization.php'); $link = mysqli_connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD,DB_DATABASE) or die("Unable to connect to database server!"); //mysql_select_db(DB_DATABASE); $report = ''; $updated = array(); $rate = ''; $today = date("Y-m-d H:i:s"); // The exact time $currency_query = mysqli_query($link,"select currencies_id, code, title, last_updated from currencies" ) or die(mysql_error()); while ($currency = mysqli_fetch_array($currency_query, MYSQL_ASSOC)) { { $quote_function = 'quote_' . CURRENCY_SERVER_PRIMARY . '_currency'; $rate = $quote_function($currency['code']); if (empty($rate)) { $quote_function = 'quote_' . CURRENCY_SERVER_BACKUP . '_currency'; $rate = $quote_function($currency['code']); } if (!empty($rate)) { $updated[] = 'The exchange rate for ' . $currency['title'] . ' <b>WAS</b> successfully updated.' . "\n"; //if ($rate !=1){$rate=$rate*1.02;} mysqli_query($link,"update currencies set value = '" . $rate . "', last_updated = now() where currencies_id = '" . (int)$currency['currencies_id'] . "'"); } else $updated[] = 'The exchange rate for ' . $currency['title'] . ' <b>WAS NOT</b> successfully updated. It was last updated on ' . $currency['last_updated'] . "\n"; } } if ($output_report > NO_REPORT) { $report = 'Currencies Update Report' . "\n\n"; $configuration_query = mysqli_query($link,"select configuration_value as store_name from configuration where configuration_key = 'STORE_NAME' limit 1") or die(mysqli_error()); $configuration = mysqli_fetch_array($configuration_query, MYSQL_ASSOC); $report .= 'Currencies for ' . $configuration['store_name'] . ' updated on ' . date("D M j G:i:s Y") . "\n\n"; foreach ($updated as $changed) $report .= $changed; { echo str_replace("\n", '<br>', $report); } } mysqli_close($link); ?> n.b I have an extra quick and dirty line in there (if ($rate !=1){$rate=$rate*1.02;}) that adds 2% markup on the exchange rate as my payment processor adds that in as their premium over and above the bank rates.
     
    edit: commented out that line but left it in there FYI
  21. Like
    Psytanium reacted to Jack_mcs in Auto Update Currencies   
    It will work with any of the versions that don't use mysqli, which start around 2.3.3, I think. You can try replacing all instance of mysql in that file with mysqli. I haven't looked close enough at it to say if that will work or not but those calls are the problem. The correct fix, and what should have been done initially, is to include application_top and use the tep functions. That's the change I will make once I get to it.
  22. Like
    Psytanium reacted to Jack_mcs in Auto Update Currencies   
    If you are using around 2.3.3 (maybe before), that won't work. The database calls are different for those versions. I'll update this as soon as I can.
  23. Like
    Psytanium got a reaction from opus_uno2001 in File Upload and Display_V2.01.69 for version V 2.3.x   
    I have done this by changing

    if (isset($HTTP_POST_VARS['products_pdfupload']) && tep_not_null($HTTP_POST_VARS['products_pdfupload']) && ($HTTP_POST_VARS['products_pdfupload'] != 'none')) { $sql_data_array['products_pdfupload'] = tep_db_prepare_input($HTTP_POST_VARS['products_pdfupload']); }
    to

    $sql_data_array['products_pdfupload'] = tep_db_prepare_input($HTTP_POST_VARS['products_pdfupload']);
     
    and change

    tep_draw_input_field('products_previous_pdfupload'
    to

    tep_draw_input_field('products_pdfupload'
     
    now to remove an uploaded file, just empty the upload text field.
  24. Like
    Psytanium reacted to kymation in [Contribution] Products Specifications   
    The error message is another missed function. Try this code:
     

    if ( (!isset($_GET['sort'])) || (!preg_match('/^[1-8][ad]$/i', $_GET['sort'])) || (substr($_GET['sort'], 0, 1) > sizeof($column_list)) ) {
     
    I don't understand the second question. All Filters have titles that can be displayed. See the User's Manual section on setting up Filters. If that's not what you want, a link to the page or a screenshot might be useful.
     
    Regards
    Jim
  25. Like
    Psytanium got a reaction from deejay23 in [Contribution] Featured Products for v2.3.x   
    Hi, everything is working great, but its completely out of my website styling.
    is there a way to relate the featured products to my product listing style sheet ?
    anyway, thank you for sharing this contribution.
×