Destoon首页怎么调用内容里的信息及图片
第一步: 打开 /include/tag.func.php 找到 isset($showpage) or $showpage = 0; 这句。 在其上行或其下行添上 (isset($showcontent) && $MODULE[$moduleid][‘module’]==’article’) or $showco
ntent = 0; 找到 $query = “SELEC
t “.$fields.” FROM “.$table.” WHER
e “.$condition.$order.” LIMIT “.$offset.”,”.$pagesize;这句。 第二步: 替换成: if($showcontent){ $query = “SELEC
t t.”.preg_replace(‘/,\s*/im’,’t.’,$fields).”,c.`content` FROM “.$table.” as t left join “.preg_replac
e(‘/(\d+)$/’,’data_$1′,$table).” as c on t.itemid=c.itemid WHER
e “.$condition.$order.” LIMIT “.$offset.”,”.$pagesize;}else{ $query = “SELECT “.$fields.” FROM “.$table.” WHER
e “.$condition.$order.” LIMIT “.$offset.”,”.$pagesize;} 第三步: <!–{php $tags=tag(“moduleid=”.$m[‘moduleid’].”&co
ndition=status=3&length=40&showco
ntent=1&showcat=1&pagesize=20&order=addtime desc&template=null”);}–> 添加: showco
ntent=1 第四步: <ul>{loop $tags $i $t}<li><a title=”{$t[title]}” src=http://www.destoon.info/skin/gw/image/nopic.gif style=”{$t[css]}”>{$t[title]}<br/>{$t[content]}</a></li>{/loop}</ul> {$t[content]} 就能调出来了