Jump to content
FWR Media

ULTIMATE Seo Urls 5 - by FWR Media

Recommended Posts

Bingo!! I think I got the multilanguage issues solved with a couple of tricks and a lot of hours :)

 

This will also solve the absence of hreflang tags in header. Will post it as soon as I manage to pack everything.

Share this post


Link to post
Share on other sites

Just uploaded a new version. this one has support for hreflang tags in header and real support for localized URLs with product/manufacturer/category descriptions in the correct language (no more 301 redirects).

 

It would be great if someone with several langugaes installed could test it. Please give me feedback on any faults if something needs to be fixed.

 

R2.08 (january 2017):
--------------------------
- Now the multi-language support works without 301 redirects! Correct descriptions applied to URLs (also on sitemaps).
- New box and navbar modules for multi-language support.
- New hreflang tags module for header.
- Added Class for setting the different multilanguage variables (used by boxes, navbar and header tags modules)
- Checks in configuration setup for memcache and sqlite
- Some more fixes from the forum thread added.

 

http://addons.oscommerce.com/info/9544

Share this post


Link to post
Share on other sites

Hola Juanma @@piernas,

 

Thank you for this great contribution.

 

I checked your new version and found the following:

- the hreflang tags do not work correct on category pages. They show the link in the default language in all hreflang tags

 

- the hreflang tags should show always all languages, also the actual language:
https://support.google.com/webmasters/answer/189077?hl=en
"If you have multiple language versions of a URL, each language page must identify all language versions, including itself.
 For example, if your site provides content in French, English, and Spanish, the Spanish version must include a rel="alternate" hreflang="x" link for itself in addition to links to the French and English versions. Similarly, the English and French versions must each include the same references to the French, English, and Spanish versions."

 

- the character conversion directory is wrong placed, it should be inside the "includes" directory:
includes/modules/ultimate_seo_urls5/includes/character_conversion/
and not:
includes/modules/ultimate_seo_urls5/character_conversion/

 

- the "character_conversion_pack" directory in "extras" is empty, it could be removed to avoid confusion

- The code references in the installation instructions do not match the actual 2.3.4 BS EDGE coding for the following files:

  • includes/functions/html_output.php
  • admin/categories.php

- for the add-on: "Twitter Typeahead Autocomplete Search":
http://addons.oscommerce.com/info/9351
the search result suggestions and links show always for the default language, not the actual selected language

- there may be incompatibilities for other add-ons too

 

- it might be good to add support for the old, unmodularized navbar (not so important)

 

rgds

Rainer
 

Edited by raiwa

Share this post


Link to post
Share on other sites

Hi @@raiwa and thanks for your feedback.

 

- the hreflang tags do not work correct on category pages. They show the link in the default language in all hreflang tags

This is working fine here. What rewrite method have you used?

 

 

- the hreflang tags should show always all languages, also the actual language:

 

Thanks for the point, I've read somewhere else that the current language should not be there because it's an alternate. I'll dig on it.

 

- the character conversion directory is wrong placed, it should be inside the "includes" directory:

the "character_conversion_pack" directory in "extras" is empty, it could be removed to avoid confusion

 

You're right, I misplaced it! Will fix it on next release

 

 

- The code references in the installation instructions do not match the actual 2.3.4 BS EDGE coding for the following files:

 

Suppose its because I must have already replaced all occurrences of filenames, database files, superglobals etc... isn't that?

 

 

for the add-on: "Twitter Typeahead Autocomplete Search":
http://addons.oscommerce.com/info/9351
the search result suggestions and links show always for the default language, not the actual selected language

 

I cannot currently test it because on my test server something else has broken that addon. Will look at it as soon as I can fix it!

 

 

 

Share this post


Link to post
Share on other sites

Hola Juanma @@piernas,
 
 

