cnblogs2wp

from 0$

cnblogs2wp is a WP Plugin Package from the Open Source WP Plugins range 支持导入文章到wordpress的博客,平台包含有:博客园、OSChina、CSDN、点点、Lofter


For more information about a tailored WP Plugin Package like cnblogs2wp please contact us directly.

如果您喜欢这款插件,请点击下面链接,给与5星好评哦~亲!!:
https://wordpress.org/support/view/plugin-reviews/cnblogs2wp

支持连接:
http://levi.cg.am/archives/3759

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

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

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

支持导入文章的平台:

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

在11年的时候就发布过一个数据导入的插件,最近有朋友反馈会报错。经过检查问题应该出在xml文件检测上。

在重新优化这款插件之前,就一直有个想法,希望能够按照官方提供的wordpress-importer的文件导入流程来优化这款插件流程。由于时间关系,一直搁置没有动过。介于这次机会重写了一遍这款插件。

Filters

更多请参考:数据导入插件中的钩子

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_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)

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_end: called after the last output from the importer

Download & install the zip archive

The plugin package installer can be downloaded from the WP2E project tab called “code”.

1 – Select the version to download if this option is available otherwise the “latest” version of the main plugin will be used.

2 – After downloading the zip archive install the plugin package installer in you local environment and activate the script from the plugin list.

3 – Under the section “Plugins” of the admin dashboard you should see a new “Dependencies & Licenses” link. Follow the instructions from this panel to finalize the installation of the missing dependencies.

Tips: Use the WP2E panel to add/suggest new dependencies to the local installation. Press F5 in the list of dependencies if the changes are not displayed right away.

Cnblogs2wp

typePlugin
version0.6.5
description支持导入文章到wordpress的博客,平台包含有:博客园、OSChina、CSDN、点点、Lofter