Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

XC SEO Lite v1.0.0 Released

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 09-20-2006, 09:32 AM
 
intel352 intel352 is offline
 

X-Wizard
  
Join Date: Dec 2005
Posts: 1,071
 

Default XC SEO Lite v1.0.6 Released

XC SEO v1.1.0 has been released, new thread has been opened.

XC SEO v1.1.0

XC SEO Lite v1.0.6 will stay attached to this thread for historical purposes.

================================================== ============================
The XC SEO team is proud to announce the release of XC SEO Lite version 1.0.6.
XC SEO Lite is completely free, and licensed under the GNU GPL 2 license.
All code is versioned and available from our repository at:
http://code.google.com/p/x-cart-seo/

A zip of the release is available at the bottom of this post.
This release is for X-Cart 4.0.x and 4.1.x

==============================
Sites using XC SEO Lite:==============================


When using the provided .htaccess file, please be aware of the RewriteBase directive, and change as needed.
Additionally, the catalog/ directory has a .htaccess file for redirecting catalog-generated urls, edit this as well if needed


EDIT: Replaced 1.0.5 release with 1.0.6, feature add

A .htaccess file is included, it is recommended that you open the .htaccess file and COPY the contents into your existing .htaccess file.
Additionally, a default robots.txt has been included. The robots.txt file should be used with discretion and modified as needed for your own website.

Any incoming product/manufacturer/category/pages links are properly 301 redirected to their html alias, so any existing pagerank should be transferred properly.

-------------
This project was started around April of 2006, grew into a sizeable modification that had several bugs due to the complexity of the code, and then lay dormant until recently. Xuru sparked new interest in the project by releasing a copy of the original XC SEO code with a few fixes included. Then geckoday released a stripped down and rewritten version of the XC SEO mod.

Due to the issues that still existed with the original code, I decided to use geckoday's rewritten code as a base. After several feature additions, and after testing the code on a production website with positive results, I'm proud to announce the first public release of XC SEO Lite.
-------------

XC SEO Lite functions similarly to DSEFU, in that it requires 0 template edits, and writes all Product/Manufacturer/Category/Static Page urls to .html page aliases: sitename.com/categoryname.html

In the near future, I intend to release an XC SEO Advanced version that will function similar to the original XC SEO release (and similar to CDSEO), with the ability to rewrite urls using categories as folders: sitename.com/category1/category2/productname.html

--------------

Quote:
CHANGELOG

XC SEO Lite 1.0.6 (rev 24 - September 22, 2006)
====================================

* Fixed/updated all Install documentation as needed, fixed Froogle portion of 4.1.3 install
* Updated seo.php to 301-redirect bots to remove X-Cart session ids from the url

XC SEO Lite 1.0.5 (rev 23 - September 21, 2006)
====================================

* Cleaned up disallowed urls in robots.txt
* Added support for product urls to include "cat" & "page", for products associated with multiple categories.
* Added redirect code for product + cat + page urls for bots.
* Added comments to RewriteBase directive

XC SEO Lite 1.0.4 (rev 15 - September 21, 2006)
====================================

* Bugfix: outputfilter.seo.php: Had used stripos instead of strpos (stripos is a PHP 5 function)

XC SEO Lite 1.0.3 (rev 14 - September 21, 2006)
====================================

* Bugfix - .htaccess: Added missing rules to htaccess file for Manufacturer sort ability
* Bugfix - seo.php: Removed unneeded require statement
* Added catalog/.htaccess file for rewriting catalog urls to the x-cart dynamic urls
* Moved some common code into a new function in the outputfilter
* Added auto-insertion of the TITLE tag into href structures
* Added rewrite support for Static Pages

XC SEO Lite 1.0.2 (rev 10 - September 20, 2006)
====================================

* Bugfix - seo.php: Moved $seo_qs inside IF statement so it is not processed needlessly (causes errors otherwise)
* Added Install docs for 4.1.3 - Modification instructions changed for Froogle in X-Cart 4.1.3
* Added support for IS_ROBOT define in X-Cart, so that Bots are unable to see/visit Printable or Sorted urls

XC SEO Lite 1.0.0 (rev 6 - September 20, 2006)
====================================