- the hreflang tags do not work correct on category pages. They show the link in the default language in all hreflang tags

 
Its the same with all 4 URL formats.
Example demostore:
<link rel="alternate" hreflang="es" href="http://localhost/BS_edge_2017_01_01/es/hardware-mice-c-1_9.html" />
should be:
http://localhost/BS_edge_2017_01_01/es/hierro-ratnes-c-1_9.html

Example real store:
<link rel="alternate" hreflang="en" href="http://localhost/mystore/en/pulseras/pulseras-con-gemas-plata-c-24_155.html" />
<link rel="alternate" hreflang="de" href="http://localhost/mystore/de/pulseras/pulseras-con-gemas-plata-c-24_155.html" />

should be:
http://localhost/mystore/en/bracelets/gemstone-and-silver-bracelet-c-24_155.html
http://localhost/mystore/de/armbaender/armbaender-mit-edelsteinen-und-silber-c-24_155.html
 
 

- the hreflang tags should show always all languages, also the actual language:

I'm doing this on a real store since about 2 years and get all my href lang tags recognized and validated by Google
 
 

- The code references in the installation instructions do not match the actual 2.3.4 BS EDGE coding for the following files:

  • includes/functions/html_output.php
  • admin/categories.php

For includes/functions/html_output.php the difference is in line 61:
original code in 2.3.4 BS EDGE:

    while (strpos($link, '&&') !== false) $link = str_replace('&&', '&', $link);

reference in instructions:

    while (strstr($link, '&&')) $link = str_replace('&&', '&', $link);

