Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Zeck klausimai

Parašė Impossibru· 2010 Bir. 5 16:06:36
#47

Matos kaip skaitai gerai, 5 komentaras po tuo straipsniu:
News:

Find:

$news_subject = "<a name='news_".$data['news_id']."' id='news_".$data['news_id']."'></a>".stripslashes($data['news_subject']);

Add below:

// Seo mod begin
$seoSubject = stripslashes($data['news_subject']);
// Seo mod end

Find:

$news_cat_image = "<a href='news_cats.php?cat_id=".$data['news_cat_id']."'><img src='".IMAGES_NC.$data['news_cat_image']."' alt='".$data['news_cat_name']."' align='left' style='border:0px;margin-top:3px;margin-right:5px'></a>";

Replace with:

$news_cat_image = "<a href='".seoname($data['news_cat_name'])."-nc".$data['news_cat_id'].".htm'><img src='".IMAGES_NC.$data['news_cat_image']."' alt='".$data['news_cat_name']."' align='left' style='border:0px;margin-top:3px;margin-right:5px'></a>";

Find:

$news_[0] .= $news_info['news_ext'] == "y" ? "<a href='".FUSION_SELF."?readmore=".$news_info['news_id']."'>".$locale['042']."</a> ·\n" : "";

Replace with:

$news_[0] .= $news_info['news_ext'] == "y" ? "<a href='".seoname($seoSubject)."-rn".$news_info['news_id'].".htm'>".$locale['042']."</a> ·\n" : "";

Find:

$news_[0] .= $news_info['news_allow_comments'] ? "<a href='".FUSION_SELF."?readmore=".$news_info['news_id']."'>".$news_info['news_comments'].$locale['043']."</a> ·\n" : "";

Replace with:

$news_[0] .= $news_info['news_allow_comments'] ? "<a href='".seoname($seoSubject)."-rn".$news_info['news_id'].".htm'>".$news_info['news_comments'].$locale['043']."</a> ·\n" : "";

Find:

$news_[$ncolumn] .= $news_info['news_ext'] == "y" ? "<a href='".FUSION_SELF."?readmore=".$news_info['news_id']."'>".$locale['042']."</a> ·\n" : "";

Replace with:

$news_[$ncolumn] .= $news_info['news_ext'] == "y" ? "<a href='".seoname($seoSubject)."-rn".$news_info['news_id'].".htm'>".$locale['042']."</a> ·\n" : "";

Find:

$news_[$ncolumn] .= $news_info['news_allow_comments'] ? "<a href='".FUSION_SELF."?readmore=".$news_info['news_id']."'>".$news_info['news_comments'].$locale['043']."</a> ·\n" : "";

Replace with:

$news_[$ncolumn] .= $news_info['news_allow_comments'] ? "<a href='".seoname($seoSubject)."-rn".$news_info['news_id'].".htm'>".$news_info['news_comments'].$locale['043']."</a> ·\n" : "";

Find:

$ncount++;
} else {

Add below:

$news_info['news_subject'] = $seoSubject;

Find:

$news_cat_image = "<a href='news_cats.php?cat_id=".$data2['news_cat_id']."'><img src='".IMAGES_NC.$data2['news_cat_image']."' alt='".$data2['news_cat_name']."' align='left' style='border:0px;margin-top:3px;margin-right:5px'></a>";

Replace with:

$news_cat_image = "<a href='".seoname($data2['news_cat_name'])."-nc".$data2['news_cat_id'].".htm'><img src='".IMAGES_NC.$data2['news_cat_image']."' alt='".$data2['news_cat_name']."' align='left' style='border:0px;margin-top:3px;margin-right:5px'></a>";

Done!