Zen Cart Logo
Forums / All Other Contributions/Addons / Simple SEO URL (OLD version) [support thread]

Simple SEO URL (OLD version) [support thread]

Views: 1,113,830

Results 2,501 to 2,520 of 5,058
24 Feb 2009, 9:14 AM
#2501
askaquestion avatar

askaquestion

New Zenner

Join Date:
Feb 2009
Posts:
30
Plugin Contributions:
0

Simple SEO URL (OLD version) [support thread]

Thanks for the suggestion. After some experimentation I changed
This

$link = ereg_replace('&', '&', $link);

to

$link = ereg_replace('&', '&', $link);

As far as I can tell it works fine for now. It would be great if you could take a proper look for your next release.
Much appreciated.

24 Feb 2009, 9:30 AM
#2502
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

Where did you find the line :blink:
$link = ereg_replace('&', '&', $link); //--> this line does nothing
I dont think ereg_replace is need btw, a simple str_replace is enough. But it's up to you.

24 Feb 2009, 10:05 AM
#2503
askaquestion avatar

askaquestion

New Zenner

Join Date:
Feb 2009
Posts:
30
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

Just ignore me. :oops: That line was in html_output.php. I think I had it on my clipboard when I was fumbling around trying to work things out. Adding the line you suggested seems to have done the trick. Back to 100% valid pages :) Many Thanks!

24 Feb 2009, 12:30 PM
#2504
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

mydanilo:

Yellow, could you please give an example of how the cron should be set up and how it should work?

Something like..
wget https://domain.com/cron/ssu.php

...any other commands at the end?

Can anybody tell me how the cron should be done with this mod?

24 Feb 2009, 12:41 PM
#2505
atecko avatar

atecko

New Zenner

Join Date:
Oct 2007
Posts:
13
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

Hello,

im making new shop ... build on ZC 1.3.8a.
Its clear instalation no other modules installed then SSU 3.6.4.

I maked new parser for CZ and tryed to configure local.config.php but still no win ... characters like ěščřžýá is still chaing to ------- instead of escrzya ...

Here is my cz.php

