[wordpress插件] cnblogs2wpcnblogs2wp

wordpress 插件 文章 2020-03-26 09:40 516 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

如果您喜欢这款插件,请点击下面链接,给与5星好评哦~亲!

If you like this plugin, please click on the link below and give a 5-star praise ~ Dear!

!!


:

https://wordpress.org/support/view/plugin-reviews/cnblogs2wp

https://wordpress.org/support/view/plugin-reviews/cnblogs2wp

支持连接:

Support connection:

http://levi.cg.am/archives/3759

http://levi.cg.am/archives/3759

有什么问题以及意见请在这里提出来,我会做出及时修正

If you have any questions and comments, please raise them here, I will make timely corrections

注:本人一直习惯使用PHP新特性、新语法,这样可能会造成插件在一些老的PHP环境中执行错误;比如PHP 5.3,如果您执行出现错误,请您将错误提示反馈给我,

Note: I have always been accustomed to using new PHP features and new syntax. This may cause the plugin to perform incorrectly in some old PHP environments. For example, PHP 5.3, if you have an error in your implementation, please send me an error prompt.

我会做出调整。

I will make adjustments.

如果你的PHP版本比PHP5.3还要低,那可能就不在我支持范围之内了,因为这样您可能连wordpress都有点难跑动,建议升级PHP环境。

If your PHP version is lower than PHP5.3, it may not be within my support, because you may have a hard time running even wordpress. It is recommended to upgrade the PHP environment.

支持导入文章的平台:

Supported platforms for importing articles:

    将博客园(http://www.cnblogs.com/)以及开源中国-博客(http://www.oschina.net/blog)数据转换至wordpress中

    Convert blog garden (http://www.cnblogs.com/) and open source China-blog (http://www.oschina.net/blog) data into wordpress

    在11年的时候就发布过一个数据导入的插件,最近有朋友反馈会报错。

    A plug-in for data import was released in 11 years ago, and a friend recently reported an error.

    经过检查问题应该出在xml文件检测上。

    After inspection, the problem should be in the xml file detection.

    在重新优化这款插件之前,就一直有个想法,希望能够按照官方提供的wordpress-importer的文件导入流程来优化这款插件流程。

    Before reoptimizing this plugin, I have always had an idea, hoping to optimize the plugin process according to the official wordpress-importer file import process.

    由于时间关系,一直搁置没有动过。

    Due to time, it has been put on hold without action.

    介于这次机会重写了一遍这款插件。

    Between this opportunity to rewrite this plugin.

    Filters

    Filters

    更多请参考:

    /%E6%95%B0%E6%8D%AE%E5%AF%BC%E5%85%A5%E6%8F%92%E4%BB%B6%E4%B8%AD%E7%9A%84%

    /% E6% 95% B0% E6% 8D% AE% E5% AF% BC% E5% 85% A5% E6% 8F% 92% E4% BB% B6% E4% B8% AD% E7% 9A% 84%

    E9%92%A9%E5%AD%90" rel="nofollow">数据导入插件中的钩子

    E9% 92% A9% E5% AD% 90 "rel =" nofollow "> Hooks in the data import plugin

    The importer has a couple of filters to allow you to completely enable/block certain features:

    The importer has a couple of filters to allow you to completely enable / block certain features:

      • import_allow_create_users: return false if you only want to allow mapping to existing users
      • import_allow_create_users : return false if you only want to allow mapping to existing users

      • import_allow_fetch_attachments: return false if you do not wish to allow importing and downloading of attachments
      • import_allow_fetch_attachments : return false if you do not wish to allow importing and downloading of attachments

      • import_attachment_size_limit: return an integer value for the maximum file size in bytes to save (default is 0, which is unlimited)
      • import_attachment_size_limit : return an integer value for the maximum file size in bytes to save (default is 0, which is unlimited)

      There are also a few actions available to hook into:

      There are also a few actions available to hook into:

        • import_start: occurs after the export file has been uploaded and author import settings have been chosen
        • import_start : occurs after the export file has been uploaded and author import settings have been chosen

        • import_end: called after the last output from the importer
        • import_end : called after the last output from the importer

安装步骤

在线安装方法:

Online installation method:

    1. 点击“安装插件”搜索cnblogs即可找到插件
    2. Click "Install Plugin" and search cnblogs to find the plugin

    3. 点击安装插件,等待wordpress在线安装完毕
    4. Click to install the plugin and wait for wordpress to be installed online

    5. 在插件管理中启动插件
    6. Launch plugin in plugin management

    离线安装方法:

    Offline installation method:

      1. 下载离线插件包并解压
      2. Download and unzip the offline plugin package

      3. 复制目录到/wp-content/plugins/目录下
      4. Copy directory to / wp-content / plugins / directory

      5. 进入wordpress控制台
      6. Enter the wordpress console

      7. 插件管理中找到并启用“转换博客园、开源中国博客文章到wordpress”
      8. Find and enable "Convert blog garden, open source Chinese blog posts to wordpress" in plugin management

      数据导入方法:

      Data import method:

        1. 点击“工具-导入”,在列表中找到并选择“博客搬家”
        2. Click "Tools-Import", find and select "Blog Moving" in the list

        3. 上传对应的数据,导入按照流程导入
        4. Upload the corresponding data and import it according to the process

下载地址
https://downloads.wordpress.org/plugin/cnblogs2wp.0.6.5.zip
-EOF-

AI助手支持GPT4.0