Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of automatically updating the content of DEDECMS site to Sina Weibo

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you the DEDECMS site content automatically updated to Sina Weibo method, I believe that most people do not know much, so share this article for your reference, I hope you will learn a lot after reading this article, let's go to understand it!

How to automatically update the content of DEDECMS site to Sina Weibo?

DEDECMS site content is automatically updated to Sina Weibo

Recommended study: dream weaving cms

Sina Weibo uses feed to find and update articles. As long as you assign him an feed address, you can successfully associate.

Now start to simply modify the dream weaving template, because dream weaving can not generate the site-wide xml file, so it is necessary to establish a php program to generate the site-wide XML.

1. Set up feed.php

The above note is to modify the path of the template to ensure that feed.htm can be found in the template and directory

2. Establish the feed.htm template file

{dede:global.cfg_webname/} {dede:global.cfg_basehost/} {dede:global.cfg_description/} zh-cn {dede:global.cfg_webname/} {dede:global.cfg_adminemail/} {dede:arclist row='60' col='1' titlelen='100' orderby='pubdate'} [field:arcurl/] [field:writer/] [field:typename/] [field:pubdate function='strftime ("% a] % d% b% Y% H:%M:%S + 0800 ", @ me)'/] [field:arcurl/] {/ dede:arclist}

It is important to note that don't forget to change my URL to what you need.

3. Modify the index.htm home page template

Because Sina Weibo can only verify the URL, can not write the complete path, for example, I wrote:. The result indicates that the association failed, and the solution is to add the following code between and

Through the above methods, we can successfully associate Sina Weibo.

The above is all the content of the DEDECMS site content automatically updated to Sina Weibo, thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report