Results 1 to 10 of 5054

Threaded View

  1. #11
    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

 

 

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

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR