View Single Post
 
Old 11-01-2007, 08:22 AM
 
lovetree lovetree is offline
 

Member
  
Join Date: Jan 2003
Posts: 13
 

Default Re: XC SEO v1.1.0 Released

Thanks for a guide. Just did a mod/patch and it is working:

If I missed something, please send a comment.

GOAL:
modify XC_SEO to work with a custom variable called "retailcatid".
( i.e., "c-XXXX-r-XXXX.html" something like that for "cat=XXX&retailcat=XXXX")

BACKGROUND:
I pull additional products with this variable. i.e. "cat=XXX&retailcat=XXX"

MODS:

1. .htaccess : ADDED
Code:
RewriteRule ^([^/]*/)?[^/]+-c-([0-9]+)-r-([0-9]+)\.html$ $1home.php?cat=$2&retailcat=$3 [QSA,L] RewriteRule ^([^/]*/)?[^/]+-c-([0-9]+)-r-([0-9]+)-p-([0-9]+)\.html$ $1home.php?cat=$2&retailcat=$3&page=$4 [QSA,L] RewriteRule ^([^/]*/)?[^/]+-(productcode|title|price|orderby)-up-c-([0-9]+)-r-([0-9]+)-p-([0-9]+)\.html$ $1home.php?sort=$2&sort_direction=0&cat=$3&retailcat=$4&page=$5 [QSA,L] RewriteRule ^([^/]*/)?[^/]+-(productcode|title|price|orderby)-down-c-([0-9]+)-r-([0-9]+)-p-([0-9]+)\.html$ $1home.php?sort=$2&sort_direction=1&cat=$3&retailcat=$4&page=$5 [QSA,L]

2. modules/XC_SEO/outputfilter.seo.php

ADDED to class variable declaration
Code:
var $_ret_prefix;
ADDED to function seo_filter()
Code:
$this->_ret_prefix = $this->_name_delim.'r'.$this->_name_delim;

ADDED to function _category_filename
Code:
if ($options['retailcat']) $options['result_title'] .= $this->_ret_prefix.$options['retailcat'];
Reply With Quote