Dream tag tutorial

Source: Internet
Author: User

Key description call Tag: <meta name = "keywords" content = "{Dede: field name = 'keyword'/}">
<Meta name = "Description" content = "{Dede: field name = 'description' function = 'html2text (@ me) '/}">

Template path call Tag: {Dede: field name = 'templeturl '/}

 

Website title call Tag: {Dede: Global name = 'cfg _ webname '/}

 

Topic navigation call Tag: <a href = "/"> homepage </a> </LI>
{Dede: channel type = 'top' ROW = '8' current}
<Li> <a href = '[field: typelink/]' target = "_ blank"> [field: typename/] </a> </LI>
{/Dede: Channel}

 

Specify the call topic Tag: {Dede: onetype typeid = 'id'} [field: typename/] {/Dede: onetype}

 

Channel topic call label: {Dede: channel type = 'self '} <li> <a href =' [field: typelink/] '> [field: typename/] </a> </LI> {/Dede: Channel}

 

Link call Tag: {Dede: flink ROW = '24' linktype = 2 /}

 

Website copyright call Tag: {Dede: Global name = 'cfg _ powerby '/}

 

Website Record Filing call Tag: {Dede: Global name = 'cfg _ beian '/}

 

Current topic name tag: {Dede: field name = 'typename '/}

 

Current location call Tag: {Dede: field name = 'position '/}

 

ListArticleCall Tag: {Dede: List pagesize = '8'} {/Dede: List}

 

Topic Link call Tag: [field: typelink function = 'str _ Replace ("A", "a class =" ulink "", @ me) '/]

 

Author link call Tag: [field: writer/]

 

Click the call label in the list: [field: Click/]

 

List comment call Tag: [field: postnum/]

 

View the full-text call label: <a href = "[field: arcurl/]"> View the full text... </a>

 

List time call Tag: [field: pubdate function = "getdatetimemk (@ me)"/]

 

List paging call Tag: {Dede: pagelist listsize = '4' listitem = 'index pre pageno next end '/}

 

Title call Tag: {Dede: field name = "title "/}

 

Source call Tag: {Dede: field name = 'source '/}

 

The author calls the tag {Dede: field name = 'write '/}

 

Document time call Tag: {Dede: field name = 'pubdate' function = 'getdatemk (@ me )'/}

 

Tag call Tag: {Dede: tag type = 'current '/}

 

Click the call label in the article: <SCRIPT src = "{Dede: field name = 'phpurl'/}/count. php? Aid = {Dede: field name = 'id'/} & Mid = {Dede: field name = 'memberid'/} & view = yes "Language =" Java Script "> </SCRIPT>

 

Content call Tag: {Dede: field name = 'body '/}

 

Pagination call Tag: {Dede: pagebreak /}
[<A href = "{Dede: field name = 'phpurl'/}/stow. php? Arcid = {Dede: field name = ID/} "> favorites </a>]
[<A href = "{Dede: field name = 'phpurl'/}/recommend. php? Arcid = {Dede: field name = ID/} "> recommended </a>]
[<A href = "{Dede: field name = 'phpurl'/}/feedback. php? Arcid = {Dede: field name = ID/} "> comment </a>]
[<A href = "#" onclick = "window. Print ();"> Print </a>]
[<A href = "#" onclick = "window. Close ();"> close </a>]

 

Article Top Customer count Tag: {Dede: field name = 'digg'/} <a href = "Java Script: Digg ('digg', {Dede: field name = 'id'/}); "> top </a>

 

Next tag in the previous article: {Dede: prenext get = 'pre'/} {Dede: prenext get = 'Next '/}

 

Toutiao recommendation call label: {Dede: arclist ROW = 1 titlelen = 24 orderby = pubdate ATT = 2} <DT> [field: textlink/]
<Span> [field: Description/]…… </Span> </DT> {/Dede: arclist}

 

Call label of the latest article: {Dede: arclist ROW = 8 titlelen = 24 orderby = pubdate} <li> [field: textlink/] </Li >{/ Dede: arclist}

 

Hot keyword call Tag: {Dede: hotwords num = '5' subday = '30 '/}

 

