Jump to content

FWR Media

♥Ambassador
  • Content count

    6,718
  • Joined

  • Last visited

  • Days Won

    46

Reputation Activity

  1. Like
    FWR Media got a reaction from scandic_outlet in KissMT Dynamic SEO Meta & Canonical Header Tags   
    When product_info.php is accessed products_id should always be present in the querystring ( or at least in _GET where _GET has been manipulated )
  2. Like
    FWR Media got a reaction from tgely in ULTIMATE Seo Urls 5 - by FWR Media   
    Glad you found it.
     
    But just to clarify for others .. this wasn't a bug of USU5 it was a bug in your site code.
  3. Like
    FWR Media got a reaction from sakwoya in [contribution] KISS FileSafe ( file security )   
    Thanks for the report.
     
    Glad it's working for you. I don't get errors for the 0.5 on the servers I tried it on but I can see that 0.5 may need to be a string "0.5" where as a digit is fine.
  4. Like
    FWR Media got a reaction from josemendes in ULTIMATE Seo Urls 5 - by FWR Media   
    Send me a PM with your email address and I will send you a new file. It seems that your database does not like the way the entries are escaped as ...
     

    INSERT INTO configuration (configuration_title,configuration_key,configuration_value,configuration_description,configuration_group_id,sort_order,last_modified,date_added,set_function) VALUES ('Enable SEO URLs 5?','USU5_ENABLED','true','Turn Seo Urls 5 on','16','1','2011-02-17 12:49:00','2011-02-17 12:49:00',"tep_cfg_select_option(array('true', 'false'), ")
     
    Is a perfectly valid query ( the single quotes need to be escaped it seems ).
  5. Like
    FWR Media got a reaction from ErikMM in KissMT Dynamic SEO Meta & Canonical Header Tags   
    This is extremely odd because I have error reporting set E_ALL | E_STRICT and I get no error .. BUT ..
     
    catalog/includes/kiss_meta_tags/abstracts/kiss_modules.php
     
    Line 134
     

    array_walk( $words_as_array, array( __CLASS__, 'stripStopWords' ) );
     
    Does require the method to be static. If line 134 was ..
     

    array_walk( $words_as_array, array( $this, 'stripStopWords' ) );
     
    It would not be required to be a static method. YET I get no error .. hmmmm.
     
    Anyway you can correct this one of two ways ..
     
    either change line 134 to ..
     

    array_walk( $words_as_array, array( $this, 'stripStopWords' ) );
     
    Or change ..
     

    private function stripStopWords( &$word ) {
     
    to ..
     

    private static function stripStopWords( &$word ) {
     
    Doesn't matter which you choose to change. In the next revision I'll probably change the method to static.
  6. Like
    FWR Media got a reaction from Juto in KissMT Dynamic SEO Meta Tags   
    In the first few lines of the instructions it tells you to ensure that certain directories are set to writeable .. and they are not.
  7. Like
    FWR Media got a reaction from Moxamint in [contribution] Security Pro - Querystring protection against hackers.   
    No the original code is a td.
     
     
    I always use $_GET as the long arrays are deprecated, but, the osCommerce team have decided to retain them in the core code so when changing core code I have to respect that.
  8. Like
    FWR Media got a reaction from Moxamint in [contribution] Security Pro - Querystring protection against hackers.   
    No the original code is a td.
     
     
    I always use $_GET as the long arrays are deprecated, but, the osCommerce team have decided to retain them in the core code so when changing core code I have to respect that.
  9. Like
    FWR Media got a reaction from zipicip in ULTIMATE Seo Urls 5 - by FWR Media   
    Dunno, I'm not familiar with the contribution. USU5 is producing the url fine so perhaps you should ask in the support thread of that contribution.
     
    Post the small piece of code that is producing the image here if you want, that would help.
  10. Like
    FWR Media got a reaction from zipicip in ULTIMATE Seo Urls 5 - by FWR Media   
    This has been covered earlier and it means that you have a corrupt database, probably items have been manually dropped.
     
    In this case you will have to change all instances of INNER JOIN to LEFT JOIN in the query.
     
     
    It is a feature added for users convenience.
     
    It doesn't work on some server set ups .. so .. if it doesn't work for you the answer is .. don't use the feature.
  11. Like
    FWR Media got a reaction from kiku90 in [contribution] Security Pro - Querystring protection against hackers.   
    Modification for Languages that have Special Characters
     
    This change is optional and only relevant for languages which have special language characters.
    What does it do?
     
    You can add your language special characters to a variable, these characters will then be ignored by the whitelist. This is essential for e.g. search functionality to work with such languages.
     
    Open up ..
     
    catalog/includes/modules/fwr_media_security_pro.php
     
    Find the COMPLETE function spro_cleanse_get_recursive()
     
    Change it to ..
     

    function spro_cleanse_get_recursive( $get ) { /** * IMPORTANT - DO NOT use the below to gimp the whitelist, this should be used for valid language special characters only * * @example $lang_additions = 'åÅäÄöÖ'; * @var string - Valid language special characters to be added to the whitelist */ $lang_additions = ''; // Special language characters go here - see the example above if ( !is_array( $get ) ) { $banned_string_pattern = '@GLOBALS|_REQUEST|base64_encode|UNION|%3C|%3E@i'; // Apply the whitelist $pattern = "/[^\s{}a-z0-9_\.\-" . $lang_additions . "]/i"; $cleansed = preg_replace( $pattern, "", urldecode( $get ) ); // Remove banned words $cleansed = preg_replace( $banned_string_pattern, '', $cleansed ); // Ensure that a clever hacker hasn't gained himself a naughty double hyphen -- after our cleansing return preg_replace( '@[-]+@', '-', $cleansed ); } // Add the preg_replace to every element. return array_map( 'spro_cleanse_get_recursive', $get ); }
     
     
    Obviously the ..
     

    $lang_additions = 'åÅäÄöÖ';
     
     
    Can contain any language special characters that you wish, this should NOT be used to gimp the whitelist.
     
    IMPORTANT:
    This file now MUST be saved as the correct charset, it can no longer be saved as a standard ASCII file.
  12. Like
    FWR Media got a reaction from kiku90 in [contribution] Security Pro - Querystring protection against hackers.   
    It simply means that after you have edited the file it is sending information to the browser.
     
    This usually means a space or BOM before the opening <?php tab.
     
    Are you using a flat file editor like notepad?
  13. Like
    FWR Media got a reaction from zipicip in ULTIMATE Seo Urls 5 - by FWR Media   
    This should be posted in the Security Pro support thread as it has nothing to do with USU5/PRO.
     
    But DON'T remove the forward slash / from cleansing stepping back through directories like /../../../../ is a nasty hack vector via querystring.
  14. Like
    FWR Media got a reaction from aliali in help please   
    You cannot have static urls for these. In some ways the request for static urls is getting ridiculous.
     
    The whole reason for the URL is to be a Uniform Resource Locator the page=2 loads a different resource, it loads the second page of categories in this case.
     
    Probably the reason for your worry is duplicate content, is this correct?
     
    If it is you need to install a contribution that creates canonical elements and noindex, follow tags in this case, there are a number that do this.
     
    E.g. KissMT dynamically creates meta and canonical elements for osCommerce with no effort from you and installs in seconds.
  15. Like
    FWR Media got a reaction from lyonsperf in [CONTRIBUTION] Ultimate SEO URLs v2.1 - by Chemo   
    Are you all still sure you know why you are using this old thing?
     
    This code is from 2005 and the author hasn't supported it/added a new version since then. There are now 90 odd "versions" most adding their own new bug.
     
    I used to support this but I wrote a totally new version Ultimate Seo Urls 5 for your benefit which is PHP 5 code and rewritten from the ground up.
     
    PHP 5.2+ ONLY ( PHP4 NOT supported )
     
    The now "old" version ( first release June 2009 ) has not had a new bug reported since December 2009. Works on Windows as well as *nix and supports the "worthwhile for SEO" contributions. Adding new contribution support modules is also exremely easy as they are modular themselves.
     
    Very important USU5 and the PRO version can replicate and/or 301 redirect the old seo urls so you do not have to lose any indexing/PR
     
    The new PRO version is a different world there are too many features to mention here see the comparison
    If you run a multi language shop then USU5 PRO is the only option as for the first time EVER your site can be individually indexed seperately for each language.
  16. Like
    FWR Media got a reaction from burt in Best seo addons?   
    USU5 is compatible with anything and everything just so long as it is correctly written.
     
    Header tags breaks when ANY path based uri is used .. it is buggy! Having said that, this bug in header tags can be avoided by choosing the rewrite method of USU5 which emulates chemos old seo urls.
     
    All products seo breaks because it uses file names with hyphen instead of underscore, if Jack_mcs read the osCommerce coding standards then he might write his contributions correctly. USU5 purposefully will not process this file as it is invalid input.
     
    This is simple to fix just correct the filename to what it should have been, all_products.php and not all-products.php ( if I'm remembering the correct file ).
  17. Like
    FWR Media got a reaction from mariemeh in ULTIMATE Seo Urls 5 - by FWR Media   
    It really makes no difference whatsoever in my opinion.
     
    Having said that a new URI module is in early beta testing ..
     
    Seo urls without the -c-52 / -p-37 etc.
     
    They look like ..
     
    /hardware.htm
    /software.htm
    /dvd-movies.htm
    /gadgets.htm
    /simulation-sierra-swat-close-quarters-battle.htm
    /simulation-sierra-swat-close-quarters-battle.htm
    /action-warner-the-matrix.htm
    /action-warner-the-matrix.htm
    /theres-something-about-mary.htm?reviews_id=1
    /theres-something-about-mary.htm?reviews_id=1
    /gadgets-samsung-samsung-galaxy-tab.htm
    /gadgets-samsung-samsung-galaxy-tab.htm
    /printers-hewlett-packard-hewlett-packard-laserjet-1100xi.htm
    /printers-hewlett-packard-hewlett-packard-laserjet-1100xi.htm
    /mice-microsoft-microsoft-intellimouse-explorer.htm
    /mice-microsoft-microsoft-intellimouse-explorer.htm
    /keyboards-microsoft-microsoft-internet-keyboard-ps2.htm
    /keyboards-microsoft-microsoft-internet-keyboard-ps2.htm
    /strategy-interactive-disciples-sacred-lands.htm
    /strategy-interactive-disciples-sacred-lands.htm
    /strategy-interactive-the-wheel-time.htm
    /strategy-interactive-the-wheel-time.htm
    /action-interactive-unreal-tournament.htm
    /action-interactive-unreal-tournament.htm
    /simulation-sierra-swat-close-quarters-battle.htm
    /simulation-sierra-swat-close-quarters-battle.htm
    /drama-warner-beloved.htm
    /drama-warner-beloved.htm
  18. Like
    FWR Media got a reaction from mariemeh in ULTIMATE Seo Urls 5 - by FWR Media   
    Please don't post access names and passwords.
     
    If they are real .. CHANGE THEM NOW
     
    Re:: your problem:
     
    Have you reset the USU5 cache and your categories cache? you may be seeing legacy data.
     
  19. Like
    FWR Media got a reaction from mariemeh in ULTIMATE Seo Urls 5 - by FWR Media   
    URLs of USU5 can be replicated in the PRO version, it had to be this way for backwards compatibility.
     
    However, if you want to change them PRO is far more flexible, it will also 301 redirect the old to the new.
     
    The RewriteRules have to be changed as detailed in this support thread.
  20. Like
    FWR Media got a reaction from mariemeh in ULTIMATE Seo Urls 5 - by FWR Media   
    It really makes no difference whatsoever in my opinion.
     
    Having said that a new URI module is in early beta testing ..
     
    Seo urls without the -c-52 / -p-37 etc.
     
    They look like ..
     
    /hardware.htm
    /software.htm
    /dvd-movies.htm
    /gadgets.htm
    /simulation-sierra-swat-close-quarters-battle.htm
    /simulation-sierra-swat-close-quarters-battle.htm
    /action-warner-the-matrix.htm
    /action-warner-the-matrix.htm
    /theres-something-about-mary.htm?reviews_id=1
    /theres-something-about-mary.htm?reviews_id=1
    /gadgets-samsung-samsung-galaxy-tab.htm
    /gadgets-samsung-samsung-galaxy-tab.htm
    /printers-hewlett-packard-hewlett-packard-laserjet-1100xi.htm
    /printers-hewlett-packard-hewlett-packard-laserjet-1100xi.htm
    /mice-microsoft-microsoft-intellimouse-explorer.htm
    /mice-microsoft-microsoft-intellimouse-explorer.htm
    /keyboards-microsoft-microsoft-internet-keyboard-ps2.htm
    /keyboards-microsoft-microsoft-internet-keyboard-ps2.htm
    /strategy-interactive-disciples-sacred-lands.htm
    /strategy-interactive-disciples-sacred-lands.htm
    /strategy-interactive-the-wheel-time.htm
    /strategy-interactive-the-wheel-time.htm
    /action-interactive-unreal-tournament.htm
    /action-interactive-unreal-tournament.htm
    /simulation-sierra-swat-close-quarters-battle.htm
    /simulation-sierra-swat-close-quarters-battle.htm
    /drama-warner-beloved.htm
    /drama-warner-beloved.htm
  21. Like
    FWR Media got a reaction from zipicip in ULTIMATE Seo Urls 5 - by FWR Media   
    If you comment that out you break it. If the registry object is not in place then the cache you uploaded from the backup is probably corrupt but as you have shown me no error messages I have nothing to go on. Perhaps a good time to upgrade to USU5 PRO.
  22. Like
    FWR Media got a reaction from pdcelec in KissMT Dynamic SEO Meta & Canonical Header Tags   
    The following is a quick stop gap solution to the issue being discussed. It was quickly written so please retain a backup of the original kiss_meta_tags directory in case you need to revert.
    1) Create a new php file ..
    catalog/includes/modules/kiss_meta_tags/includes/important_words.php
     
    Containing ..
     

    <?php /** * @example * $important_words = array( 'KissMT' ); */ $important_words = array();
     
    2) Open up
     
    catalog/includes/modules/kiss_meta_tags/abstracts/kiss_modules/kiss_modules.php
     
    Find ..
     

    protected $root_index = 'root'; // options - root = www.mysite.com/ - index = www.mysite.com/FILENAME_DEFAULT (index.php)
     
    Change to ..
     

    protected $root_index = 'root'; // options - root = www.mysite.com/ - index = www.mysite.com/FILENAME_DEFAULT (index.php) protected $important_words = array();
     
    Find complete function formatTitleWords() ( lines 200 to 220 ) .. replace with ..
     

    private function formatTitleWords( $text ) { include_once KissMT::init()->includes_path . 'important_words.php'; if ( isset( $important_words ) && is_array( $important_words ) ) { $this->important_words = $important_words; } if ( !empty( KissMT::init()->smallwords ) ) { $words_array = explode( ' ', $text ); $ucfirst_words = array(); $it = new ArrayIterator( $words_array ); while ( $it->valid() ) { if( ctype_alpha( substr( $it->current(), 0, 1 ) ) ) { if ( !in_array( $it->current(), KissMT::init()->smallwords ) ) { $lower = strtolower( $it->current() ); foreach ( $this->important_words as $index => $word ) { if ( false !== strpos( $lower, strtolower( $word ) ) ) { $ucfirst_words[] = str_replace( strtolower( $word ), $word, $lower ); $it->next(); continue 2; } } $ucfirst_words[] = ucfirst( $lower ); } else { $ucfirst_words[] = $it->current(); } } elseif( tep_not_null( $it->current() ) ) { $ucfirst_words[] = $it->current(); } $it->next(); } return $this->trimWordsToLength( implode( ' ', $ucfirst_words ), 'title' ); } return $this->trimWordsToLength( $text, 'title' ); }
     
    Now add any strings you do not wish to be formatted to the important_words array then reset the cache.
     
    Please let me know how you get on with it.
  23. Like
    FWR Media got a reaction from arcadia128 in ULTIMATE Seo Urls 5 - by FWR Media   
    Languages that use special characters are covered in USU5 PRO you need to see ..
     
    documentation/operation.htm
     
    Enter special character conversions
     
    See the character conversion files in ..
     
    extras/character_conversion_pack/
     
    There is one in there named espanol.php but it is empty.
     
    Create your own array of conversions then upload the file to ..
     
    catalog/includes/modules/ultimate_seo_urls5/includes/character_conversion/
     
    Remember the file must be named the same as your language in osCommerce so ..
     
    If the name of your language in osC is Spanish the file is spanish.php
     
    If the language is espanol then the file is named espanol.php.
     
    Once you have done this reset the cache to produce the new URIs
  24. Like
    FWR Media got a reaction from svobodicz in ULTIMATE Seo Urls 5 - by FWR Media   
    Contributions tend not to work when you haven't installed them properly.
     
    Why did I react like that? because your immediate reaction was that the contribution was broken rather than you may have made a mistake which annoys me a bit.
     
    Anyway on to your problem.
     
    If the class doesn't exist it simply means you haven't added the code correctly in the file ..
     
    catalog/includes/functions/html_output.php
  25. Like
    FWR Media got a reaction from zipicip in ULTIMATE Seo Urls 5 - by FWR Media   
    Current Status for Ultimate SEO Urls 5 PRO
     
    To save people reading back through this thread here is the current status for the latest release of USU5 PRO.
     
    1 major and 1 minor issue have been found and solved: -
     
    Post #2483 ( major issue )
     
    Single modification to
     
    catalog/includes/modules/ultimate_seo_urls5/abstracts/page_modules.php
     
    Post #2507 ( minor - only affects certain servers )
     
    Minor change to the .htaccess RewriteRules
     
    Currently the files that you download via Addons require these changes.
     
    USU5 PRO is looking extremely stable for a brand new release of a relatively complex product, I will update the package a little later once it has had a bit more "usage in the field".
×