dedecms图集图片数量获取方法
本文摘要: $imgurls = ;$row =$dsql- getone( Select imgurls From `dede_addonimages` where aid= $aid );$imgurls= $row[imgurls];preg_match_all(/{dede:img (.*){\/dede:img/isU,$imgurls,$wordcount);$count=count($wordcount[1]);return $count;}调用方法(list,
$imgurls = ;
$row =$dsql- getone( Select imgurls From `dede_addonimages` where aid= $aid );

$imgurls= $row[imgurls];

preg_match_all(/{dede:img (.*){\/dede:img/isU,$imgurls,$wordcount);

$count=count($wordcount[1]);
return $count;

}

调用方法(list,aclist都能够调用):

{dede:list pagesize= 12 }

SPAN > {/dede:list}