* Replaced original XC SEO code with geckoday's rewritten code (rewrite of outputfilter & htaccess, he had dropped all other code/files)
* Altered code to replace accented characters with non-accented equivalent
* Added support for rewriting 'printable=Y' urls
* Added support for rewriting 'sort' & 'sort_direction' urls
* Added seo.php to rewrite/redirect category/product/manufacturer urls to new HTML alias
* Added ability to inject user-specified keyword into urls
* Added IF condition that turns off the mod under HTTPS urls
* Added conditional support for SEO mod in Froogle module
* Added default robots.txt
Attached Files
File Type: zip xc-seo-lite-v1.0.6.zip (10.4 KB, 278 views)
__________________
-Jon Langevin
WARNING: Unethical developer - NOT RECOMMENDED
See details here

Last edited by intel352 : 09-27-2006 at 08:19 AM. Reason: Updated for v1.0.6
Reply With Quote
  #2  
Old 09-20-2006, 09:49 AM
  Jayk's Avatar 
Jayk Jayk is offline
 

eXpert
  
Join Date: Nov 2003
Location: Calgary, Alberta, Canada
Posts: 333
 

Default Re: XC SEO Lite v1.0.0 Released

Glad to see the release. Good work guys.

Cheers,
Jason
__________________
X-Cart Gold 4.4.3
Blog: www.flashinthepan.ca
Reply With Quote
  #3  
Old 09-20-2006, 10:00 AM
 
intel352 intel352 is offline
 

X-Wizard
  
Join Date: Dec 2005
Posts: 1,071
 

Default Re: XC SEO Lite v1.0.0 Released

Thanks

An additional note, if users allow search engines to visit the Printable & Sort urls, there may be penalization for duplicate content. That fact is true whether you have XC SEO installed or not.

If users want to avoid any possibility of duplicate content, please disable the Printable option in X-Cart, and disable Sorting.
__________________
-Jon Langevin
WARNING: Unethical developer - NOT RECOMMENDED
See details here
Reply With Quote
  #4  
Old 09-20-2006, 10:01 AM
 
Jerrad Jerrad is offline
 

X-Adept
  
Join Date: Nov 2004
Location: The Netherlands
Posts: 484
 

Default Re: XC SEO Lite v1.0.0 Released

Thanks for this great mod!
Unfortunatly I'm getting these two error messages...

Code:
Warning: Invalid argument supplied for foreach() in /home/leukstewinkel.nl/public_html/shop/seo.php on line 23 Warning: implode(): Bad arguments. in /home/leukstewinkel.nl/public_html/shop/seo.php on line 26

Any idea what's causing this (besides me...)?
Thanks again!
__________________
X-Cart 4.0.12
Heavy modified with paid, free and forum mods.
PHP 5.2.5 | MYSQL 5.0.51a
Reply With Quote
  #5  
Old 09-20-2006, 10:16 AM
 
intel352 intel352 is offline
 

X-Wizard
  
Join Date: Dec 2005
Posts: 1,071
 

Default Re: XC SEO Lite v1.0.0 Released

Try the following seo.php

I moved a bit of the code inside an IF statement, so that should get rid of the error for you.

EDIT: btw, I apologize for that, and thanks for the catch. I had forgotten that I had disabled error display on my test site. :-X

EDIT 2: Original archive has been replaced with v1.0.1 in the first post, only change is the fix for seo.php
Attached Files
File Type: zip seo_php.zip (763 Bytes, 241 views)
__________________
-Jon Langevin
WARNING: Unethical developer - NOT RECOMMENDED
See details here
Reply With Quote
  #6  
Old 09-20-2006, 10:32 AM
 
Jerrad Jerrad is offline
 

X-Adept
  
Join Date: Nov 2004
Location: The Netherlands
Posts: 484
 

Default Re: XC SEO Lite v1.0.0 Released

Thanks intel, that did it!
Mod works great now - thanks again!

I only have some questions abot the robots.txt...

My store is in the directory /shop
Should I change the text as below?

