Results 1 to 10 of 5054

Hybrid View

  1. #1
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Simple SEO URL [support thread]

    Gomlers, yes you can.

    First, assuming the language code for Norwegian is "no" (please check, Im not sure)

    Create a file named no.php

    Put it in includes/classes/ssu/plugins/languages/

    Now, for the content of the file, put it:
    (make sure this php file is utf8 encoded)
    PHP Code:

    <?php
    /**
    * @package Pages
    * @copyright Copyright 2003-2006 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: ru.php 218 2009-07-20 02:38:17Z yellow1912 $
    */
        // note: we can later move part of this function into sub-functions, which we can store in the base class.
    class SSULanguageNo extends SSULanguage{
        static function 
    parseName($name){
            
    $cyrillic = array("æ",  "ø",  "å");
               
            
    $translit = array("ae""o""a");
            
            
    $name str_replace($cyrillic$translit$name);
            
            
    $name strtolower($name);
       
            
    // we replace any non alpha numeric characters by the name delimiter
            
    $name self::removeNonAlphaNumeric($nameSSUConfig::registry('delimiters''name'));
            
            
    // Remove short words first
            
    $name self::removeShortWords($nameSSUConfig::registry('configs''minimum_word_length'), SSUConfig::registry('delimiters''name'));
            
            
    // trim the sentence
            
    $name self::trimLongName($name);
                    
            
    // remove excess SSUConfig::registry('delimiters', 'name')
            
    $name self::removeDelimiter($name);
            
            
    // remove identifiers
            
    $name self::removeIdentifiers($name);
            
            
    // remove trailing _
            
    $name trim($nameSSUConfig::registry('delimiters''name'));
            
            return 
    urlencode($name);    
        }
    }
    Then rename local.config.php.example in includes/classes/ssu/ to local.config.php and edit it:

    PHP Code:
    <?php
    /**
    * @package Pages
    * @copyright Copyright 2003-2006 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: local.config.php.example 149 2009-03-04 05:23:35Z yellow1912 $
    */
        
        
    $ssuLocalConfig = array(      
            
    'languages'        =>    array(    'no'    =>    'no'
                                        
    )
        );
    Then go to Admin->Extras->SSU Manager to clear out the cache then check your links again.
    Troubleshooting:
    1. Make sure the first file is uploaded with utf8 encode
    2. Make sure the language code is correct (this is easy, in the normal form Zencart language links look like this: index.php?.......&language=language_code
    More info:
    http://wiki.rubikintegration.com/zen...our_own_parser

    Note that I assume the language code is "no"
    Last edited by yellow1912; 9 Aug 2009 at 04:09 AM.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  2. #2
    Join Date
    Aug 2008
    Posts
    138
    Plugin Contributions
    0

    Default Re: Simple SEO URL [support thread]

    Wow! Thank you for a perfect answer, and such quick reply - when this is the service you give for your free products... I wouldn't hesitate to buy anything from you later :)
    This really saves it - I have a lot of special characters in the product category-names/products-names, and it doesn't look real good right now ;)

    Thank you again!! :)

  3. #3
    Join Date
    Aug 2008
    Posts
    138
    Plugin Contributions
    0

    Default Re: Simple SEO URL [support thread]

    I did what you said, and it works perfectly!

    The only thing which didn't work was to save the first file as UTF-8, I needed to save it as ASCII.
    Don't know why, but it works like a charm :)

    Now I only need to go through the aliases and learn how they work - my URL's got a little too long.

    Btw, what's the difference between the real rewritten link, and the alias? - What would google see?

  4. #4
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Simple SEO URL [support thread]

    If you use aliases, google will only see the aliases
    (this makes sure that each page should have only 1 url)
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  5. #5
    Join Date
    Nov 2005
    Posts
    157
    Plugin Contributions
    0

    Default Re: Simple SEO URL [support thread]

    i have a page http://localhost/index.php?main_page=account was then redirect to http://localhost/account which show

    Not Found

    The requested URL /account was not found on this server.

  6. #6
    Join Date
    Aug 2009
    Posts
    1
    Plugin Contributions
    0

    Default Re: Simple SEO URL [support thread]

    Great addon.
    I have a question about duplicate content and names of categories in URLs for products.
    If I have one product in different categories for ease of use for customers, then I get multiple urls for the same page.
    For example: same t-shirt is in male category and in large category and in black t-shirts.

    site.com/male/mytshirt
    site.com/large/myshirt
    site.com/blackshirts/myshirt

    Same item description is ending up in 3 different urls, which is duplicate content. Any way to avoid that?
    I would love to find a way to just have all the link in the root of the store ( without any category level).

    Thank you!

  7. #7
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Simple SEO URL [support thread]

    Quote Originally Posted by diapercakesmall View Post
    Great addon.
    I have a question about duplicate content and names of categories in URLs for products.
    If I have one product in different categories for ease of use for customers, then I get multiple urls for the same page.
    For example: same t-shirt is in male category and in large category and in black t-shirts.

    site.com/male/mytshirt
    site.com/large/myshirt
    site.com/blackshirts/myshirt

    Same item description is ending up in 3 different urls, which is duplicate content. Any way to avoid that?
    I would love to find a way to just have all the link in the root of the store ( without any category level).

    Thank you!
    You can use cannonical links for this purpose. I will think about adding cannonical feature in the next version
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  8. #8
    Join Date
    Sep 2009
    Posts
    37
    Plugin Contributions
    0

    bug Re: Simple SEO URL [support thread]

    Quote Originally Posted by yellow1912 View Post
    Gomlers, yes you can.

    First, assuming the language code for Norwegian is "no" (please check, Im not sure)

    Create a file named no.php

    Put it in includes/classes/ssu/plugins/languages/

    Now, for the content of the file, put it:
    (make sure this php file is utf8 encoded)
    PHP Code:

    <?php
    /**
    * @package Pages
    * @copyright Copyright 2003-2006 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: ru.php 218 2009-07-20 02:38:17Z yellow1912 $
    */
        // note: we can later move part of this function into sub-functions, which we can store in the base class.
    class SSULanguageNo extends SSULanguage{
        static function 
    parseName($name){
            
    $cyrillic = array("æ",  "ø",  "å");
               
            
    $translit = array("ae""o""a");
            
            
    $name str_replace($cyrillic$translit$name);
            
            
    $name strtolower($name);
       
            
    // we replace any non alpha numeric characters by the name delimiter
            
    $name self::removeNonAlphaNumeric($nameSSUConfig::registry('delimiters''name'));
            
            
    // Remove short words first
            
    $name self::removeShortWords($nameSSUConfig::registry('configs''minimum_word_length'), SSUConfig::registry('delimiters''name'));
            
            
    // trim the sentence
            
    $name self::trimLongName($name);
                    
            
    // remove excess SSUConfig::registry('delimiters', 'name')
            
    $name self::removeDelimiter($name);
            
            
    // remove identifiers
            
    $name self::removeIdentifiers($name);
            
            
    // remove trailing _
            
    $name trim($nameSSUConfig::registry('delimiters''name'));
            
            return 
    urlencode($name);    
        }
    }
    Then rename local.config.php.example in includes/classes/ssu/ to local.config.php and edit it:

    PHP Code:
    <?php
    /**
    * @package Pages
    * @copyright Copyright 2003-2006 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: local.config.php.example 149 2009-03-04 05:23:35Z yellow1912 $
    */
        
        
    $ssuLocalConfig = array(      
            
    'languages'        =>    array(    'no'    =>    'no'
                                        
    )
        );
    Then go to Admin->Extras->SSU Manager to clear out the cache then check your links again.
    Troubleshooting:
    1. Make sure the first file is uploaded with utf8 encode
    2. Make sure the language code is correct (this is easy, in the normal form Zencart language links look like this: index.php?.......&language=language_code
    More info:
    http://wiki.rubikintegration.com/zen...our_own_parser

    Note that I assume the language code is "no"

    Hello. I have the same problem as mr. from Norway up there. I did everything as you mentioned above, but the SSU works, however Slovenian language does NOT. For all the special characters I get "-" instead of the letter.

    Here's the UTF-8 encoded

    /includes/classes/ssu/plugins/languages/si.php

    PHP Code:
    <?php
    /**
    * @package Pages
    * @copyright Copyright 2003-2006 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: ru.php 218 2009-07-20 02:38:17Z yellow1912 $
    */
        // note: we can later move part of this function into sub-functions, which we can store in the base class.
    class SSULanguageSi extends SSULanguage{
        static function 
    parseName($name){
            
    $cyrillic = array("č",  "Č",  "Š",  "š",  "Ž",  "ž",  "Ć",  "ć");
               
            
    $translit = array("c",  "C",  "S",  "s",  "Z",  "z",  "C",  "c");
            
            
    $name str_replace($cyrillic$translit$name);
            
            
    $name strtolower($name);
       
            
    // we replace any non alpha numeric characters by the name delimiter
            
    $name self::removeNonAlphaNumeric($nameSSUConfig::registry('delimiters''name'));
            
            
    // Remove short words first
            
    $name self::removeShortWords($nameSSUConfig::registry('configs''minimum_word_length'), SSUConfig::registry('delimiters''name'));
            
            
    // trim the sentence
            
    $name self::trimLongName($name);
                    
            
    // remove excess SSUConfig::registry('delimiters', 'name')
            
    $name self::removeDelimiter($name);
            
            
    // remove identifiers
            
    $name self::removeIdentifiers($name);
            
            
    // remove trailing _
            
    $name trim($nameSSUConfig::registry('delimiters''name'));
            
            return 
    urlencode($name);    
        }
    }

    and here's the includes/classes/ssu/local.config.php

    PHP Code:
    <?php
    /**
    * @package Pages
    * @copyright Copyright 2003-2006 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: local.config.php.example 149 2009-03-04 05:23:35Z yellow1912 $
    */
        
        
    $ssuLocalConfig = array(      
            
    'languages'        =>    array(    'si'    =>    'si'
                                        
    )
        );
    I cleared the cache also after the modification, but still doesn't work.

    check my WEBSITE where I'm trying to fix it... click on the "Platišča" for instance, and you'll see..

 

 

Similar Threads

  1. v151 Simple SEO URLs for ZC 1.5.x [Support Thread]
    By cvhainb in forum All Other Contributions/Addons
    Replies: 46
    Last Post: 8 Jun 2022, 09:42 AM
  2. Simple SEO URL, Ultimate SEO URLs, Ceon URI Mapping SEO
    By pizza392 in forum All Other Contributions/Addons
    Replies: 13
    Last Post: 21 Jan 2015, 10:49 AM
  3. How do I tell what version my Simple SEO URL addon mod, and others, are?
    By kevinmc3 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 6 May 2010, 01:32 AM
  4. Can't create new thread in Simple SEO URL forum
    By gseiber in forum General Questions
    Replies: 1
    Last Post: 3 Apr 2010, 01:56 PM
  5. Re: Simple SEO URL [support thread]
    By creamcrackers in forum General Questions
    Replies: 2
    Last Post: 16 Aug 2009, 03:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg