Parašė Faraonas· 2016 Bal. 7 20:04:38
#1
Sveiki, reikia pagalbos su SEO-Fusion 1.0, niekaip pats nerandu galu. Kai isirasiau Download System mSF 5.0 STD man nuorodu i pati siuntini nesugeneruoja.
Sena nuoroda i siuntini:
downloads.php?cat_id=1&download_id=1
mSF nauja nuoroda i siuntini:
seo_friendly_urls_panel.php kodas
// Find the IDs of Downloads on the current Page
preg_match_all("/'(".$linkpath."|".$siteurl.")?downloads\.php\?(cat_id=[0-9]+)?(\&\;)?download_id=([0-9]+){1}(#c[0-9]+)?'/", $output, $downloads_matches);
// Add them into the Cache of IDs for Downloads
$id_cache['downloads'] = array_unique($downloads_matches[4]);
if (!empty($id_cache['downloads'])) {
$result = dbquery("SELECT download_id, download_title FROM ".DB_DOWNLOADS." WHERE download_id IN(".implode(",", $id_cache['downloads']).")");
while($data = dbarray($result))
{
$data_cache['downloads'][$data['download_id']] = $data['download_title'];
}
}
$pattern = "/'(".$linkpath."|".$siteurl.")?downloads\.php\?(cat_id=[0-9]+)?(\&\;)?download_id=([0-9]+){1}(#c[0-9]+)?'/";
$output = preg_replace_callback($pattern, "replace_downloads", $output);
seo_functions.php kodas
function replace_downloads($matches)
{
global $data_cache;
$replace = "'".$matches[1]."download-".$matches[4]."-".cleanmytext($data_cache['downloads'][$matches[4]]).URL_POSTFIX.(array_key_exists(5, $matches) ? $matches[5] : "")."'";
return $replace;
}
Redagavo Faraonas· 2016 Bal. 7 20:04:10
Parašė Donoras· 2016 Bal. 14 21:04:40
#2
Neprasidėk su šia sistema,nes yra skylė ir yra nesaugi.