User-agent: *
Disallow: /shop/cgi-bin/
Disallow: /shop/*?
Disallow: /shop/catalog/
Disallow: /shop/search.php
Disallow: /shop/cart.php
etc. etc.

And will the User-agent: * do for all the bots or is it better to go sure and do
several 'disallow listings' for the major searchbots (like google and msn)?

And last question...
Is it possible with the robots.txt to stop search engines to visit the Printable & Sort urls ?

Thanks again!
__________________
X-Cart 4.0.12
Heavy modified with paid, free and forum mods.
PHP 5.2.5 | MYSQL 5.0.51a
Reply With Quote
  #7  
Old 09-20-2006, 10:35 AM
 
intel352 intel352 is offline
 

X-Wizard
  
Join Date: Dec 2005
Posts: 1,071
 

Default Re: XC SEO Lite v1.0.0 Released

The point of specifying individual bots is only to customize the Disallow rules per robot, so you should customize the robots.txt as you feel best

Additionally, regarding the subfolder location of your site, you will need to place the robots.txt in your site root, and then prepend the /shop path, as you already mentioned.

Here's a couple of helpful URLs regarding robots.txt:
http://www.freefind.com/library/howto/robots/
http://javascriptkit.com/howto/robots.shtml
__________________
-Jon Langevin
WARNING: Unethical developer - NOT RECOMMENDED
See details here
Reply With Quote
  #8  
Old 09-20-2006, 10:56 AM
 
Jerrad Jerrad is offline
 

X-Adept
  
Join Date: Nov 2004
Location: The Netherlands
Posts: 484
 

Default Re: XC SEO Lite v1.0.0 Released

Thanks for the quick replies, intel!

Any suggestions how to stop searchbots visiting the Printable & Sort urls?
__________________
X-Cart 4.0.12
Heavy modified with paid, free and forum mods.
PHP 5.2.5 | MYSQL 5.0.51a
Reply With Quote
  #9  
Old 09-20-2006, 11:00 AM
  Jayk's Avatar 
Jayk Jayk is offline
 

eXpert
  
Join Date: Nov 2003
Location: Calgary, Alberta, Canada
Posts: 333
 

Default Re: XC SEO Lite v1.0.0 Released

I'm just finishing up editing my .php files and ran into a discrepency in froogle.php.

I'm running 4.1.3 and my froogle.php is a little different than the one in the INSTALL4.1x file. The code in my froogle.php is:

Code:
# Post string $post = func_froogle_convert($product['product'], 80)."\t". func_froogle_convert($product['descr'], 65536)."\t". $http_location.constant("DIR_CUSTOMER")."/product.php?productid=".$product['productid']."\t". $tmbn."\t". $product['productid']."\t". func_froogle_convert($keywords, 65536)."\t". number_format(round($product['price'], 2), 2, ".", "")."\t". (empty($config['Froogle']['froogle_currency']) ? "USD" : $config['Froogle']['froogle_currency'])."\t". func_froogle_convert($config['Froogle']['froogle_payment_accepted'], 65536)."\t". func_froogle_convert($config['Froogle']['froogle_payment_notes'], 65536)."\t". $product['avail']."\t". func_froogle_convert($product['manufacturer'], 80)."\t". $product['manufacturerid']."\t". $product['weight']."\t". date("Y-m-d", time()+(empty($config['Froogle']['froogle_expiration_date']) ? 0.5 : $config['Froogle']['froogle_expiration_date'])*86400);

I'm not sure which code to replace or if the seo code is not quite up to date for 4.1.3.

Thanks,
Jason
__________________
X-Cart Gold 4.4.3
Blog: www.flashinthepan.ca
Reply With Quote
  #10  
Old 09-20-2006, 11:06 AM
 
intel352 intel352 is offline
 

X-Wizard
  
Join Date: Dec 2005
Posts: 1,071
 

Default Re: XC SEO Lite v1.0.0 Released

Here you go:

Code:
----------- Find Code: ----------- # Post string $post = func_froogle_convert($product['product'], 80)."\t". func_froogle_convert($product['descr'], 65536)."\t". $http_location.constant("DIR_CUSTOMER")."/product.php?productid=".$product['productid']."\t". $tmbn."\t". ------------ Replace With ------------ # Post string if ($seo_enable){ # Build SEO URL $prod_url = $seo->_product_filename($product['productid'], $product['product']); $post = func_froogle_convert($product['product'], 80)."\t". func_froogle_convert($product['descr'], 65536)."\t". $http_location.constant("DIR_CUSTOMER")."/".$prod_url."\t"; }else{ $post = func_froogle_convert($product['product'], 80)."\t". func_froogle_convert($product['descr'], 65536)."\t". $http_location.constant("DIR_CUSTOMER")."/product.php?productid=".$product['productid']."\t". } $post .= $tmbn."\t".
__________________
-Jon Langevin
WARNING: Unethical developer - NOT RECOMMENDED
See details here
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020