Jump to content
spidometrs

[CONTRIBUTION] Ultimate SEO URLs v2.1 - by Chemo

Recommended Posts

Hi Jack.

Can i use the latest version "Ultimate SEO 2-2.2d-11" for v2.3.1?

Yes.

Share this post


Link to post
Share on other sites

Hi Jack,

 

Quick question.

 

I've installed the latest version of the add-on on this site : http://www.brophies.com/ .

 

If you will look at the URL's in the left column (the categories) you can see that the url is created only like -c-category id. Same goes for products.

 

The thing is that if I click on one of those links it will actually go to the right url where the category/product name is also displayed.

 

So I'm not really getting if I should change something or if this is a bug ?

 

Or at least could you point me to what function I should check in seo.class.php ? I have some php knowledge but not a lot.

 

Thanks,

 

Lucian

Share this post


Link to post
Share on other sites

I have this installed and just discovered a problem with the categories. You can enter any number and it will give a 200 "OK" response, even if there is no such a thing.

 

For example if I have:

 

site.com/categoryname-c-45.html It will show. If I enter site.com/categoryname-c-451234567890.html (or anything) it will show a page and give a 200 response. This can cause lots of issues like duplicate content. If you do the same with a product you get a product not found.

 

Is there any way around this? (sorry if this has been reported before)

 

Michael

Share this post


Link to post
Share on other sites

I have this installed and just discovered a problem with the categories. You can enter any number and it will give a 200 "OK" response, even if there is no such a thing.

 

For example if I have:

 

site.com/categoryname-c-45.html It will show. If I enter site.com/categoryname-c-451234567890.html (or anything) it will show a page and give a 200 response. This can cause lots of issues like duplicate content. If you do the same with a product you get a product not found.

 

Is there any way around this? (sorry if this has been reported before)

Yes, this has been reported before and will be fixed in the next release. However, it won't cause duplicate content problems. That would only happen if the pages are duplicate, which they are not. But even if that were happening, you should have a contribution installed that handles duplicate content situations.

Share this post


Link to post
Share on other sites

Yes, this has been reported before and will be fixed in the next release. However, it won't cause duplicate content problems. That would only happen if the pages are duplicate, which they are not. But even if that were happening, you should have a contribution installed that handles duplicate content situations.

ok, but I think it may, I will explain why...

 

When you go to the "dummy" (non-existing) category it has a "lets see what we have here"...There are currently no products in the range message. (and a 200 response) So if you have lots of them saved in google it will look like duplicate content, wont it? I had a similar issue with the "product not found" a while back before I realised and changed it so it produced 404 headers.

 

I will look at other contributions for dupliate content in the meantime :)

Share this post


Link to post
Share on other sites

ok, but I think it may, I will explain why...

 

When you go to the "dummy" (non-existing) category it has a "lets see what we have here"...There are currently no products in the range message. (and a 200 response) So if you have lots of them saved in google it will look like duplicate content, wont it? I had a similar issue with the "product not found" a while back before I realised and changed it so it produced 404 headers.

 

I will look at other contributions for dupliate content in the meantime :)

Yes, I suppose that is possible. But why would there be so many, or even two, saved in google? Do you delete products often? Also keep in mind that while diplicate content is not a good thing, it is not something so terrible either. If you do it intentionally and google finds out, they may suspend your site. But that is an extreme situation and one a normal shop would ever experience. The worst that would probably happen if you had two product not found pages seen as duplicates is that google would disallow one, or both, which is exactly what you would want to happen. So while the code should handle the not found pages, it is almost a non-issue in its affect upon the shop.

Share this post


Link to post
Share on other sites

Hello and sorry for my bad english. I'm a German Member.

 

I've a big problem. I've included the Ultimate_SEO_URLSv22d_10 successfully.

But now, when a customer put a artikle into the shopping card, the artikle is stored and the session is active.

The customer clicked on checkout -> checkout_shipping.php and have to logged in. That's OK.

But after filling form as new customer or logged in with account data -> the site is redirected to shop start site and the customer isn't logged in.

 

When the costumer logged in from "My Account"-site directly, the login works fine. The "My-Account"-site is showing and the customer can buy everything complete to the end of the checkout process.

 

What is the problem? Any idea? I use an SSL-Proxy from my Hoster all-inkl.com.

Without this contrib the webshop works fine. But I doesn't wish roll back the installation.

When I turn off this contrib in admin panel, this problem isn't solved.

 

Please help me. :-)

 

Thanks, atom11

Edited by atom11

Share this post


Link to post
Share on other sites

