Jump to content
FWR Media

Ultimate Seo Urls 5 Pro

Recommended Posts

character accent issues

 

The language files don't work for me.

 

It brings in the array but there must be a charset issue because the actual characters in french.php are not displayed correctly if I print_r() the array in page_modules.php i.e.

 

// Action character conversions
     if ( is_array( Usu_Main::i()->getVar( 'character_conversion' ) ) ) {
	$string = strtr( $string, Usu_Main::i()->getVar( 'character_conversion' ) );
	print_r(Usu_Main::i()->getVar( 'character_conversion' ));

     }

 

If I bring the array in to the linkTextParts() function it works fine.

 

In page_modules.php find:

 

       protected function linkTextParts( $string ) {
     // Action character conversions
     if ( is_array( Usu_Main::i()->getVar( 'character_conversion' ) ) ) {
       $string = strtr( $string, Usu_Main::i()->getVar( 'character_conversion' ) );
     }

 

replace with:

 

    protected function linkTextParts( $string ) {

 $char_convert = array('à' => 'a', 'â' => 'a', 'æ' => 'ae', 'ç' => 'c',
                     'é' => 'e', 'è' => 'e', 'ê' => 'e', 'ë' => 'e',
                     'î' => 'i', 'ï' => 'i', 'œ' => 'oe', 'ô' => 'o',
                     'ö' => 'o', 'ù' => 'u', 'û' => 'u', 'À' => 'A', 
                     'Â' => 'A', 'Æ' => 'AE', 'Ç' => 'C', 'È' => 'E', 
                     'É' => 'E', 'Ê' => 'E', 'Ë' => 'E', 'Î' => 'I',
                     'Ï' => 'I', 'Œ' => 'OE', 'Ô' => 'O', 'Ù' => 'U',
                     'Û' => 'U', 'ü' => 'u', 'ÿ' =>'y',
                     '€' => 'Euros','ä' => 'ae', 'å' => 'a',  'æ' => 'ae',
                        'ð' => 'd',  'ë' => 'e',  'ö' => 'oe',
                        'ø' => '',   'ß' => 'ss', 'þ' => 'p',
                        'ü' => 'ue', 'ÿ' => 'y',  'Ä' => 'AE',
                        'Å' => 'A',  'Æ' => 'AE', 'Ð' => 'D',
                        'Ë' => 'E',  'Ö' => 'OE', 'Ø' => '',
                        'Þ' => '',   'Ü' => 'UE'); 	  

  // Action character conversions
     if ( is_array( Usu_Main::i()->getVar( 'character_conversion' ) ) ) {
       //$string = strtr( $string, Usu_Main::i()->getVar( 'character_conversion' ) );
	$string = strtr( $string, $char_convert);
     }

Share this post


Link to post
Share on other sites

character accent issues

 

The language files don't work for me.

 

You just have to be sure you save the language file as the correct charset.

 

The French file is UTF-8 as some French characters are not available in ISO-8859-1

 

Alternatively create a new french.php file and save it the same as you are doing for the language defines.

Edited by FWR Media

Share this post


Link to post
Share on other sites

Hi Robert,

 

I have an idea for seo images.

 

I'm trying to convert the module template as my module requirements.

 

But I can't understand , what I do wrongly.

 

Just a small suggestion:

Maybe you can add some options to create sitemaps for reviews, articles, pages, links, specials, manufacturers, images (good idea for products, who has multiple images, and google images) .

 

Thanks a lot.

 

USU5 and PRO are contributions that rewrite the uri for pages .. it does not rewrite the url to an image.

 

Re: sitemaps .. the sitemap addition really was an "afterthought" addon the focus of the contribution is on flexible uris and multi language urls.

 

I do however recognise that multi language shops need multi language sitemaps which I have taken on board.

Edited by FWR Media

Share this post


Link to post
Share on other sites

I to fix this error:

 

[b]Warning[/b]:  aPage_Modules::stripPathToLastNumber: Incorrect path value of  presented in [b]/home/google/public_html/google/includes/modules/ultimate_seo_urls5/abstracts/page_modules.php[/b] on line [b]313[/b]
[color="#000000"][b]1064 - You have an error in your SQL  syntax; check the manual that corresponds to your MySQL server version  for the right syntax to use near 'AND cd.language_id = 1' at line 1

SELECT  cd2.categories_name AS pName, cd.categories_name AS cName FROM  categories c LEFT JOIN categories_description cd2 ON c.parent_id =  cd2.categories_id AND c.parent_id = cd2.categories_id AND  cd2.language_id = 1, categories_description cd WHERE c.categories_id =  cd.categories_id AND c.categories_id =  AND cd.language_id = 1[/b][/color]

 

Don't delete all your categories :lol:


"I have no special talent. I am only passionately curious"

- Albert Einstein

Share this post


Link to post
Share on other sites

Hi Robert,

 

I upgraded from USU 5 to USU 5 PRO in a testing site and I'm experimented the next issue:

 

USU 5 PRO is producing the next kind of uris for the popup images

 

http://my-site.com/popup_image.php?pID=2070ℑ=0

 

While USU 5 produced the next one:

 

http://my-site.com/my-product-name-pi-2070.html?image=0

 

I prefer the second one so I think it's more friendly with SEO, why USU 5 PRO don't produce popup uris in the same way like USU 5?

 

Regards,

Share this post


Link to post
Share on other sites

I prefer the second one so I think it's more friendly with SEO, why USU 5 PRO don't produce popup uris in the same way like USU 5?

 

Because pop up images were a backwards compatibility with the old seo urls, they are absolutely pointless so have been removed.

 

There is no SEO benefit to it whatsoever as the links don't point to a page that requires indexing, also it adds unnecessarily to the size of the cache maintained.

Edited by FWR Media

Share this post


Link to post
Share on other sites

By the way, this was the development thread but since the release it is supported in the Ultimate Seo Urls 5 support thread

Share this post


Link to post
Share on other sites

not the same issue, but with the same contrib.

 

I'm look for a way to define letters with accents. My webshop www.thevine.be is selling wines. But for example if a name is:

 

Château Phélan Ségur the SEO URL will be chteau-phlan-sgur witch isn't a good SEO :)

 

any ideas?

 

nevermind: I just saw there is a possibility in the admin panel

Enter special character conversions

 

:)

Edited by zediks

Share this post


Link to post
Share on other sites

not the same issue, but with the same contrib.

 

I'm look for a way to define letters with accents. My webshop www.thevine.be is selling wines. But for example if a name is:

 

Château Phélan Ségur the SEO URL will be chteau-phlan-sgur witch isn't a good SEO :)

 

any ideas?

 

nevermind: I just saw there is a possibility in the admin panel

Enter special character conversions

 

:)

 

