详解Dedecms5.5实现自定义标题处理(附采集规则)
DEDEDCMS5.5完成自定义问题求解。在{dede:function}@me='64edu.com'中添加自定义解决方案。@me{/dede:function},就可以完成dedecms5.55.3的自定义socket解决方案的实际效果。
介绍了以下内容:
{dede:sppagesptype='full'}{/dede:sppage}
{dede:previewurl}http://tech.sina.com.cn/c/2003-04-18/18689.html{/dede:previewurl}
{dede:keywordtrim}{/dede:keywordtrim}
{dede:descriptiontrim}{/dede:descriptiontrim}
{dede:itemfield='title'
value=''isunit=''isdown=''}
{dede:match}<title>[內容]</title>{/dede:match}
{dede:trimreplace=""}_开发者_在网上学院_智能时代_新浪新闻{/dede:trim}
{dede:function}@me='64edu.com'.@me{/dede:function}
{/dede:item}{dede:itemfield='writer'value=''isunit=''isdown=''}
{dede:match}{/dede:match}
{dede:function}{/dede:function}
{/dede:item}{dede:itemfield='source'value=''isunit=''isdown=''}
{dede:match}{/dede:match}
{dede:function}{/dede:function}
{/dede:item}{dede:itemfield='pubdate'value=''isunit=''isdown=''}
{dede:match}{/dede:match}
{dede:function}{/dede:function}
{/dede:item}{dede:itemfield='body'value=''isunit='1'isdown='1'}
{dede:match}<tr><thclass=f24><fontcolor=#05006C>[內容]<table
width=565border=0cellspacing=0cellpadding=0>{/dede:match}
{dede:trimreplace=''}<a([^>]*)>(.*)</a>{/dede:trim}
{dede:trimreplace=''}<!--(.*)-->{/dede:trim}
{dede:trimreplace=''}<img([^>]*)>{/dede:trim}
{dede:trimreplace=''}<object([^>]*)>(.*)</object>{/dede:trim}
{dede:trimreplace=''}<embed([^>]*)>(.*)</embed>{/dede:trim}
{dede:trimreplace=''}<iframe([^>]*)>(.*)</iframe>{/dede:trim}
{dede:function}{/dede:function}
{/dede:item}
测试5.5的收集标准
介绍了以下内容:
复制代码编码以下:
BASE64:e2RlZGU6bGlzdGNvbmZpZ30NCntkZWRlOm5vdGVpbmZvIG5vdGVuYW1lPSJqYXZhc2NycHQiIGNoYW5uZWxpZD0iMSIgbWFjdGh0eXB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ogICB7ZGVkZTpmdW5jdGlvbn17L2RlZGU6ZnVuY3Rpb259DQp7L2RlZGU6aXRlbX17ZGVkZTppdGVtIGZpZWxkPSdib2R5JyB2YWx1ZT0nJyBpc3VuaXQ9JzEnIGlzZG93bj0nMSd9DQogICB7ZGVkZTptYXRjaH08dHIPHRoIGNsYXNzPWYyND48Zm9udCBjb2xvcj0jMDUwMDZDPlvlhoXlrrldPHRhYmxlIHdpZHRoPTU2NSBib3JkZXI9MCBjZWxsc3BhY2luZz0wIGNlbGxwYWRkaW5nPTAey9kZWRlOm1hdGNofQ0KICAge2RlZGU6dHJpbSByZXBsYWNlPScnfTxhKFtePl0qKT4oLiopPC9hPnsvZGVkZTp0cmltfQ0Ke2RlZGU6dHJpbSByZXBsYWNlPScnfTwhLS0oLiopLS0ey9kZWRlOnRyaW19DQp7ZGVkZTp0cmltIHJlcGxhY2U9Jyd9PGltZyhbXj5dKikey9kZWRlOnRyaW19DQp7ZGVkZTp0cmltIHJlcGxhY2U9Jyd9PG9iamVjdChbXj5dKikKC4qKTwvb2JqZWN0PnsvZGVkZTp0cmltfQ0Ke2RlZGU6dHJpbSByZXBsYWNlPScnfTxlbWJlZChbXj5dKikKC4qKTwvZW1iZWQey9kZWRlOnRyaW19DQp7ZGVkZTp0cmltIHJlcGxhY2U9Jyd9PGlmcmFtZShbXj5dKikKC4qKTwvaWZyYW1lPnsvZGVkZTp0cmltfQ0KICAge2RlZGU6ZnVuY3Rpb259ey9kZWRlOmZ1bmN0aW9ufQ0Key9kZWRlOml0ZW19DQp7L2RlZGU6aXRlbWNvbmZpZ30=:END
文章里的内容就这些了。期待对大家的学习和培训有所帮助,也期待大家的应用。
评论列表(0条)