View Single Post
  #220  
Old 04-06-2007, 06:46 AM
  Jayk's Avatar 
Jayk Jayk is offline
 

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

Default Re: XC SEO v1.1.0 Released

Just a minor change in the modification for modules/Froogle/froogle.php for X-Cart 4.1.6:

-----------
Find Code:
-----------
Code:
if ( !defined('XCART_SESSION_START') ) { header("Location: ../../"); die("Access denied"); }

------------
After, Add
------------
Code:
############################################################ # X-CART-SEO Mod :: http://code.google.com/p/x-cart-seo/ ############################################################ if (!empty($active_modules["XC_SEO"])) { include $xcart_dir."/modules/XC_SEO/loader.seo.php"; } # END SEO

This next part is the part with the small change:

-----------
Find Code:
-----------
Code:
# Post string $post = func_froogle_convert($product['product'], 80)."\t". func_froogle_convert($product['descr'], 65536)."\t". $froogle_location.constant("DIR_CUSTOMER")."/product.php?productid=".$product['productid']."\t". $tmbn."\t"

------------
Replace With
------------
Code:
############################################################ # X-CART-SEO Mod :: http://code.google.com/p/x-cart-seo/ ############################################################ # The following has been commented out and replaced # # # Post string # $post = func_froogle_convert($product['product'], 80)."\t". # func_froogle_convert($product['descr'], 65536)."\t". # $froogle_location.constant("DIR_CUSTOMER")."/product.php?productid=".$product['productid']."\t". # $tmbn."\t". # # SEO replacement code begin # # Post string if (!empty($active_modules["XC_SEO"])){ # Build SEO URL $prod_url = $seo->_product_callback(array(false,'','productid='.$product['productid'],'',''), true, $product['product']); $post = func_froogle_convert($product['product'], 80)."\t". func_froogle_convert($product['descr'], 65536)."\t". $froogle_location.constant("DIR_CUSTOMER")."/".$prod_url."\t"; }else{ $post = func_froogle_convert($product['product'], 80)."\t". func_froogle_convert($product['descr'], 65536)."\t". $froogle_location.constant("DIR_CUSTOMER")."/product.php?productid=".$product['productid']."\t"; } $post .= $tmbn."\t". # End SEO

This is working on my store. The changes to includes/func/func.core.php seem to be unnecessary in 4.1.6. The includes/get_language.php file is different in 4.1.6 than it was in 4.1.3. I don't have the language selector enabled on my site, so I can't confirm the effect of not modifying that file.

Hope this helps someone.

Cheers,
Jason
__________________
X-Cart Gold 4.4.3
Blog: www.flashinthepan.ca
Reply With Quote