{dede:vote id='1' lineheight='22'
tablewidth='100%' titlebgcolor='#EDEDE2'
titlebackground='' tablebgcolor='#FFFFFF'}
{/dede:vote}
11、站点新闻
{dede:mynews row='1' titlelen='24'}
[field:title/]([field:writer/]|[field:senddate function='GetDate("@me")'/])
<hr size=1>
[field:body /]
{/dede:mynews}
12、任何系统页面调用会员积分排行
{dede:sql sql="Select id,userid,uname,scores From dede_member order by scores desc limit 0,10"}
<dd>
<span class="name">
<a href='[field:global name='cfg_cmspath'/]/member/?[field:userid/]/'>[field:uname/]</a>
</span>
<span class="jifen">积分[field:scores/]</span>
</dd>
{/dede:sql}
13、搜索表单调用标签
<form action="{dede:global name='cfg_phpurl'/}/search.php" name="formsearch">
<input type="hidden" name="kwtype" value="1" />
<input name="keyword" id="keyword" type="text" class="searchtxt" />
<select name="searchtype" id="searchtype">
<option value="titlekeyword" selected>智能模糊搜索</option>
<option value="title">仅搜索标题</option>
</select>
<input type="image" src=http://www.dede58.com/"{dede:field name='templeturl'/}/images/topsearch_submit.gif" />
</form>
14、企业调用
{dede:sql sql="SELECT m.ID,m.type,m.userid,m.matt,c.id,c.comname
FROM dede_member m
left join dede_member_cominfo c on m.ID = c.id
where m.type = 1 and m.matt = 1
LIMIT 0 , 10"}
<dd><span class="name"><a href='[field:global name='cfg_cmspath'/]/member/?[field:userid/]/'>[field:comname/]</a>
</span></dd>
{/dede:sql}
15、专题调用
{dede:specart typeid='' titlelen='28' row='10' col='1'}
<a href='[field:arcurl/]'>[field:title/]</a><br>
{/dede:specart}
或:
{dede:arclist typeid='' type='spec' titlelen='28' row='10' col='1'}
<a href='[field:arcurl/]'>[field:title/]</a><br>
{/dede:arclist}
或:
{dede:arclist row=10 orderby=rand type='spec.'}
<li><a href=http://www.dede58.com/"[field:filename function='str_replace("index.html","",@me)'/]" target="_blank"><STRONG>[field:title function=' ( strlen("@me")>16 ? cn_substr("@me",16): "@me" ) '/]
</STRONG></a></li>
{/dede:arclist}
16、问答系统调用
{dede:ask row='10'}
<li>
<span class="gpclass">[<a href=http://www.dede58.com/"[field:typeurl/]">[field:tidname/]</a>]</span>
<span class="gptlink"><a href=http://www.dede58.com/"[field:url/]">[field:title/]</a></span>
</li>
{/dede:ask}
17、一种很酷的时间效果
[field:pubdate runphp="yes"]
if((time()-@me)<(60*60*24)){@me='<font color="#ff6600">'.strftime("%H:%M",@me).'</FONT>';}
else {@me=strftime("%m-%d",@me);}
[/field:pubdate]
18、加个百度搜索本篇文章的SEO小技巧