China Webmaster Station for Dede4.0 collection Rules _php Tutorial

Source: Internet
Author: User
Reprint please indicate from outdated im286.com, this paste address: http://www.im286.com/viewthread.php?tid=1991813
Only two points out of the outdated, special give the Chinese webmaster Station for Dede4.0 collection rules, I hope we can support my outdated, thank you!!!

The following rules are for site operations >> Search optimization of the collection rules, the other columns of the rules as long as the "Source url" and "article URL to include" These two changes to you want to collect the column URL and directory.

If you want to collect webmaster online >> Good station recommend this column, you just make the following changes:
Source URL: [Url]http://www.chinaz.com/webmaster/recsite/index.html[/url]
Article URL must include:/recsite/0
The others do not need to be changed!

================== Collection Rules =================
{!--node basic information--}

{Dede:item name= ' search engine '
Imgurl= '/upimg ' imgdir= '. /upimg ' language= ' gb2312 '
isref= ' no ' refurl= ' exptime= ' 10 '
Typeid= ' 1 ' matchtype= ' string '}
{/dede:item}

{!--Capture list fetch rule--}

{dede:list source= ' var ' sourcetype= ' list '
varstart= ' varend= '}
{dede:url value= ' http://www.chinaz.com/Webbiz/Seo/Index.html '} {/dede:url}
{Dede:need}/seo/0{/dede:need}
{Dede:cannot} {/dede:cannot}
{Dede:linkarea} [var: zone]var contents = document.getelementsbyclassname (' list_news_content '); {/dede:linkarea}
{/dede:list}

{!--Web content fetching rules--}

{Dede:art}
{dede:sppage sptype= ' next '} 1[VAR: Paging Area]4{/dede:sppage}

{dede:note field= ' dede_archives.title ' value= ' [var: content] ' comment= ' article title '
isunit= ' isdown= '}

{Dede:match}

[var: content]

{/dede:match}

{Dede:function} {/dede:function}

{/dede:note}

{dede:note field= ' dede_addonarticle.body ' value= ' [var: content] ' comment= ' article content '
isunit= ' 1 ' isdown= ' 1 '}

{Dede:match} [var: content] {/dede:match}
{Dede:trim} (.*) {/dede:trim}
{Dede:trim} Chinaz{/dede:trim}
{Dede:function} {/dede:function}

{/dede:note}

{dede:note field= ' dede_archives.writer ' value= ' [var: content] ' comment= ' article author '
isunit= ' isdown= '}

{Dede:match} by: [Var: Content]| When {/dede:match}
{Dede:trim}] *) >{/dede:trim}
{Dede:trim} {/dede:trim}

{Dede:function} {/dede:function}

{/dede:note}

{dede:note field= ' dede_archives.source ' value= ' [var: content] ' comment= ' article source '
isunit= ' isdown= '}

{Dede:match} Source: [var: content] | make {/dede:match}
{Dede:trim}] *) >{/dede:trim}
{Dede:trim} {/dede:trim}

{Dede:function} {/dede:function}

{/dede:note}

{dede:note field= ' dede_archives.pubdate ' value= ' [var: content] ' comment= ' release time '
isunit= ' isdown= '}

{Dede:match} {/dede:match}

{dede:function}if (@me! = "") @me = Getmktime (@me);
else @me = time (); {/dede:function}

{/dede:note}

{dede:note field= ' dede_archives.sortrank ' value= ' [var: content] ' comment= ' sort level '
isunit= ' isdown= '}

{Dede:match} {/dede:match}

{dede:function} @me = time (); {/dede:function}

{/dede:note}

{dede:note field= ' dede_archives.litpic ' value= ' [var: content] ' comment= ' thumbnail '
isunit= ' isdown= '}

{Dede:match} {/dede:match}

{dede:function} @me = @litpic; {/dede:function}

{/dede:note}

{dede:note field= ' dede_archives.senddate ' value= ' [var: content] ' comment= ' entry time '
isunit= ' isdown= '}

{Dede:match} {/dede:match}

{dede:function} @me = time (); {/dede:function}

{/dede:note}
{/dede:art}

http://www.bkjia.com/PHPjc/318318.html www.bkjia.com true http://www.bkjia.com/PHPjc/318318.html techarticle Reprint please note from the outdated im286.com, this paste address: http://www.im286.com/viewthread.php?tid=1991813 only two points out of the outdated, the special sacrifice of the Chinese Webmaster Station ForDede4.0 Collection rules, hope ...

  • 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.