What is the problem? Any idea? I use an SSL-Proxy from my Hoster all-inkl.com.

Without this contrib the webshop works fine. But I doesn't wish roll back the installation.

When I turn off this contrib in admin panel, this problem isn't solved.

If you turn it off and the problem remains, then the problem isn't with the contribution since it not being used at all in that case. I suggest you leave it turned off and then post in the general forum describing your problem.

Share this post


Link to post
Share on other sites

Hi Everyone

 

Even though my topic doesn't sound like an SEO URL one, it IS directly related ;-)

 

Here it is:

 

I'm implementing Facebook "LIKE" & "SEND", twitter and Linkedin buttons on my mobile app, which is in a subfolder of my catalog

I can't have SEO URL running on my mobile app (using Ajax), I deactivated it in my /mobile folder.

 

However, I want my social buttons there.

These buttons are also present on each product nopn-mobile page, and are dynamically generated with the product ID.

I use the Open Graph protocol and its META tags to provide the product URL, image, etc..

 

My challenge is to retrieve the SEO URL from there to build the correct URLs.

 

- In my main app, my buttons are built with the SEO link

- In my mobile app I use the product_info.php?products_id=xxx method

 

which gives different button counts, because the originating URLs are not the same for FB, TW, and LI and I don't want that.

I want my mobile app to be able to create the same SEO url as my main app

 

Long story short: How to create an SEO tep_href_link from my mobile folder? any attempt to use the SEO class from my subfolder redirects to the non-seo link?

 

I implemented a dirty fix for now, using some str_replace with the URL encode, but I would like something more reliable.

 

Thank you for your input!

Share this post


Link to post
Share on other sites

Long story short: How to create an SEO tep_href_link from my mobile folder? any attempt to use the SEO class from my subfolder redirects to the non-seo link?

 

Should be easy enough.

 

Just use an ajax request to access a file that includes the application_top.php bootstrap.

 

For this example you use GET and pass an array containing the keys page and query where page is the filename like index.php and query is the required querystring like cPath=2.

 

This provides a json response with the key "result" the value of which is bool false on failure or an seo url on success.

 

The file could go in the shop root and look something like: -

 

<?php
 $valid_params = array( 'page' => 1, 'query' => 1 );
 if ( !count ( array_intersect_key ( $_GET, $valid_params ) ) == 2 ) {
echo json_encode ( array( 'result' => false ) );
exit;
 }
 include 'includes/application_top.php';
 $seo_url = tep_href_link( (string)$_GET['page'], (string)$_GET['query'] );
 // add some checks here that the result is valid
 echo json_encode ( array( 'result' => $seo_url ) );
 include DIR_WS_INCLUDES . 'application_bottom.php';

 

Hope that helps.

Edited by FWR Media

Share this post


Link to post
Share on other sites

If you turn it off and the problem remains, then the problem isn't with the contribution since it not being used at all in that case. I suggest you leave it turned off and then post in the general forum describing your problem.

 

 

Hi Jack_mcs,

 

thanks for your answer.

I replaced the following files from my backup now:

root/shop/.htaccess

root/shop/includes/application_top.php

root/shop/functions/html_output.php

 

And now, the order process works fine.

 

The webshop located in the subfolder 'shop'. In the .htaccess file the path is 'RewriteBase /shop/'.

 

In the /includes/configure.php I wrote the following pathes:

define('HTTP_SERVER', 'http://www.anyurl.de'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://ssl-account.com/anyurl.de'); // eg, https://localhost - should not be empty for productive servers

 

ssl-account.com is the SSL-Proxy from Hoster.

Could this be the problem?

 

Thanks, atom11

Share this post


Link to post
Share on other sites

Hi Jack_mcs,

 

thanks for your answer.

I replaced the following files from my backup now:

root/shop/.htaccess

root/shop/includes/application_top.php

root/shop/functions/html_output.php

 

And now, the order process works fine.

 

The webshop located in the subfolder 'shop'. In the .htaccess file the path is 'RewriteBase /shop/'.

 

In the /includes/configure.php I wrote the following pathes:

define('HTTP_SERVER', 'http://www.anyurl.de'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://ssl-account.com/anyurl.de'); // eg, https://localhost - should not be empty for productive servers

 

ssl-account.com is the SSL-Proxy from Hoster.

Could this be the problem?

 

Thanks, atom11

I don't understand what the problem is now. You said replacing the files fixed it? Is the problem different than before? If you replaced the above files with original code that didn't have the changes made by this contribution, then it won't work. Please decribe what problem you are having and if it only happens when this contribution is enabled.

Share this post


Link to post
Share on other sites

I don't understand what the problem is now. You said replacing the files fixed it? Is the problem different than before? If you replaced the above files with original code that didn't have the changes made by this contribution, then it won't work. Please decribe what problem you are having and if it only happens when this contribution is enabled.

 

Sorry, my english isn't good. I try to describe the problem again.

 

When the SEO Contrib is active, the costumer can't login from shopping cart. The login site is showing, then the customer filled out the login form.

Then clicked the button 'Login' and isn't logged in. The shop start page is now showing. The shopping cart contains all items, but the costmer isn't logged in.

 

The customer can logged in only by clicking on the 'My Account' Button. That's worked. But the shopping cart is empty. The login from shopping cart by clicking the button 'Checkout' doesn't work.

 

Now, I replaced the files from backup before the Contrib was installed.

The Ultimate SEO is now complete removed from frontend and the login problem from shopping cart is fixed yet.

 

Is it better now to understand me? I hope. :)

Share this post


Link to post
Share on other sites

Sorry, my english isn't good. I try to describe the problem again.

 

When the SEO Contrib is active, the costumer can't login from shopping cart. The login site is showing, then the customer filled out the login form.

Then clicked the button 'Login' and isn't logged in. The shop start page is now showing. The shopping cart contains all items, but the costmer isn't logged in.

 

The customer can logged in only by clicking on the 'My Account' Button. That's worked. But the shopping cart is empty. The login from shopping cart by clicking the button 'Checkout' doesn't work.

 

Now, I replaced the files from backup before the Contrib was installed.

The Ultimate SEO is now complete removed from frontend and the login problem from shopping cart is fixed yet.

 

Is it better now to understand me? I hope. :)

It might be that the problem is in the configure file. You should check this thread to be sure yours is correct. It might also be that your .htaccess file is not setup correctly. But if the category and product links work when the contribution is installed, that is probably not the case. The last reason, that I can think of, is that the links in your shop are not coded using the oscommerce link function. This is a common problem with templates so, if you are using one, that would be something to check.

Share this post


Link to post
Share on other sites

Hi All,

 

I'm running latest version of osCommerce Online Merchant and after installing this contribution I am now experiencing this error. I followed all steps as per instructions and added/amended files as necessary.

 

Fatal error: Call to undefined function mb_convert_case() in /home/replace/public_html/catalog/includes/classes/seo.class.php on line 1814

 

Thank you for your help.

m.

Share this post


Link to post
Share on other sites

I'm running latest version of osCommerce Online Merchant and after installing this contribution I am now experiencing this error. I followed all steps as per instructions and added/amended files as necessary.

 

Fatal error: Call to undefined function mb_convert_case() in /home/replace/public_html/catalog/includes/classes/seo.class.php on line 1814

Are you sure you are using version of v 2.2d_11? That function was only used is earlier versions.

Share this post


Link to post
Share on other sites

I hope this is the correct place to post this question. If this belongs in the IPU support thread please let me know.

I am in the midst of moving from a php3/mysql3 environment to a php5/mysql5 environment and slowly working out the gremlins. As part of the move I've changed from seoClass Chemos 2.1original to 2.2d_11. Everything is working great and fantastic with one minor tweak I would like to sort.

 

With Information Pages Unlimited, on the old server/seoclass, if I put this code in the Title line:

 

<img src="/images/icons/video_sm.gif" border="0" /> How To: Video

 

The icon and link worked fine, the seoclass ignored what was between < and >, and the http link showed as http://www.zzz.com/how-to-video-i-1.html

 

With the new server/seoclass, if I do the same, the http link shows as http://www.zzz.com/img-srcimagesiconsvideosmgif-border0-how-to-video-i-1.html

 

I guess my question is if this is a seoclass thing or an IPU thing, and would you know of a solution or where in the code I should experiment.

Thanks in advance.

Dave


-Dave

Share this post


Link to post
Share on other sites

Hi Friends,

Please I need your help.

I can use in the URL the "product model" instead of "product ID"?

Example:

www.domain.com/product-name-model78.html

instead of

www.domain.com/product-name-p-24.html

 

Sorry for my bad English.

Thanks in advance

Sergio B.

Share this post


Link to post
Share on other sites

I hope this is the correct place to post this question. If this belongs in the IPU support thread please let me know.

With Information Pages Unlimited, on the old server/seoclass, if I put this code in the Title line:

 

<img src="/images/icons/video_sm.gif" border="0" /> How To: Video

 

The icon and link worked fine, the seoclass ignored what was between < and >, and the http link showed as http://www.zzz.com/how-to-video-i-1.html

 