Latest graphic call label: {Dede: arclist ROW = 4 titlelen = 20 orderby = pubdate type = 'image. 'imgwidth = '000000' imgheight = '98 '}
<DD> <a href = "[field: arcurl/]"> </a> <span> <a Title =" [field: title function = 'htmlspecialchars (@ me) '/] "href =" [field: arcurl/] "> [field: Title/] </a> </span> </DD> {/Dede: arclist}

 

Recommendation document call Tag: {Dede: arclist type = 'commend' titlelen = '40' ROW = '10'} <li> <a Title = "[field: title function = 'htmlspecialchars (@ me) '/] "href =" [field: arcurl/] "> [field: title/] </a> </LI> {/Dede: arclist}

 

Random recommendation call Tag: {Dede: arclist type = 'commend' titlelen = '26' orderby = 'rand' ROW = '10'} <li> <a Title = "[field: title function = 'htmlspecialchars (@ me) '/] "href =" [field: arcurl/] "> [field: title/] </a> </LI> {/Dede: arclist}

 

Hotspot document call Tag: {Dede: arclist orderby = 'click' titlelen = '40' ROW = '10'} <li> <a Title = "[field: title function = 'htmlspecialchars (@ me) '/] "href =" [field: arcurl/] "> [field: title/] </a> </LI> {/Dede: arclist}

 

Call tags for relevant documents: {Dede: likeart titlelen = '24' ROW = '10'} <li> <a Title = "[field: title function = 'htmlspecialchars (@ me) '/] "href =" [field: arcurl/] "> [field: Title/] </a> </LI> {/Dede: likeart}

 

Call the image link tag: <a href = "[field: arcurl/]"> </a>
<A href = '[field: arcurl/]'> [field: image/] </a>

 

Call text link tag: <a href = "[field: aucurl/]" Title = "[field: Title/]"> [field: Title/] </a>
<A Title = "[field: title function = 'htmlspecialchars (@ me) '/]" href = "[field: arcurl/]"> [field: title/] </a>

 

Control Word Description MARK: [field: description function = "cn_substr (@ me, 100)"/]...

 

Call the document tags Tag: {Dede: tag type = 'current '/}

 

Keyword and Description: {Dede: field name = 'keyword '/}
{Dede: field name = 'description' function = 'html2text (@ me )'/}

 

Topic Introduction: {Dede: field name = 'description' function = 'html2text (@ me )'/}

 

Call the external HTM file: {Dede: Include file='head.htm 'ismake = 'yes '/}

 

Search the search result of {Dede: Global name = 'keyword'/} & quot; For the tag {Dede: Global name = 'cfg _ webname'/} in the search & quot; {Dede: Global name = 'keyword'/} </span> & quot; Result

 

Incremental serial number: [field: Global name = Autoindex/]

 

Add a line to each of the five rows in the list:
{Dede: List pagesize = '50 '}
<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 = 24x3600;
If ($ ntime-@ me) <$ day3) @ me = $;
Else @ me = $ B;
[/Field: pubdate] <br>
[Field: Global name = Autoindex runphp = "yes"]
If (@ me % 5 = 0) @ me = "<HR/> ";
Else @ me = "";
[/Field: Global]
{/Dede: List}
<Div class = "line2 M 1 m3"> </div> </LI>

 

 

Method for changing the color of the last article list
{Dede: arclist orderby = pubdate titlelen = '26' ROW = '10 '}
[Field: Global runphp = 'yes' name = Autoindex]
$ A = "<Div id = 'A'> ";
$ B = "<Div id = 'B'> ";
If (@ me % 2) = 0) @ me = $;
Else @ me = $ B;
[/Field: Global]
<Ul>
<Li> [field: Title/] </LI>
</Ul>
</Div>
{/Dede: arclist}

 

The Update Time of the article within 24 hours is displayed in Red:
[Field: pubdate runphp = 'yes']
$ A = "<font color = Red>". strftime ('% m-% d', @ me). "</font> ";
$ B = strftime ('% m-% d', @ me );
$ Ntime = Time ();
$ Day3 = 24x3600;
If ($ ntime-@ me) <$ day3) @ me = $;
Else @ me = $ B;
[/Field: pubdate]

 

