X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   XC SEO v1.1.0 Released (https://forum.x-cart.com/showthread.php?t=25297)

Pantalonas 10-26-2006 08:08 AM

Re: XC SEO v1.1.0 Released
 
Quote:

Originally Posted by intel352
Nice catch jason, I'll have to doublecheck against 4.1.3 (argh, 4.1.3 had a number of changes, lol...)

EDIT: btw, the point of that edit, is that the get_language file is NOT redirecting of the previous page had a .html extension. Which means it won't redirect back to an SEO'd url... :-\ Really I need a better workaround that what I implemented, just haven't come up with one yet


Hello all,

I do have the same problem. But I do use a multilingual site.
As I'm not a coder I was hoping that you would have a solution :-)

Thanks anyway.

intel352 10-26-2006 11:22 AM

Re: XC SEO v1.1.0 Released
 
4.1.3, get_language.php modification

Find:

Code:

if (
        ($current_area == "C" || $current_area == "B") &&
        !empty($HTTP_GET_VARS["sl"]) &&
        !defined('IS_ROBOT') &&
        !preg_match('/\.html?($|\?)|\/$/s', $l_redirect)
) {
        func_header_location($l_redirect);
}


Replace With:
Code:

if (($current_area == "C" || $current_area == "B") && !empty($HTTP_GET_VARS["sl"]) && !defined('IS_ROBOT')) {

        ############################################################
        # X-CART-SEO Mod :: http://code.google.com/p/x-cart-seo/
        ############################################################
        if (!empty($active_modules["XC_SEO"])) {
                func_header_location($l_redirect);
        }else{
                if (!preg_match('!(\.htm(l)?|/$)!',$_tmp["path"])) {
                        func_header_location($l_redirect);
                }
        }
        # End SEO
}


Pantalonas 10-26-2006 11:40 AM

Re: XC SEO v1.1.0 Released
 
Thank you Intel!

ezi designs 10-29-2006 10:02 AM

Re: XC SEO v1.1.0 Released
 
Can i ask if i should consider incorperating this in my newly purchased x-cart.

Viejo 10-29-2006 10:10 AM

Re: XC SEO v1.1.0 Released
 
My opinion: Absolutely. Especially if you don't want to change urls in your cart after they have been indexed by the search engines.

ezi designs 10-29-2006 12:35 PM

Re: XC SEO v1.1.0 Released
 
Just downloaded this file and unzipped it, uploaded it but the thing is where should it be enabled. I am assuming its in modules but i cannot see it.

So to give a beeter understanding of how i uploaded it:

catalog/.htaccess into = /public_html/mystore/catalog/
modules/XC_SEO = /public_html/mystore/modules/ *
sql/xcseo.sql,xcseo_remove.sql,xcseo_lng_US.sql = /public_html/mystore/sql/
x-cart-seo docs = /public_html/mystore/ *
.htaccess = /public_html/mystore/
robots.txt = /public_html/mystore/
secure.htaccess = /public_html/mystore/

The two with a red * i am unsure if this is correct or whether the files in these folders are to be entered.

As it stands i just put the whole XC_SEO folder into /public_html/mystore/modules/ as i did with the x-cart-seo docs into the /public_html/mystore/


Thanks again if someone can help[me out here

Richard

intel352 10-29-2006 05:09 PM

Re: XC SEO v1.1.0 Released
 
ezi, you've uploaded the files properly, now you need to execute the SQL commands as noted in the docs (look in the xcseo docs folder, the install file for your version).

additionally there are a few files you need to edit, as noted in the docs

ezi designs 10-30-2006 02:35 AM

Re: XC SEO v1.1.0 Released
 
I have followed the install instruction to INSTALL 4.1.3 under x-cart-seo docs but when doing so i receive the follow error:

This is what i entered into the 'Apply SQL patch' in admin:

Refer to the following files for SQL commands:
sql/xcseo.sql
sql/xcseo_lng_US.sql


INVALID SQL: 1064: You have an error in your syntax; check the manual that corresponds to your MYSQL server version for the right syntax to use near ▒Refer to the following files for SQL commands: sql/xcseo.sql sql/xcseo_lng_US.▓at line 1
SQL QUERY FAILURE: Refer to the following files for SQL commands: sql/xcseo.sql sql/xcseo_lng_US.sql

Any advice will be most welcome,

Thanks

Richard

intel352 10-30-2006 06:28 AM

Re: XC SEO v1.1.0 Released
 
Wow, 2nd person to do this in this thread...

you need to open the following files for SQL commands:
sql/xcseo.sql
sql/xcseo_lng_US.sql

consolep 10-30-2006 11:00 AM

Re: XC SEO v1.1.0 Released
 
Awesome mod ! this is truly THE best mod for xcart out. Can't wait for the catagory rewrites that will make this mod even greater :)

Keep up the good work intel :)

Heres the site im working on: http://www.consoleasia.com . Great Design, works great with clean urls :)


All times are GMT -8. The time now is 12:54 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.