stevea1234, on May 25 2009, 11:23 AM, said:
To work with links manager 2:
catalog/.htaccess
Find ...
# Links contribution
RewriteRule ^(.*)-links-([0-9]+).html$ links.php?lPath=$2&%{QUERY_STRING}
Change to ...
# Links contribution
RewriteRule ^(.*)-links-([0-9_]+).html$ links.php?lPath=$2&%{QUERY_STRING}
catalog/includes/modules/ultimate_seo_urls5/modules/Usu_links.php
Replace the complete method public function acquire($dependency)
With ..
public function acquire($dependency){
if ( is_numeric(str_replace('_', '', $dependency)) ){
$this->lPath = $dependency;
} else {
return false;
}
if ( false !== strpos($dependency, '_') ){
$single_lpath = (int)ltrim(strrchr($dependency, '_'), '_');
} else {
$single_lpath = (int)$dependency;
}
// Bypass the query if already in the registry
if ( false !== isset(usu::$registry->{$this->dependency}[$this->lPath]) ){
usu::$performance['queries_saved']++;
return true;
}
$placeholders = array( ':lPath', ':languages_id' );
// $values are already type cast
$values = array( $single_lpath, usu::$languages_id );
$this->query = str_replace($placeholders, $values, $this->base_query);
$result = usu::query( $this->query );
$this->query = null;
$row = tep_db_fetch_array( $result );
tep_db_free_result( $result );
if ( false === $row ){
return false;
}
$this->link_text = $this->linkText($row['lName']);
if ( false === isset(usu::$registry->{$this->dependency}) ){
usu::$registry->{$this->dependency} = array();
}
usu::$registry->attach($this->dependency, $this->lPath, $this->getProperties());
} // End method
In future releases this will be called Usu_links2.php and Usu_links.php will be moved to a new directory in the contribution called "old contribution modules"