Copy page content, automatically add website information to the back, which is conducive to Seo
<SCRIPT type = "text/Java Script">
Document. body. oncopy = function () {setTimeout (function () {var text = clipboardData. getdata ("text"); If (text) {text = text + "\ r \ n this article comes from www. address. com Original article: "+ location. href; clipboardData. setdata ("text", text) ;}, 100 )}
</SCRIPT>

 

Click the call tag in the article ranking by Time:
By Total: {Dede: arclist ROW = '24' titlelen = 24 orderby = click}
Monthly: {Dede: arclist ROW = '24' titlelen = 8 orderby = click subday = 30}
By week: {Dede: arclist ROW = '24' titlelen = 8 orderby = click subday = 7}
Call a subtopic of a topic on the homepage
{Dede: channel type = 'sun' typeid = 'topic id '}
<A href = "[field: typelink/]"> [field: typename/] </a>
{/Dede: Channel}
Or
{Dede: Global name = 'maplist '/}

 

Search form call tags: <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> intelligent fuzzy search </option>
<Option value = "title"> only search for titles </option>
</SELECT>
<Input type = "image" src = "{Dede: field name = 'templeturl'/}/images/topsearch_submit.gif"/>
</Form>

 

Implement the form of "article title-Level 2 topic-Level 1 topic-site name"

{Dede: field name = 'title'/}-{Dede: field name = 'position' runphp = 'yes '}
$ Tc = "-"; // delimiter
$ Tw = $ globals ['cfg _ list_symbol']; // call location Separator
@ Me = html2text (@ me); // remove HTML tags
$ TF = Split ($ TW, @ me); // It is decomposed into arrays.
For ($ Ta = (count ($ TF)-2); $ Ta> = 1; $ ta --) {// cyclically assigned to $ TK
$ Tk. = trim ($ TF [$ Ta]). $ TC;
}
$ TK = substr ($ TK, 0,-1 );
@ Me = $ TK; // assign a value to @ me
{/Dede: Field}-{Dede: Global name = 'cfg _ webname '/}

 

Call thumbnail:

 

The published article displays a red date or a new or new small image.
Display a red date or add a new word or a new small image to an article published in the last three days (or the same day.
They all write extensions around pubdate.
2nd and 3 note the following: " cannot use double quotation marks; otherwise, it cannot.
If you want to add 3600*24*3 for the day, change it to 3600*24.
1. ============ red date ======

[Field: pubdaterunphp = '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 = $;
Else @ me = $ B;
[/Field: pubdate]

 

2. =========== red (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]

3366%%%%%%%%%%%%%%%%%%%%%%%%%%%%=

[Field: pubdate runphp = 'yes']
$ AA = strftime ('% m-% d', @ me );
$ Ntime = Time ();
$ Tagtime = @ me;
$ Day3 = 3600*24*3;
If ($ tagtime> $ ntime-$ day3) @ me = "Else @ me = $ AA;
[/Field: pubdate]

 

A cool time effect
[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]

 

Dede Seo tips add Baidu search this article
<A href = "Java Script:" onclick = 'window. Open ("http://www.baidu.com/s? Q1 = {Dede: field name = "title"/} & q2 = & Q3 = & Q4 = & Rn = 10 & lm = 0 & Ct = 1 & Ft = & Q5 = & Q6 = Your URL ") 'Target = "_ top" Title = "search for" {Dede: field name = "title"/} "related content"> <font color = Red> Search Baidu for more traditional Chinese characters </font> </a>]

Change your web site, without HTTP, Demo: http://www.baoluowanxiang.com Article Page
Or

<A href = "Java Script:" onclick = 'window. Open ("http://www.baidu.com/baidu? WORD = {Dede: field name = "title"/} ") 'target =" _ top "Title =" Search Baidu for "{Dede: field name = "title"/} "related content"> <font color = Red> Search for dance steps </font> </a>]

 

Call Tag: {Dede: field name = 'keyword' runphp = 'yes '}
If (! Empty (@ me )){
$ KWS = explode ('', @ me );
@ Me = "";
Foreach ($ KWS as $ K ){
@ Me. = "<a href = '/Tag. php? /$ K/'> $ k </a> ";
}
@ Me = str_replace ('+', '', trim (@ me ));
}
{/Dede: Field}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.