View Single Post
  #77  
Old 10-25-2006, 03:31 PM
 
Scott DeToffol Scott DeToffol is offline
 

Senior Member
  
Join Date: Apr 2005
Location: Minneapolis, MN
Posts: 174
 

Default Re: XC SEO v1.1.0 Released

Code:
if ( !defined('XCART_SESSION_START') ) { header("Location: ../../"); die("Access denied"); } ############################################################ # 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 set_time_limit(0);
Code:
$product['price'] = $tmp['taxed_price']; ############################################################ # X-CART-SEO Mod :: http://code.google.com/p/x-cart-seo/ ############################################################ # The following has been commented out and replaced # # # Post string # $post = substr(str_replace(array("\t","\r","\n"), array(" ","",""), $product['product']), 0, 80)."\t". # $product['descr']."\t". # $http_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 = substr(str_replace(array("\t","\r","\n"), array(" ","",""), $product['product']), 0, 80)."\t". $product['descr']."\t". $http_location.constant("DIR_CUSTOMER")."/".$prod_url."\t"; }else{ $post = substr(str_replace(array("\t","\r","\n"), array(" ","",""), $product['product']), 0, 80)."\t". $product['descr']."\t". $http_location.constant("DIR_CUSTOMER")."/product.php?productid=".$product['productid']."\t"; } $post .= $tmbn."\t". # End SEO $product['productid']."\t".
__________________
Scott DeToffol
Online Marketing and E-Commerce Consulting in Minneapolis

X-Cart Gold Version 4.1.9 for www.sundogtrading.com
X-Cart Pro Version 4.2.3 for www.heavyglare.com
Reply With Quote