For admin/categories.php its in line 20:

  if (tep_not_null($action)) {

in the actual 2.3.4 BS EDGE file there is one blank space instead of 2 at the beginning of the line.
 
rgds
Rainer

Edited by raiwa

Share this post


Link to post
Share on other sites

@@raiwa you're right with hreflang. Seems a nonsene to me but the current language has to be listed in alternates :wacko:

 

I'm looking into all the problems. Do you have the original version installed with multilingual support enabled?

If so, Can you confirm if this is how it works?

 

- Open a page, change language to other than the default.

- Open a new window and enter the site by typing the URL.

 

Does the new window keep the language chosen in the first one?

Share this post


Link to post
Share on other sites

Hola Juanma @@piernas,

 

I tried as you say and yes, it keeps the language selection.

 

rgds

Rainer

Share this post


Link to post
Share on other sites

hello

 

i have installed the addon works great

 

only i have noticed that in the url the last hyphen for a subcategory is the underscore ( _ ) and not the minus sign (-)

 

for example : mydomain.com//latex-muurverf-muurverf-voor-binnen-c-22_28.html

 

is this correct ?

 

greetings

eric

Share this post


Link to post
Share on other sites

Yes, that's correct. The 28 is a sub category of 22, which is how the subcategories are written by osCommerce.


Let's make things easier for new osCommerce users http://forums.oscommerce.com/topic/402638-discussion-about-hard-coded-database-tables/?p=1718900  Getting there with osCommerce 2.4! :thumbsup:

Share this post


Link to post
Share on other sites

Hi

 

I have v2.3.4 bootstrap but can't find the following in my files...

 

In catalog/index.php...

tep_draw_form('filter', 'index.php', 'get')

in catalog/includes/application_top.php...

require('includes/languages/' . $language . '.php');

..any help on how I can install this add-on would be much appreciated.

 

Glen

Edited by GlenPig

Share this post


Link to post
Share on other sites

Hi

 

I have v2.3.4 bootstrap but can't find the following in my files...

 

In catalog/index.php...

tep_draw_form('filter', 'index.php', 'get')

in catalog/includes/application_top.php...

require('includes/languages/' . $language . '.php');

..any help on how I can install this add-on would be much appreciated.

 

Glen

 

 

Hi Glen,

They are definitely in the bootstrap version.

 

Refer the original files:

https://github.com/gburton/Responsive-osCommerce/blob/master/index.php

https://github.com/gburton/Responsive-osCommerce/blob/master/includes/application_top.php

 

1. Search "tep_draw_form" in index.php and you should find the first part.

 

2.  Note that what you are looking for:

require('includes/languages/' . $language . '.php');

Is represented differently in the bootstrap version as:

include('includes/classes/language.php');

Let us know if you still cannot find them.

 

Peter

Edited by peterpil19

Full-time I am the COO of a large retail company in Australia.

In my spare time (what little I have), I enjoy buying, selling, and trading ancient coins and antiquities as a hobby: https://www.ancientcointraders.com.

I am enjoying learning about web-design.

 

osCommerce responsive is the best version of osCommerce.

Download it here: https://github.com/gburton/Responsive-osCommerce

Please donate so the team can continue their work on that project: https://pledgie.com/campaigns/31724

Share this post


Link to post
Share on other sites

Hi, I have this addon installed on ocs2.3.4, all working fine, but recently the ajax checkout addon, I have this error appearing only on 1 page:

Fatal error: Call to a member function retrieveDependencies() on array in /home/user/public_html/includes/modules/ultimate_seo_urls5/uri_modules/path_rewrite.php on line 84

I noticed 2 users posted on this forum the same error but didn't find a solution.

Share this post


Link to post
Share on other sites

I'm running the OSC 2.3.4 BS version - I've used it with succes for a year.

 

I have a few challenges after changing the site to SSL - most are solved but I have a problem with all href's created by USU5 are not adding the https://... but keeps showing the http:// prefix. I have tryed to "clean cache" - "remove cache" without any change. I have also tryed to toggel the different URI formats - no change

 

It's obvious that something is wrong with my version. I have searched this forum without finding help in this matter.

 

So could anyone help in the right direction here??

 

I have "fixed" the problem true site redirect in apache - but I expect there should be a better solution..

 

Feel free to view one of the sites that causing me problems: www.vandpleje.dk 

 

If you inspect one of the product images you'll find that the href has no "https" but just "http" 

Share this post


Link to post
Share on other sites

Yes, that's correct. The 28 is a sub category of 22, which is how the subcategories are written by osCommerce.

 

hi frank

 

do you know where the undescores are created ( which php ) or is it harcoded in php ?

 

thanks

 

greetings

eric

Share this post


Link to post
Share on other sites

@@piernas

 

Hi,

 

I have just updated my installation of this add-on to the latest version and it continues to work perfectly for me.

 

However the updated version of the usu5 sitemaps no longer works. It presents the following error:

Warning: Missing argument 3 for usu5_create_sitemap_set(), called in /home/.../public_html/usu5_sitemaps/index.php on line 223 and defined in /home/.../public_html/usu5_sitemaps/index.php on line 137
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 'ORDER BY p.products_last_modified DESC, p.products_date_added DESC' at line 1

SELECT p.products_id, p.products_date_added, p.products_last_modified FROM products_description pd INNER JOIN products p ON p.products_id = pd.products_id WHERE p.products_status = '1' AND pd.language_id = ORDER BY p.products_last_modified DESC, p.products_date_added DESC

[TEP STOP]

The older version  works fine and I will continue to use it. 

The error appears to be caused by those lines relating to the multi-language support and thought you should be aware.

 

Peter


Full-time I am the COO of a large retail company in Australia.

In my spare time (what little I have), I enjoy buying, selling, and trading ancient coins and antiquities as a hobby: https://www.ancientcointraders.com.

I am enjoying learning about web-design.

 

osCommerce responsive is the best version of osCommerce.

Download it here: https://github.com/gburton/Responsive-osCommerce

Please donate so the team can continue their work on that project: https://pledgie.com/campaigns/31724

Share this post


Link to post
Share on other sites

Hello,

it seems that the file "product_reviews_info.php" is not part of the BS-OScommerce version.

I use this contribution with rewrite urls in htaccess.

To avoid an increase in 404 errors I'd like to change the line

 

RewriteRule ^([a-z0-9/-]+)-pri-([0-9]+).html$ product_reviews_info.php [NC,L,QSA]

 

to

 

 RewriteRule ^([a-z0-9/-]+)-pri-([0-9]+).html$ product_info.php [NC,L,QSA]

 

But it doesn't really works (it send me to the index page)

 

Has somebody the same issue?

 

Marc

Share this post


Link to post
Share on other sites

@@xcmro_os

 

You need to change the corresponding file in the USU5 folder so that it redirects to product_info.php


Let's make things easier for new osCommerce users http://forums.oscommerce.com/topic/402638-discussion-about-hard-coded-database-tables/?p=1718900  Getting there with osCommerce 2.4! :thumbsup:

Share this post


Link to post
Share on other sites

Hello,

it seems that the file "product_reviews_info.php" is not part of the BS-OScommerce version.

I use this contribution with rewrite urls in htaccess.

To avoid an increase in 404 errors I'd like to change the line

 

RewriteRule ^([a-z0-9/-]+)-pri-([0-9]+).html$ product_reviews_info.php [NC,L,QSA]

 

to

 

 RewriteRule ^([a-z0-9/-]+)-pri-([0-9]+).html$ product_info.php [NC,L,QSA]

 

But it doesn't really works (it send me to the index page)

 

Has somebody the same issue?

 

Marc

 

Hi,

 

If the file does not exist then why would that result in a 404 errors if it is never going to be accessed?

 

 

@@xcmro_os

 

You need to change the corresponding file in the USU5 folder so that it redirects to product_info.php

 

The products_reviews_info.php in the "page_modules" directory? What should be changed?

 

Peter


Full-time I am the COO of a large retail company in Australia.

In my spare time (what little I have), I enjoy buying, selling, and trading ancient coins and antiquities as a hobby: https://www.ancientcointraders.com.

I am enjoying learning about web-design.

 

osCommerce responsive is the best version of osCommerce.

Download it here: https://github.com/gburton/Responsive-osCommerce

Please donate so the team can continue their work on that project: https://pledgie.com/campaigns/31724

Share this post


Link to post
Share on other sites

 

The products_reviews_info.php in the "page_modules" directory? What should be changed?

 

Peter

 

includes/modules/ultimate_seo_urls5/page_modules/product_reviews_info.php needs to be modified if you want the -pri- pages to be redirected to product_info.php rather than product_reviews_info.php.

 

Not that I've tried it but probably copying the contents of the function in includes/modules/ultimate_seo_urls5/page_modules/product_info.php into includes/modules/ultimate_seo_urls5/page_modules/product_reviews_info.php and making sure the -pri- marker stays intact would probably be enough.

Edited by frankl

Let's make things easier for new osCommerce users http://forums.oscommerce.com/topic/402638-discussion-about-hard-coded-database-tables/?p=1718900  Getting there with osCommerce 2.4! :thumbsup:

Share this post


Link to post
Share on other sites

Thanks for the update - I'll take a look as soon as I can

 

 

@@piernas

 

Hi,

 

I have just updated my installation of this add-on to the latest version and it continues to work perfectly for me.

 

However the updated version of the usu5 sitemaps no longer works. It presents the following error:

Warning: Missing argument 3 for usu5_create_sitemap_set(), called in /home/.../public_html/usu5_sitemaps/index.php on line 223 and defined in /home/.../public_html/usu5_sitemaps/index.php on line 137
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 'ORDER BY p.products_last_modified DESC, p.products_date_added DESC' at line 1

SELECT p.products_id, p.products_date_added, p.products_last_modified FROM products_description pd INNER JOIN products p ON p.products_id = pd.products_id WHERE p.products_status = '1' AND pd.language_id = ORDER BY p.products_last_modified DESC, p.products_date_added DESC

[TEP STOP]

The older version  works fine and I will continue to use it. 

The error appears to be caused by those lines relating to the multi-language support and thought you should be aware.

 

Peter

Share this post


Link to post
Share on other sites

This i add to my htacces file and it works.

# If you are getting errors you may need to comment this out like ..
# Options +FollowSymLinks
Options +SymLinksIfOwnerMatch

<IfModule mod_rewrite.c>
  RewriteEngine On

  # 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/

  # Change RewriteBase using the instructions above  
  RewriteBase / 
  RewriteRule ^([a-z0-9/-]+)-p-([0-9]+).html$ product_info.php [NC,L,QSA]
  RewriteRule ^([a-z0-9/-]+)-c-([0-9_]+).html$ index.php [NC,L,QSA]
  RewriteRule ^([a-z0-9/-]+)-m-([0-9]+).html$ index.php [NC,L,QSA]
  RewriteRule ^([a-z0-9/-]+)-pi-([0-9]+).html$ popup_image.php [NC,L,QSA]
  RewriteRule ^([a-z0-9/-]+)-pr-([0-9]+).html$ product_reviews.php [NC,L,QSA]
  RewriteRule ^([a-z0-9/-]+)-pri-([0-9]+).html$ product_reviews_info.php [NC,L,QSA]
  # Articles contribution
  # RewriteRule ^([a-z0-9/-]+)-t-([0-9_]+).html$ articles.php [NC,L,QSA]
  # RewriteRule ^([a-z0-9/-]+)-au-([0-9]+).html$ articles.php [NC,L,QSA]
  # RewriteRule ^([a-z0-9/-]+)-a-([0-9]+).html$ article_info.php [NC,L,QSA]
  # Information pages
  # RewriteRule ^([a-z0-9/-]+)-i-([0-9]+).html$ information.php [NC,L,QSA]
  # Links contribution
  # RewriteRule ^([a-z0-9/-]+)-links-([0-9_]+).html$ links.php [NC,L,QSA]
  # Newsdesk contribution
  # RewriteRule ^([a-z0-9/-]+)-n-([0-9]+).html$ newsdesk_info.php [NC,L,QSA]
  # RewriteRule ^([a-z0-9/-]+)-nc-([0-9]+).html$ newsdesk_index.php [NC,L,QSA]
  # RewriteRule ^([a-z0-9/-]+)-nri-([0-9]+).html$ newsdesk_reviews_info.php [NC,L,QSA]
  # RewriteRule ^([a-z0-9/-]+)-nra-([0-9]+).html$ newsdesk_reviews_article.php [NC,L,QSA]
</IfModule>

BTW there is an issue with some product links. Read here: http://forums.oscommerce.com/topic/410851-ultimate-seo-urls5/


  • The clever one learn from everything and from everybody
  • The normal one learn from his experience
  • The silly one knows everything better

[socrates, 412 before Christ]

Computers help us with the problems we wouldn't have without them!
99.9% of the bugs sit in front of the computer!
My programmed add-ons: WDW EasyTabs 1.0.3, WDW Facebook Like 1.0.0

if(isset($this) || !isset($this)){ // that's the question...

 

Share this post


Link to post
Share on other sites

I've just installed the SSL to my oscommerce and I'm having a problems with the redirects from http to https. Nothing works. Could you help me with the redirects.

 

Thank you.

 

Regards

Share this post


Link to post
Share on other sites

Hello Fátima @@famaca,

 

First of all you posted this in the wrong forum, your problem is SSL related and not related to this SEO URLs thread.

 

You should post in the following thread and also try the suggested redirect rules there:

http://forums.oscommerce.com/topic/410587-htaccess-redirect/

 

Then it would be good to post the redirects you already tried, so we can see what youd did and what does not work on your server.

Some hosts need specific rewrite rules/redirects to get it work on their SSL installation. I experienced this issue myself on my server.

In that case you should ask your hosting for help.

 

rgds

Rainer

Edited by raiwa

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

×