With the new server/seoclass, if I do the same, the http link shows as http://www.zzz.com/img-srcimagesiconsvideosmgif-border0-how-to-video-i-1.html

 

I guess my question is if this is a seoclass thing or an IPU thing, and would you know of a solution or where in the code I should experiment.

The code you posted isn't a link so there's no way to see if there is a problem with it. But this contribution works fine with that contribution so I suspect you have an incorrectly formed link. When creating links in oscommerce to places within oscommerce, you need to use the tep_href_link function. You should also use the tep_image function for the image. While the latter is not required, it can prevent errors within the code. If the link is to an external site, then you don't use those functions and this contribution does not come into play.

Share this post


Link to post
Share on other sites

Hi Friends,

Please I need your help.

I can use in the URL the "product model" instead of "product ID"?

Example:

www.domain.com/product-name-model78.html

instead of

www.domain.com/product-name-p-24.html

I'm sorry but I don't understand the question. What is the real url you are wanting to display?

Share this post


Link to post
Share on other sites

Hi,

 

I am using OSC version 2.2 MS2 and have tried to implement the SEO URL v22d_11. The module seemed to go in ok - URLs working as expected with no session IDs showing, however I am having trouble with processing an order through to the order_success.php page (and thereby triggering an email to the customer and an entry in the database). The process works OK until the customer is redirected back from the payment gateway. At this point they are directed to the checkout_payment.php (still logged in correctly) and do not get to the order_success.php page. If I back out all the changes for this module it works OK so it must be a setting, but I'm lost on it. I've searched this thread and can't find this exact issue (only the redirect back to the login.php page not logged in).

 

I'd really like to use this module so if someone could help me I'd be very appreciative. I believe my configure file is OK, but I've posted it below in case.

 

<?php

define('HTTP_SERVER', 'http://www.thelittlewhitebox.co.nz');

define('HTTPS_SERVER', 'https://www.thelittlewhitebox.co.nz');

define('ENABLE_SSL', true);

define('HTTP_COOKIE_DOMAIN', 'thelittlewhitebox.co.nz');

define('HTTPS_COOKIE_DOMAIN', 'thelittlewhitebox.co.nz');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

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', 'pub/');

define('DIR_FS_CATALOG', '/**/public_html/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', '**');

define('DB_SERVER_PASSWORD', '**');

define('DB_DATABASE', '**');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

Share this post


Link to post
Share on other sites

I am using OSC version 2.2 MS2 and have tried to implement the SEO URL v22d_11. The module seemed to go in ok - URLs working as expected with no session IDs showing, however I am having trouble with processing an order through to the order_success.php page (and thereby triggering an email to the customer and an entry in the database). The process works OK until the customer is redirected back from the payment gateway. At this point they are directed to the checkout_payment.php (still logged in correctly) and do not get to the order_success.php page. If I back out all the changes for this module it works OK so it must be a setting, but I'm lost on it. I've searched this thread and can't find this exact issue (only the redirect back to the login.php page not logged in).

This contribution doesn't make any changes to the checkout pages so it is only reacting to something in your shop. My guess is that the return url is incorrect for your payment module. You might want to check in its support thread or its documentation.

Share this post


Link to post
Share on other sites

Should be easy enough.

 

Just use an ajax request to access a file that includes the application_top.php bootstrap.

 

For this example you use GET and pass an array containing the keys page and query where page is the filename like index.php and query is the required querystring like cPath=2.

 

This provides a json response with the key "result" the value of which is bool false on failure or an seo url on success.

 

The file could go in the shop root and look something like: -

 

<?php
 $valid_params = array( 'page' => 1, 'query' => 1 );
 if ( !count ( array_intersect_key ( $_GET, $valid_params ) ) == 2 ) {
echo json_encode ( array( 'result' => false ) );
exit;
 }
 include 'includes/application_top.php';
 $seo_url = tep_href_link( (string)$_GET['page'], (string)$_GET['query'] );
 // add some checks here that the result is valid
 echo json_encode ( array( 'result' => $seo_url ) );
 include DIR_WS_INCLUDES . 'application_bottom.php';

 

Hope that helps.

 

No luck with this.

I implemented an ajax updater with prototype, where the external file actually renders the entire buttons portion.

The problem now is that these buttons require external js files from twitter, facebook and linkedin to be rendered.

Nomatter where I place the call to the .js scripts ( in the ajax target file or in my originating file), itdoesn't work...

 

So I have to stick for now to my not-so-elegant solution, which seems to be working just fine.

 

To see this Mobile site: The Frenchy Bee

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

×