<?php
      // note: we can later move part of this function into sub-functions, which we can store in the base class.
    class SSULanguagecz extends SSULanguage{      
        static function parseName($name){
            $cyrillic = array("á",  "č",  "ď", "é",  "ě", "í", "ň", "ó", "ř", "š", "ť", "ú", "ů", "ý", "ž");
             
            $translit = array("a", "c", "d", "e", "e",  "i", "n", "o", "r", "s", "t", "u", "u", "y", "z");
            
            $name = str_replace($cyrillic, $translit, $name);
            
            $name = strtolower($name);
       
            // we replace any non alpha numeric characters by the name delimiter
            $name = self::removeNonAlphaNumeric($name, SSUConfig::registry('delimiters', 'name'));
            
            // Remove short words first
            $name = self::removeShortWords($name, SSUConfig::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($name, SSUConfig::registry('delimiters', 'name'));
            
            return urlencode($name);
        }
    } 

and here is my local.config.php

<?php $ssuLocalConfig = array(
'plugins'        =>    array('parsers'    =>    array('manufacturers')),
    'identifiers'    =>    array('mf'    =>    'manufacturers'),
    'languages'        =>    array(    'cz'    =>    'cz'))
?> 

Plz can anyone say me where i am making mistake ? I really dont want to rewrite every cat / product in alias.

24 Feb 2009, 4:29 PM
#2506
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

mydanilo:

Can anybody tell me how the cron should be done with this mod?
Use it like any other cron, you dont need to add any command at the end. I think GET is enough

24 Feb 2009, 4:31 PM
#2507
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

@aTecko
Name of the class should be

SSULanguageCz

24 Feb 2009, 5:10 PM
#2508
atecko avatar

atecko

New Zenner

Join Date:
Oct 2007
Posts:
13
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

yellow1912:

@aTecko
Name of the class should be

SSULanguageCz

I maked this change but still not sucess ...
i had installed v3.5.8 before and i upgraded to 3.6.4 (overwrited files)
Even im missing some "functions" from new version like category separator ... link may look like that https://www.domain.com/pocitace/notebooky-c65_69
but still looks like that https://www.domain.com/po-ita-e-notebooky-c65_69

I tried reupload files 2 more times if there wasnt some problem but still no problem solved.

24 Feb 2009, 5:23 PM
#2509
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

To have category separator, you have to:

  1. Turn on link alias
  2. Turn on auto alias
  3. Clear your ssu cache via extra->ssu manager

Same for the change in language parser, did you clear the cache?

Make sure you choose to clear ALL cache.

24 Feb 2009, 5:26 PM
#2510
atecko avatar

atecko

New Zenner

Join Date:
Oct 2007
Posts:
13
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

yellow1912:

To have category separator, you have to:

  1. Turn on link alias
  2. Turn on auto alias
  3. Clear your ssu cache via extra->ssu manager

Same for the change in language parser, did you clear the cache?

Make sure you choose to clear ALL cache.

Ah category separator now works ok.
Yes i clear - "Reset all cache" everytime i make some chage.

24 Feb 2009, 10:03 PM
#2511
mcintyremedia avatar

mcintyremedia

New Zenner

Join Date:
Dec 2008
Location:
Cleveland
Posts:
17
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

Hey all. Having an issue with the install. Using ZC 1.3.8. I'm on a GoDaddy server unfourtunely.

Things I have done.

  1. I installed Module Manager.

  2. Configured the configure.php. But had a question. When defining the 'DIR_WS_CATALOG' entry, what are you referring to as the "subfolder". The entries for the HTTP_SEVER and the HTTPS_SERVER is correct (no sub folders).

**I didn't change the DIR_WS_CATALOG directory? Not sure there.

  1. Installed the files and seems to be loaded on correctly. I can go into the backend and change the URL.

**Should I be using the whole URL that is shown for that product and then adding the whole URL to what I want it to display. htttp://site.com/ajsdklf&laj and change it to http://site.com/widgets/ ?

  1. Changed the .htaccess file to what was instructed to change in the install settings. There was no .htaccess file on the GoDaddy server, so I created one.

  2. Made sure the cache/SSU folder on the server is set to 777.

  3. Make sure both configure.php files have the same directory. They both have /home/content/p/r/e/premium09/html/cache.

  4. Did change the RewriteBase /zencart/ in the .htaccess file to RewriteBase /

I do have the ZC site in the top level.

Any insight would be great. Thank you.

24 Feb 2009, 11:34 PM
#2512
atecko avatar

atecko

New Zenner

Join Date:
Oct 2007
Posts:
13
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

mcintyremedia:

Hey all. Having an issue with the install. Using ZC 1.3.8. I'm on a GoDaddy server unfourtunely.

Things I have done.

  1. I installed Module Manager.

  2. Configured the configure.php. But had a question. When defining the 'DIR_WS_CATALOG' entry, what are you referring to as the "subfolder". The entries for the HTTP_SEVER and the HTTPS_SERVER is correct (no sub folders).

**I didn't change the DIR_WS_CATALOG directory? Not sure there.

  1. Installed the files and seems to be loaded on correctly. I can go into the backend and change the URL.

**Should I be using the whole URL that is shown for that product and then adding the whole URL to what I want it to display. htttp://site.com/ajsdklf&laj and change it to http://site.com/widgets/ ?

  1. Changed the .htaccess file to what was instructed to change in the install settings. There was no .htaccess file on the GoDaddy server, so I created one.

  2. Made sure the cache/SSU folder on the server is set to 777.

  3. Make sure both configure.php files have the same directory. They both have /home/content/p/r/e/premium09/html/cache.

  4. Did change the RewriteBase /zencart/ in the .htaccess file to RewriteBase /

I do have the ZC site in the top level.

Any insight would be great. Thank you.

Wait until GoDaddy refreshes your htaccess ... tooks long time there

24 Feb 2009, 11:39 PM
#2513
atecko avatar

atecko

New Zenner

Join Date:
Oct 2007
Posts:
13
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

yellow1912:

To have category separator, you have to:

  1. Turn on link alias
  2. Turn on auto alias
  3. Clear your ssu cache via extra->ssu manager

Same for the change in language parser, did you clear the cache?

Make sure you choose to clear ALL cache.

yelloow ... plz help me i tried to reinstall ZC and get on here only module manager and SSU 3.6.4 and ZC localization - Czech.

I had set cz.php like this

<?php
      // note: we can later move part of this function into sub-functions, which we can store in the base class.
    class SSULanguageCz extends SSULanguage{      
        static function parseName($name){
            $cyrillic = array("á", "č", "ď", "é", "ě", "í", "ň", "ó", "ř", "š", "ť", "ú", "ů", "ý", "ž");
             
            $translit = array("a", "c", "d", "e", "e", "i", "n", "o", "r", "s", "t", "u", "u", "y", "z");
            
            $name = str_replace($cyrillic, $translit, $name);
            
            $name = strtolower($name);
       
            // we replace any non alpha numeric characters by the name delimiter
            $name = self::removeNonAlphaNumeric($name, SSUConfig::registry('delimiters', 'name'));
            
            // Remove short words first
            $name = self::removeShortWords($name, SSUConfig::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($name, SSUConfig::registry('delimiters', 'name'));
            
            return urlencode($name);
        }
    } 
    
?>

and local.config.php like this

<?php $ssuLocalConfig = array(
'plugins'        =>    array('parsers'    =>    array('manufacturers')),
    'identifiers'    =>    array('mf'    =>    'manufacturers'),
    'languages'        =>    array(    'cz'    =>    'cz'))
?> 

and now it may look like that
http://www.domain.com/pocitace

now it doesnt make ( - ) instead character conversion but link looks like that :
http://www.thecomp.cz/po%26%23269%3B%EDta%26%23269%3Be

Is there any solution for that ?

24 Feb 2009, 11:44 PM
#2514
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

I suspect there can be a problem when you transfer the edited file from your computer to the server, sometimes if the ftp method is not set correctly (i think binary is needed in this case), then you may get that problem.

When I work on these language files, I always use utf8 btw.

25 Feb 2009, 2:40 PM
#2515
mcintyremedia avatar

mcintyremedia

New Zenner

Join Date:
Dec 2008
Location:
Cleveland
Posts:
17
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

aTecko:

Wait until GoDaddy refreshes your htaccess ... tooks long time there

Still nothing? Am I using this the right way?

Anyone?

25 Feb 2009, 4:19 PM
#2516
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

mcintyremedia:

Still nothing? Am I using this the right way?

Anyone?
Can you explain what's happening?

25 Feb 2009, 4:27 PM
#2517
mcintyremedia avatar

mcintyremedia

New Zenner

Join Date:
Dec 2008
Location:
Cleveland
Posts:
17
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

yellow1912:

Can you explain what's happening?

Sure. There is more info at post #2511 up top.

It looks like the install went ok, but when I go into Extras>SSU, and change the Alias Functions it does not change the crap URL to the new one?

I put the whole URL in https://www.site.com/jlkasduf7adyp& and changed it to https://www.site.com/brochures/ and it does nothing. I only have one category and product set up right now for testing. Maybe it has something to do with that? http://cleveland-print.com/

Thanks

25 Feb 2009, 4:42 PM
#2518
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

mcintyremedia:

Sure. There is more info at post #2511 up top.

It looks like the install went ok, but when I go into Extras>SSU, and change the Alias Functions it does not change the crap URL to the new one?

I put the whole URL in www.site.com/jlkasduf7adyp& and changed it to www.site.com/brochures/ and it does nothing. I only have one category and product set up right now for testing. Maybe it has something to do with that? http://cleveland-print.com/

Thanks
You can not put the whole url in, it just doesnt work like that. Did you check this:
http://public.rubikintegration.com/tutorials/ssu_alias.htm

The manager has been changed, but the whole process remains the same.

25 Feb 2009, 5:00 PM
#2519
mcintyremedia avatar

mcintyremedia

New Zenner

Join Date:
Dec 2008
Location:
Cleveland
Posts:
17
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

yellow1912:

this happens when you have an older version of SSU. The solution is to upgrade to 3.6.1
http://public.rubikintegration.com/

I dont know why you get the older version when the installation note already points directly to the new version?

I have, Beta 3.6.4. There is only Beta 3.6.4, and 2.9.6 listed.

25 Feb 2009, 5:05 PM
#2520
barricades avatar

barricades

Inactive

Join Date:
May 2007
Posts:
150
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

Hi there Yellow1912 and others.

First off, cheers for this mod, I've been using a version of it on my live shop for a few months now and it's been working great.

However, I'm now trying to set up a new shop on my local machine and I've been having a few issues. First off I followed the instructions and transferred the files to my zencart - using the htaccess file and remembering to change the RewriteBase to /babyclothes/ (where my store is obviously). That resulted in a 500 error which, after hoking through this thread I found was because my xampplite doesn't have mod_rewrite turned on by default, so I followed http://rudyegenias.wordpress.com/2006/08/21/enabling-mod-rewrite-in-xampp/ to turn it on.

Now the problem when I try to access my admin I get:

0 DB_ERROR_NOT_CONNECTED
in:
[select * from project_version WHERE project_version_key = 'Zen-Cart Database' ]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

I've searched but can't find out what I'm doing wrong. I don't remember having any problems at all the last time I installed on a live site and I'm sure it's something stupid (I am indeed stupid) but any help would be greatly appreciated. I've been messing around with this for hours.

heres my htaccess

BOF SSU

Options +FollowSymLinks -MultiViews
RewriteEngine On

Make sure to change "test_site" to the subfolder you install ZC. If you use root folder, change to: RewriteBase /

RewriteBase /babyclothes/

Deny access from .htaccess

RewriteRule ^.htaccess$ - [F]

RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*) index.php?/$1 [E=VAR1:$1,QSA,L]

EOF SSUAnd my configure.php

<?php /** * @package Configuration Settings circa 1.3.8 * @copyright Copyright 2003-2007 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 */ /*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/ /*************** The 2 files should be kept separate and not used to overwrite each other. ***********/ // Define the webserver and path parameters // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com define('HTTP_SERVER', 'http://localhost'); define('HTTPS_SERVER', 'https://localhost'); // Use secure webserver for checkout procedure? define('ENABLE_SSL', 'false'); // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes! // * DIR_WS_* = Webserver directories (virtual/URL) // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder) define('DIR_WS_CATALOG', '/babyclothes/'); define('DIR_WS_HTTPS_CATALOG', '/babyclothes/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/'); define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/'); define('DIR_WS_PHPBB', '/'); // * DIR_FS_* = Filesystem directories (local/physical) //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/ define('DIR_FS_CATALOG', 'C:/xampplite/htdocs/babyclothes/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/'); define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS); define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/'); // define our database connection define('DB_TYPE', 'mysql'); define('DB_PREFIX', ''); define('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', 'root'); define('DB_SERVER_PASSWORD', '********'); define('DB_DATABASE', 'babyclothes'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'db'); // for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage // The next 2 "defines" are for SQL cache support. // For SQL_CACHE_METHOD, you can select from: none, database, or file // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash define('SQL_CACHE_METHOD', 'none'); define('DIR_FS_SQL_CACHE', 'C:/xampplite/htdocs/babyclothes/cache'); // EOFThanks in advance :)