destoon如何調用圖文新聞:
{if $DT[page_news]}
<!--{tag("moduleid=21&length=16&condition=status=3 and level=3 and thumb<>''&pagesize=1&target=_blank&order=addtime desc&width=100&height=80&cols=1&template=thumb-table")}-->
{/if}
<!--{php $tags=tag("moduleid=7&condition=status=3 and thumb!=''&length=30 and level>0&areaid=$cityid&pagesize=1&datetype=2&order=addtime desc&target=_blank&template=null");}-->
{loop $tags $i $t} <a href="{$t[linkurl]}" target="_blank"><span><img src="{$t[thumb]}" width="96" height="66" alt="" ></span> <strong>{$t[title]}</strong> <small>{dsubst($t[introduce],76)}... <em>[詳細]</em></small> </a> {/loop} </div>
怎么讓destoon切換城市后logo旁邊顯示地區(qū)名稱:
也就是我們進入網(wǎng)站后默認的是總站,當我們開啟城市分站的時候,當點擊選擇的分站時候,在logo的旁邊可以看到你選的城市分站,當選擇全國的時候在logo旁邊什么也不顯示。
打開模板文件的header.htm的文件,把如下代碼:
{if $cityid} <span id="destoon_city">{$city_name}</span>{/if}
放到logo的圖片旁邊即可,樣式可以根據(jù)自己的需要修改一下.
怎樣去掉destoon資訊內容頁keywords關鍵字自帶的文章標題:
將:\module\article目錄下的article.class.php文件中的
$keyword = $item['title'].','.str_replac(' ', ',', $item['tag']).','.strip_tags(cat_pos($item['catid'], ','));
$keyword = str_replac("//", '', addslashes($keyword));
改為:
$keyword = str_replac(' ', ',', $item['tag']);
$keyword = str_replac("//", '', addslashes($keyword));
destoon調用discuz論壇帶圖片帖子的方法:
有時候我們需要調用論壇的帖子,但是圖片改怎么調用待用出來呢,下面說一種方法,可以調用discuz論壇的圖片的帖子的方法:
標簽代碼如下:
<!--{php $tags=tag("table=pre_forum_thread i,pre_forum_threadimage t&prefix=&condition=i.tid=t.tid&length=36&order=i.tid desc&pagesize=9&target=_blank&template=null");}-->
{loop $tags $t}
<A href="bbs/forum.php?mod=viewthread&tid={$t[tid]}" target=_blank>{$t[subject]}</A> <br />
<A href="bbs/forum.php?mod=viewthread&tid={$t[tid]}" target=_blank><img src="bbs/data/attachment/forum/{$t[attachment]}" width="50" height="50" /></A>
{/loop}
調用論壇新帖子的方法:
標簽如下:
<!--{php $tags=tag("table=pre_forum_thread&prefix=&length=36&order=tid desc&pagesize=9&target=_blank&template=null");}-->
{loop $tags $t}
<A href="bbs/forum.php?mod=viewthread&tid={$t[tid]}" target=_blank>{$t[subject]}</A>
{/loop}
destoon調用企業(yè)會員公司形象圖片的方法:
<!--{php $tags=tag("table=destoon_member m,destoon_company c&prefix=&condition=m.userid=c.userid and m.username='$username'&template=null")}-->
{loop $tags $t}
<img src="{imgurl($t[thumb], 1)}" />
{/loop}
如何修改destoon會員公司的偽靜態(tài)中的com目錄:
destoon企業(yè)網(wǎng)站的偽靜態(tài)默認是com目錄,要修改的話,先修改include目錄下global.func.php文件中找到$URL = DT_URL.’com/’.$username.’/';將com修改為你要修改的目錄.
最后修改偽靜態(tài)的文件,apache和iis的都一樣,打開將/com/替換成你要修改的目錄名稱就可以了.
{if $DT[page_news]}
<!--{tag("moduleid=21&length=16&condition=status=3 and level=3 and thumb<>''&pagesize=1&target=_blank&order=addtime desc&width=100&height=80&cols=1&template=thumb-table")}-->
{/if}
<!--{php $tags=tag("moduleid=7&condition=status=3 and thumb!=''&length=30 and level>0&areaid=$cityid&pagesize=1&datetype=2&order=addtime desc&target=_blank&template=null");}-->
{loop $tags $i $t} <a href="{$t[linkurl]}" target="_blank"><span><img src="{$t[thumb]}" width="96" height="66" alt="" ></span> <strong>{$t[title]}</strong> <small>{dsubst($t[introduce],76)}... <em>[詳細]</em></small> </a> {/loop} </div>
怎么讓destoon切換城市后logo旁邊顯示地區(qū)名稱:
也就是我們進入網(wǎng)站后默認的是總站,當我們開啟城市分站的時候,當點擊選擇的分站時候,在logo的旁邊可以看到你選的城市分站,當選擇全國的時候在logo旁邊什么也不顯示。
打開模板文件的header.htm的文件,把如下代碼:
{if $cityid} <span id="destoon_city">{$city_name}</span>{/if}
放到logo的圖片旁邊即可,樣式可以根據(jù)自己的需要修改一下.
怎樣去掉destoon資訊內容頁keywords關鍵字自帶的文章標題:
將:\module\article目錄下的article.class.php文件中的
$keyword = $item['title'].','.str_replac(' ', ',', $item['tag']).','.strip_tags(cat_pos($item['catid'], ','));
$keyword = str_replac("//", '', addslashes($keyword));
改為:
$keyword = str_replac(' ', ',', $item['tag']);
$keyword = str_replac("//", '', addslashes($keyword));
destoon調用discuz論壇帶圖片帖子的方法:
有時候我們需要調用論壇的帖子,但是圖片改怎么調用待用出來呢,下面說一種方法,可以調用discuz論壇的圖片的帖子的方法:
標簽代碼如下:
<!--{php $tags=tag("table=pre_forum_thread i,pre_forum_threadimage t&prefix=&condition=i.tid=t.tid&length=36&order=i.tid desc&pagesize=9&target=_blank&template=null");}-->
{loop $tags $t}
<A href="bbs/forum.php?mod=viewthread&tid={$t[tid]}" target=_blank>{$t[subject]}</A> <br />
<A href="bbs/forum.php?mod=viewthread&tid={$t[tid]}" target=_blank><img src="bbs/data/attachment/forum/{$t[attachment]}" width="50" height="50" /></A>
{/loop}
調用論壇新帖子的方法:
標簽如下:
<!--{php $tags=tag("table=pre_forum_thread&prefix=&length=36&order=tid desc&pagesize=9&target=_blank&template=null");}-->
{loop $tags $t}
<A href="bbs/forum.php?mod=viewthread&tid={$t[tid]}" target=_blank>{$t[subject]}</A>
{/loop}
destoon調用企業(yè)會員公司形象圖片的方法:
<!--{php $tags=tag("table=destoon_member m,destoon_company c&prefix=&condition=m.userid=c.userid and m.username='$username'&template=null")}-->
{loop $tags $t}
<img src="{imgurl($t[thumb], 1)}" />
{/loop}
如何修改destoon會員公司的偽靜態(tài)中的com目錄:
destoon企業(yè)網(wǎng)站的偽靜態(tài)默認是com目錄,要修改的話,先修改include目錄下global.func.php文件中找到$URL = DT_URL.’com/’.$username.’/';將com修改為你要修改的目錄.
最后修改偽靜態(tài)的文件,apache和iis的都一樣,打開將/com/替換成你要修改的目錄名稱就可以了.