Remove the `smalltext` summary field; then, for each article query, extract the first 80 characters as the article summary – this approach is suitable for websites where custom summaries are not required.
Supports querying specified data tables.
function:
function user_smalltext($id,$stb,$fontNume = 80,$tabe='news'){
global $empire,$dbtbpre;
$fr=$empire->fetch1("select newstext from {$dbtbpre}ecms_{$tabe}_data_{$stb} where id='{$id}'");
//自定义处理
if($tabe!='news'){
}
return mb_substr( strip_tags($fr['newstext']), 0, $fontNume, 'UTF-8');
}