这样不对,提示:抱歉,您尚未正确指定要查看的文章ID
修改文件为/source/functionfunction_core.php
elseif($type == 'portal_article') {
list(,,, $id, $page, $extra) = func_get_args();
$ffid = DB::result_first("SELECT catid FROM ".DB::table('portal_article_title')." WHERE aid = '$id'");
if( DB::result_first("SELECT upid FROM ".DB::table('portal_category')." WHERE catid = '$ffid'") == '0'){
$yy = '';
}else{
$yy = DB::result_first("SELECT upid FROM ".DB::table('portal_category')." WHERE catid = '$ffid'");
}
$r = array(
'{lujing}' => !isset($yy)?DB::result_first("SELECT foldername FROM ".DB::table('portal_category')." WHERE catid = '$ffid'")B::result_first("SELECT foldername FROM ".DB::table('portal_category')." WHERE catid = '$yy'").'/'.DB::result_first("SELECT foldername FROM ".DB::table('portal_category')." WHERE catid = '$ffid'"),
'{id}' => $id,
'{page}' => $page ? $page : 1,
);
后台伪静态设置为:{lujing}/article-{id}-{page}.html
伪静态规则为:RewriteRule ^([a-z]+[a-z0-9_]*)/([a-z]+[a-z0-9_]*)/article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$3&page=$4&%1 |