我告訴妳啊
關鍵描述調用標簽: <meta name="keywords" content="">
<meta name="description" content="">
--------------------------------------------------------------------------------
模板路徑調用標簽:
--------------------------------------------------------------------------------
網站標題調用標簽:
--------------------------------------------------------------------------------
欄目導航調用標簽: <a href="/">首頁</a></li>
<li><a href='[field:typelink/]' target="_blank">[field:typename/]</a> </li>
--------------------------------------------------------------------------------
指定調用欄目標簽: [field:typename /]
--------------------------------------------------------------------------------
頻道欄目調用標簽: <li><a href='[field:typelink/]'>[field:typename/]</a></li>
--------------------------------------------------------------------------------
友情鏈接調用標簽:
--------------------------------------------------------------------------------
網站版權調用標簽:
--------------------------------------------------------------------------------
網站備案調用標簽:
--------------------------------------------------------------------------------
當前欄目名稱標簽:
--------------------------------------------------------------------------------
當前位置調用標簽:
--------------------------------------------------------------------------------
列表文章調用標簽:
--------------------------------------------------------------------------------
欄目鏈接調用標簽: [field:typelink function='str_replace("a ","a class=ulink ",@me)'/]
--------------------------------------------------------------------------------
作者鏈接調用標簽: [field:writer /]
--------------------------------------------------------------------------------
列表點擊調用標簽: [field:click/]
--------------------------------------------------------------------------------
列表評論調用標簽: [field:postnum/]
--------------------------------------------------------------------------------
查閱全文調用標簽: <a href="[field:arcurl/]">查閱全文...</a>
--------------------------------------------------------------------------------
列表時間調用標簽: [field:pubdate function="GetDateTimeMK(@me)"/]
--------------------------------------------------------------------------------
列表分頁調用標簽:
--------------------------------------------------------------------------------
文章標題調用標簽:
--------------------------------------------------------------------------------
文章來源調用標簽:
--------------------------------------------------------------------------------
文章作者調用標簽:
--------------------------------------------------------------------------------
文章時間調用標簽:
--------------------------------------------------------------------------------
文章Tag調用標簽:
--------------------------------------------------------------------------------
文章點擊調用標簽: <script src="/count.php?aid=&mid=&view=yes" language="javascript"></script>
--------------------------------------------------------------------------------
文章內容調用標簽:
--------------------------------------------------------------------------------
文章分頁調用標簽:
[<a href="/stow.php?arcID=">收藏</a>]
[<a href="/recommend.php?arcID=">推薦</a>]
[<a href="/feedback.php?arcID=">評論</a>]
[<a href="#" onClick="window.print();">打印</a>]
[<a href="#" onClick="window.close();">關閉</a>]
--------------------------------------------------------------------------------
文章頂客次數標簽: <a href="javascript:Digg('digg',);">頂壹下</a>
--------------------------------------------------------------------------------
上壹篇下壹篇標簽:
--------------------------------------------------------------------------------
頭條推薦調用標簽: <dt> [field:textlink/]
<span>[field:description/]……</span> </dt>
--------------------------------------------------------------------------------
最新文章調用標簽: <li>[field:textlink/]</li>
--------------------------------------------------------------------------------
熱關鍵字調用標簽:
--------------------------------------------------------------------------------
最新圖文調用標簽:
<dd><a href="[field:arcurl/]"><img src="[field:picname/]" alt="[field:title/]" ></a><span><a title="[field:title function='htmlspecialchars(@me)'/] " href="[field:arcurl /]">[field:title /]</a></span> </dd>
--------------------------------------------------------------------------------
推薦文檔調用標簽: <li><a title="[field:title function='htmlspecialchars(@me)'/] " href="[field:arcurl /]">[field:title /]</a></li>
--------------------------------------------------------------------------------
隨機推薦調用標簽: <li><a title="[field:title function='htmlspecialchars(@me)'/] " href="[field:arcurl /]">[field:title /]</a></li>
--------------------------------------------------------------------------------
熱點文檔調用標簽: <li><a title="[field:title function='htmlspecialchars(@me)'/] " href="[field:arcurl /]">[field:title /]</a></li>
--------------------------------------------------------------------------------
相關文檔調用標簽: <li><a title="[field:title function='htmlspecialchars(@me)'/] " href="[field:arcurl /]">[field:title /]</a></li>
--------------------------------------------------------------------------------
調用圖片鏈接標記: <a href="[field:arcurl/]"><img src="[field:picname/]" alt="[field:title/]" ></a>
<a href='[field:arcurl /]'>[field:image/]</a>
--------------------------------------------------------------------------------
調用文字鏈接標記: <a href="[field:aucurl/]" title="[field:title/]">[field:title/]</a>
<a title="[field:title function='htmlspecialchars(@me)'/] " href="[field:arcurl /]">[field:title /]</a>
--------------------------------------------------------------------------------
控制字數描述標記: [field:description function="cn_substr(@me,100)"/]...
--------------------------------------------------------------------------------
調用文章tags標記:
--------------------------------------------------------------------------------
文章關鍵字與描述:
--------------------------------------------------------------------------------
欄目介紹:
--------------------------------------------------------------------------------
調用外部htm文件:
--------------------------------------------------------------------------------
搜索文章調用標簽:"的搜索結果 - 搜索" </span>" 的結果
--------------------------------------------------------------------------------
遞增序列號: [field:global name=autoindex/]
--------------------------------------------------------------------------------
列表隔5行加壹行線:
<LI><a href="[field:arcurl /]" title="[field:title function='htmlspecialchars(@me)'/]"
target=_blank>[field:title function="cn_substr(@me,48)"/]</a>[field:pubdate runphp='yes']
$a="<font color=red>".strftime('%m-%d',@me)."</font>";
$b=strftime('%m-%d',@me);
$ntime = time();
$day3 = 3600 * 24;
if(($ntime - @me) < $day3) @me = $a;
else @me =$b;
[/field:pubdate]<br>
[field:global name=autoindex runphp="yes"]
if(@me%5==0)@me="<hr />";
else @me="";
[/field:global]
<DIV class="line2 m1 m3"></DIV></LI>
--------------------------------------------------------------------------------
最新 文章列表 “隔行換色” 的方法
[field:global runphp='yes' name=autoindex]
$a="<div id='a'>";
$b="<div id='b'>";
if ((@me%2)==0) @me=$a;
else @me=$b;
[/field:global]
<ul>
<li>[field:title/]</li>
</ul>
</div>
--------------------------------------------------------------------------------
24小時內更新的文章時間顯示為紅色:
[field:pubdate runphp='yes']
$a="<font color=red>".strftime('%m-%d',@me)."</font>";
$b=strftime('%m-%d',@me);
$ntime = time();
$day3 = 3600 * 24;
if(($ntime - @me) < $day3) @me = $a;
else @me =$b;
[/field:pubdate]
--------------------------------------------------------------------------------
COPY頁面內容,自動在後面加上網站信息,利於SEO
<script type="text/javascript">
document.body.oncopy = function () }, 100 ) }
</script>
--------------------------------------------------------------------------------
按時間點擊文章排行榜調用標簽:
按總:
按月:
按周:
在首頁調用某欄目的子欄目
<a href=”[field:typelink/]“>[field:typename/]</a>
或者
--------------------------------------------------------------------------------
搜索表單調用標簽: <form action="/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="/images/topsearch_submit.gif" />
</form>
--------------------------------------------------------------------------------
實現“文章標題-2級欄目-1級欄目-網站名”形式
-
$tc="-"; //分隔符
$tw=$GLOBALS['cfg_list_symbol']; //調用位置分隔符
@me=html2text(@me); //去除html標簽
$tf=split($tw,@me); //分解成數組
for($ta=(count($tf)-2);$ta>=1;$ta--){ //循環賦值給$tk
$tk.=trim($tf[$ta]).$tc;
}
$tk=substr($tk,0,-1);
@me=$tk; //賦值給@me
-
--------------------------------------------------------------------------------
調用縮略圖: <img src=''>
--------------------------------------------------------------------------------
發布的文章顯示紅色日期或加上new字或new小圖片
給近三天(或當天)發布的文章顯示紅色日期或加上new字或new小圖片等。
都是圍繞pubdate做文章,寫擴展的。
第2、3要註意的問題是:如:"<img src='new.gif' />中不能用雙引號,否則不行。
如果要給當天的加,把 3600 * 24 * 3 改為 3600 * 24 即可。
1、==========紅色的日期========
[field:pubdate runphp='yes']
$a="<font color=red>".strftime('%m-%d',@me)."</font>";
$b=strftime('%m-%d',@me);
$ntime = time();
$day3 = 3600 * 24 * 3;
if(($ntime - @me) < $day3) @me = $a;
else @me =$b;
[/field:pubdate]
2、==========紅色的(new)========
[field:pubdate runphp='yes']
$aa=strftime('%m-%d',@me);
$ntime = time();
$tagtime = @me;
$day3 = 3600 * 24 * 3;
if($tagtime > $ntime-$day3) @me = "<font color='red'>(new)</font>";
else @me = $aa;
[/field:pubdate]
3、==========加new.gif小圖片========
[field:pubdate runphp='yes']
$aa=strftime('%m-%d',@me);
$ntime = time();
$tagtime = @me;
$day3 = 3600 * 24 * 3;
if($tagtime > $ntime-$day3) @me = "<img src='new.gif' />".$aa;
else @me = $aa;
[/field:pubdate]
--------------------------------------------------------------------------------
壹種很酷的時間效果
[field:pubdate runphp="yes"]
if((time()-@me)<(60*60*24))
else
[/field:pubdate]
--------------------------------------------------------------------------------
DEDE seo小技巧 加個百度搜索本篇文章
把妳的網址改壹下,不加http,演示: 文章頁
或者
--------------------------------------------------------------------------------
調用tag:
if(!empty(@me)){
$kws = explode(' ',@me);
@me = "";
foreach($kws as $k){
@me .= "<a href='/tag.php?/$k/'>$k</a> ";
}
@me= str_replace('+', ' ',trim(@me));
}