Jump to content

acidvertigo

Members
  • Content count

    275
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by acidvertigo

  1. O PHP, PHP! wherefore art thou PHP?

    1. GLWalker

      GLWalker

      Tis hither, hidden within the methods of the compiler. Why for out can not thee find me accessible to public while hidden with my private arrays?

    2. acidvertigo
  2. acidvertigo

    Wishlist for 2.3 - Problem with emails

    A new version of this contrib has been updated today. Do you have the latest version?onvanilla 2.3.4 se ems that works
  3. acidvertigo

    Wishlist for 2.3 - Problem with emails

    If tep_mail is defined in general.php and application_top.php is included in wishlist.php the function should work. Very strange. what version of osc you have?
  4. acidvertigo

    Wishlist for 2.3 - Problem with emails

    Tep_mail function is defined in general.php function file.
  5. Wow Thank you! I'm glad to help this beautiful community!

  6. Alter table or not alter table, that's the Question

    1. acidvertigo
    2. ArtcoInc

      ArtcoInc

      Change your needs to fit the table(s), or change the table(s) to fit your needs.

    3. acidvertigo
    4. Show next comments  3 more
  7. So much to do, and so little time

  8. On holidays... Finally!

  9. Php 5.3 at end of life...

  10. Made some github cleaning on my repository. Too old code to clean, but now is clean!

    1. acidvertigo

      acidvertigo

      No problem. Take your time for review. :)

    2. altoid

      altoid

      That was quite a task. Thank you

  11. acidvertigo

    ULTIMATE Seo Urls 5 - by FWR Media

    I realized that i cannot use the multilanguage function 'cause my host don't allow followsymlinks on .htaccess. So i turned the multilanguage support off. However on my shop i have two languages: Italian (default) language and english (secondary). I'm using Usu5 URI rewrite method and does it works well. The only thing that make me mad and cannot understand why, is that if i spider with google every page in the secondary language, it gets a 301 redirect to my primary language. If a go on the same page in secondary language with a browser i get 200 OK status instead. I have the "prevent spider session" , "recreate session" and "force cookie usage" on ON. My question is what changes between a googlebot request and a browser request on USU5? Why spiders gets 301 redirect and browser get 200 ok status? Anyone can reproduce it? p.s. I'm sorry that is a duplicate post. but after 150 pages of posts on this forum seems that i'm the only that have this issue.
  12. acidvertigo

    ULTIMATE Seo Urls 5 - by FWR Media

    Hello, I can finally use the multilanguage support for index.php and product_info pages. So /catalog/en/index.php for language works. However for contact_us.php, privacy.php and conditions.php apache says "no input file specified" when the language directory is appendded to page like /catalog/contact_us.php/en or /catalog/conditions.php/en Anoyne can help me on this?
  13. Schema.org now integrates goodrelations microdata!

  14. acidvertigo

    Remove Unused Images [Support Thread]

    Have you installed the language files?
  15. acidvertigo

    Remove Unused Images [Support Thread]

    Hi, just posted a new version for OSC 2.3.X - Improved script performance - Script check default and multiple images in the product database - added template_top and template_bottom to better integrate the page you can find it at: http://addons.oscommerce.com/info/8157
  16. acidvertigo

    ULTIMATE Seo Urls 5 - by FWR Media

    Hello, i upgraded the sqlite cache system to sqlite3. From my tests it works also on php 5.4. Here the changes: On ultimate_seo_urls/cache_system/sqlite.php find: protected static function createDatabase() { if ( !is_readable( self::$sqlite_db_file ) ) { self::$db = new SQLiteDatabase( self::$sqlite_db_file, 0666, $error ) or trigger_error( 'Failed: ' . $error, E_USER_WARNING ); self::createTables(); } else { self::$db = new SQLiteDatabase( self::$sqlite_db_file, 0666, $error ) or trigger_error( 'Failed: ' . $error, E_USER_WARNING ); } } change to: protected static function createDatabase() { if ( !is_readable( self::$sqlite_db_file ) ) { self::$db = new SQLite3( self::$sqlite_db_file, 0666, $error ) or trigger_error( 'Failed: ' . $error, E_USER_WARNING ); self::createTables(); } else { self::$db = new SQLite3( self::$sqlite_db_file, 0666, $error ) or trigger_error( 'Failed: ' . $error, E_USER_WARNING ); } } and around line 128 find: $replacements = array( sqlite_escape_string( self::$cache_name ), sqlite_escape_string( $rawdata ), date( "Y-m-d H:i:s" ) ); $query = str_replace( $targets, $replacements, $this->insert_query ); self::$db->query( $query ); } change to: $replacements = array( self::$db->escapeString( self::$cache_name ), self::$db->escapeString( $rawdata ), date( "Y-m-d H:i:s" ) ); $query = str_replace( $targets, $replacements, $this->insert_query ); self::$db->exec( $query ); } around line 168 find: self::$db->query( 'DELETE FROM usu_cache' ); self::$db->query( 'VACUUM usu_cache' ); change to: self::$db->exec( 'DELETE FROM usu_cache' ); self::$db->exec( 'VACUUM usu_cache' ); at the end find: self::$db->query( $create_query ); } } // end class change to: self::$db->exec( $create_query ); } } // end class and on ultimate_seo_urls/main/usu5.php find on line 308: $row = $result->fetch(); Change to: $row = $result->fetchArray(); Hope it can help
  17. acidvertigo

    OSC 2.4 release

    I'm contributing to oscommerce2 github repository mantaining updated jquery, jquery ui, 960.gs framework, removing deprecated code, applyng some micropimprovements in performance, unfortunately it needs to be tested on all the payment framework, in the hope that this changes will be implemented in the next release. You can chek it here: https://github.com/osCommerce/oscommerce2/pull/10
  18. acidvertigo

    Fancybox 2.0 released

    Thank you for clarify this.
  19. acidvertigo

    Fancybox 2.0 released

    Fancybox 2.0 is released fancyapps.com/fancybox/ I'm confused about the licensing... can we still use it for free on our oscommerce websites?
  20. acidvertigo

    ULTIMATE Seo Urls 5 - by FWR Media

    I have the same issue, google apparently adds or also remove the category number. For example category with 28_378_451 becomes 378_451 in my case generating a lot of duplicate content (server header returns 200 status).
  21. acidvertigo

    Ultimate Seo Urls 5 Pro

    To explain better: www.example.com/catalog/nome-prodotto-p-20.html (default language) returns: TTP/1.1 200 OK => Date => Mon, 08 Aug 2011 09:02:06 GMT Server => Apache/2.2 X-Powered-By => PHP/5.3.6 Expires => Thu, 19 Nov 1981 08:52:00 GMT Cache-Control => no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma => no-cache Vary => Accept-Encoding Connection => close Content-Type => text/html; charset=iso-8859-1 www.example.com/catalog/product-name-p-20.html (english) returns: HTTP/1.1 301 Moved Permanently => Date => Mon, 08 Aug 2011 08:59:13 GMT Server => Apache/2.2 X-Powered-By => PHP/5.3.6 Expires => Thu, 19 Nov 1981 08:52:00 GMT Cache-Control => no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma => no-cache Set-Cookie => osCsid=qjn1mpd1jpn41ugsr9e6b5tkg6; path=/catalog/; domain=www.nagrit.com Location => www.example.com/catalog/nome-prodotto-p-20.html?osCsid=qjn1mpd1jpn41ugsr9e6b5 Vary => Accept-Encoding Connection => close Content-Type => text/html The browser is not redirected it shows the right page www.example.com/catalog/product-name-p-20.html, in firebug it shows status code 200, but googlebot and the other boot will be redirected to the page in the default language. It's possible to change this behaviour?
  22. Just to share a little trick to send the canonical link also from the server headers in catalog/includes/modules/kiss_meta_tags/classes/kiss_meta_tags_class.php find: private function canonical() { if ( ( KISSMT_CANONICAL_ON == 'true' ) && ( false !== $this->canonical ) ) { if ( $this->canonical == 'noindex' ) { echo '<meta name="robots" content="noindex, follow"' . $this->html_end . PHP_EOL;; } else { echo '<link rel="canonical" href="' . $this->canonical . '"' . $this->html_end . PHP_EOL;; } } change to: private function canonical() { if ( ( KISSMT_CANONICAL_ON == 'true' ) && ( false !== $this->canonical ) ) { if ( $this->canonical == 'noindex' ) { echo '<meta name="robots" content="noindex, follow"' . $this->html_end . PHP_EOL;; } else { header("Link: <$this->canonical>; rel=\"canonical\""); echo '<link rel="canonical" href="' . $this->canonical . '"' . $this->html_end . PHP_EOL;; } } The server will send the canonical linnk in the HTTP header: Link: <http://www.example.com/downloads/white-paper.pdf>; rel="canonical"
  23. You can do in CSS have you tried setting background color to #fff ?

×