URI should only made up of a very limited number of characters including the latin alphabet and a few other characters.

Share this post


Link to post
Share on other sites

Hey Robert,

 

I am posting here regarding the rewrite htm module.

 

I haven't had a lot of time to work on this but here is my initial reaction. Please feel free to provide some feedback.

 

Priority:

Category Structure

Products Info Structure

 

Category Examples:

Category: Hardware

Category: Music

-SubCategory: Dance

-SubCategory: Techno

 

 

Category url structure would be:

domain.com/Hardware

domain.com/Music

domain.com/Music_Dance

domain.com/Music_Techno

 

 

Product Examples:

Hardware

Dell XPS 5000

Microsoft Mouse

Dance Dance Now

 

Product url structure would be:

domain.com/Hardware.htm

domain.com/Dell-XPS-5000.htm

domain.com/Microsoft-Mouse.htm

domain.com/Dance-Dance-Now.htm

 

 

 

Solution Reasoning:

Notice that I have 2 identical names. One is a category and the other is a product. But by getting rid of .htm in category url we can determine if the user is trying to access a category or product.

 

Pseudo code:

if (in url exists ".htm") { it's a product }

elseif (in url !exists ".html) { it's a category }

else {}

 

 

What are you thoughts on this so far?

Share this post


Link to post
Share on other sites

Solution Reasoning:

Notice that I have 2 identical names. One is a category and the other is a product. But by getting rid of .htm in category url we can determine if the user is trying to access a category or product.

 

Pseudo code:

if (in url exists ".htm") { it's a product }

elseif (in url !exists ".html) { it's a category }

else {}

 

 

What are you thoughts on this so far?

 

Nope, this is why the htm module is currently "shelved" as I don't have the time.

 

If you are going to use just strings as the URI without the seo marker ( e.g. -p-32 ) the there MUST be a one to one relationship between the string and the file to load, the _GET key to populate and the _GET value to give the key.

Edited by FWR Media

Share this post


Link to post
Share on other sites

Nope, this is why the htm module is currently "shelved" as I don't have the time.

 

Ya. Sorry I should've clarified that I am requesting you to do any work. I just wanted to show you what I have so far and get your thoughts on it. My coding skills are nowhere close to yours but perhaps I can put together something decent and workable, so you can review it.

 

 

If you are going to use just strings as the URI without the seo marker ( e.g. -p-32 ) the there MUST be a one to one relationship between the string and the file to load, the _GET key to populate and the _GET value to give the key.

 

 

I will give this some thought and get back to you. Thanks for your input so far!

Share this post


Link to post
Share on other sites

We just clicked "Remove all non-alphanumeric characters" from true to false but we still cannot see the number in the url.

 

Example: we want custom-cooking-inch-wok-style-p-1792.html to show up as custom-cooking-66-inch-wok-style-p-1792.html

 

But they are still the same and not showing the number in the url

 

What are we doing wrong ?

thank you

Share this post


Link to post
Share on other sites

We just clicked "Remove all non-alphanumeric characters" from true to false but we still cannot see the number in the url.

 

Example: we want custom-cooking-inch-wok-style-p-1792.html to show up as custom-cooking-66-inch-wok-style-p-1792.html

 

But they are still the same and not showing the number in the url

 

What are we doing wrong ?

thank you

 

You have changed the wrong setting 66 is in fact alphanumeric ( well numeric ).

 

Try setting Filter Short Words to 1.

 

Don't forget to reset the cache.

Edited by FWR Media

Share this post


Link to post
Share on other sites

Worked great , did just like you said plus put back alphanumeric to true.

 

Noticed for example when product name is 22" instead of 22 inches it removes the " from it and display 22. I am sure that is correct because " is not allowed in a url. I am right about that?

 

Thanks so much for the quick fix reply

Share this post


Link to post
Share on other sites

Worked great , did just like you said plus put back alphanumeric to true.

 

Noticed for example when product name is 22" instead of 22 inches it removes the " from it and display 22. I am sure that is correct because " is not allowed in a url. I am right about that?

 

Thanks so much for the quick fix reply

 

Yes URIs should only contain the latin alphabetic plus a few special characters.

Share this post


Link to post
Share on other sites

I'm not sure how to change the paths for RewriteBase in my .htaccess file. I have activated "rewrite" as uri format in Admin backend, but get this error message: 404 Not Found The requested URL /product_info.php was not found on this server.

 

Let's say the shop is located in the folder /shop1. How do I need to change the paths? Any help is appreciated!

 

# RewriteBase instructions

# Change RewriteBase dependent on how your shop is accessed as below.

# http://www.mysite.com = RewriteBase /

# http://www.mysite.com/catalog/ = RewriteBase /catalog/

# http://www.mysite.com/catalog/shop/ = RewriteBase /catalog/shop/

Share this post


Link to post
Share on other sites

I'm not sure how to change the paths for RewriteBase in my .htaccess file. I have activated "rewrite" as uri format in Admin backend, but get this error message: 404 Not Found The requested URL /product_info.php was not found on this server.

 

Let's say the shop is located in the folder /shop1. How do I need to change the paths? Any help is appreciated!

 

# RewriteBase instructions

# Change RewriteBase dependent on how your shop is accessed as below.

# http://www.mysite.com = RewriteBase /

# http://www.mysite.com/catalog/ = RewriteBase /catalog/

# http://www.mysite.com/catalog/shop/ = RewriteBase /catalog/shop/

 

If its in /shop1/

 

then the rewritebase becomes

 

RewriteBase /shop1/

Share this post


Link to post
Share on other sites

If its in /shop1/

 

then the rewritebase becomes

 

RewriteBase /shop1/

 

Knowing that this used to be a frequent question with the old seo urls by Chemo I attempted to make this as clear as possible in both the instructions and in the code to be added to .htaccess itself.

 

I just can't think of any way to make it clearer than I already have.

Share this post


Link to post
Share on other sites

Knowing that this used to be a frequent question with the old seo urls by Chemo I attempted to make this as clear as possible in both the instructions and in the code to be added to .htaccess itself.

 

I just can't think of any way to make it clearer than I already have.

 

I don't have the /catalog folder in my store folder. All files are in the root store folder.

So would it look like this? Is 1 line enough or do I need the 3 of them?

Please correct me.

 

# RewriteBase instructions

# Change RewriteBase dependent on how your shop is accessed as below.

# http://www.mysite.com = RewriteBase /shop1/

# http://www.mysite.com/catalog/ = RewriteBase /shop1/

# http://www.mysite.com/catalog/shop/ = RewriteBase /shop1/

Share this post


Link to post
Share on other sites

I don't have the /catalog folder in my store folder. All files are in the root store folder.

So would it look like this? Is 1 line enough or do I need the 3 of them?

Please correct me.

 

# RewriteBase instructions

# Change RewriteBase dependent on how your shop is accessed as below.

# http://www.mysite.com = RewriteBase /shop1/

# http://www.mysite.com/catalog/ = RewriteBase /shop1/

# http://www.mysite.com/catalog/shop/ = RewriteBase /shop1/

 

The blue bits are just examples: -

 

# RewriteBase instructions

# Change RewriteBase dependent on how your shop is accessed as below.

# http://www.mysite.com = RewriteBase /

# http://www.mysite.com/catalog/ = RewriteBase /catalog/

# http://www.mysite.com/catalog/shop/ = RewriteBase /catalog/shop/

 

The red bit is the bit you change: -

 

# Change RewriteBase using the instructions above

RewriteBase /

 

So yours would look like: -

 

# Change RewriteBase using the instructions above

RewriteBase /shop1/

Share this post


Link to post
Share on other sites

The blue bits are just examples: -

 

# RewriteBase instructions

# Change RewriteBase dependent on how your shop is accessed as below.

# http://www.mysite.com = RewriteBase /

# http://www.mysite.com/catalog/ = RewriteBase /catalog/

# http://www.mysite.com/catalog/shop/ = RewriteBase /catalog/shop/

 

The red bit is the bit you change: -

 

# Change RewriteBase using the instructions above

RewriteBase /

 

So yours would look like: -

 

# Change RewriteBase using the instructions above

RewriteBase /shop1/

 

Thank you Robert, that works!

 

When I click on a product in my store the www after http:// is disappearing. Can I change that somehow, so the www will not disappear when I click on a product? Also I just saw that when trying to access the /admin folder from http://www.myaddress it redirects me to the old /admin/login.php page. When I access the /admin through http://myaddress it's working fine. Any thoughts on this?

Share this post


Link to post
Share on other sites

Thank you Robert, that works!

 

When I click on a product in my store the www after http:// is disappearing. Can I change that somehow, so the www will not disappear when I click on a product? Also I just saw that when trying to access the /admin folder from http://www.myaddress it redirects me to the old /admin/login.php page. When I access the /admin through http://myaddress it's working fine. Any thoughts on this?

 

Your configuration files are incorrect, this is nothing at all to do with USU5. please take this question to the general forums.

 

BTW this was the development topic for USU5 PRO the support topic should you need it is here.

Share this post


Link to post
Share on other sites

Hi,

 

I added PRO_r197. replacing v22d_4.

 

I saw one of your posts somewhere (cant find it now wish i could) basically talking about the gotcha with the URL and google seeing an issue with this in webmastrer tools. i.e

my-product-p-100.html can be manipulated to

mybull-p-100.html or worse -p-100.html and it would still get to the product page.

Well i saw this issue in webmaster tools and also some other with the category rewrites.

 

I believe it went on saying that version 5 resolves this issue.

 

Could i get clarification on my results. At the moment the following happens.

i.e

my-product-p-100.html is fine

-p-100.html returns a 404

my-insertbullhere-p-100.html redirect to the product page @ my-product-p-100.html

 

Not sure if this is completely right or not.

 

Also just clarifying that category rewrites have or have not been affected by this contrib?

as I am getting duplicate content i.e

my-category-c-41_44.html &

my-category-c-_44.html

 

thanks in advance.

Share this post


Link to post
Share on other sites

On the Ultimate Seo Urls 5 PRO Installation to OsCommerce version 2.3 page there is a line @ "1) Uploads directory" that reads:

 

Important: now ensure that the following two directories are writable. Dependent on your server this may be 0755 or 0777.

 

* catalog/includes/ultimate_seo_urls5/cache_system/cache/

* catalog/includes/ultimate_seo_urls5/cache_system/sqlite/

Confusing, as these were actually installed in catalog/includes/modules. (specifically: catalog/includes/modules/ultimate_seo_urls5/cache_system)

 

I am guessing this is a typo...or do I move these out of "modules" and up to "includes"?

 

Thank you for this ad-on btw!

Edited by ErikMM

Web Developer, Firebug, and Notepad++ are powerful free tools for web design.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×