[wordpress插件] Attachment Importer附件进口商

wordpress 插件 文章 2020-02-22 21:20 503 0 全屏看文

AI助手支持GPT4.0

评分
86
描述

What is this?

这是什么?

I found the WordPress Importer plugin is good for importing posts and comments, but is lacking when it comes to importing large attachments (like images) from large sites.

我发现WordPress Importer插件非常适合导入帖子和评论,但是从大型站点导入大型附件(例如图像)时却缺乏。

My import would often time out and crash.

我的导入通常会超时并崩溃。

I wrote this plugin to help with my own blog migrations, but I hope you find it useful too.

我写了这个插件来帮助自己进行博客迁移,但是希望您也觉得它有用。

Usage

用法

    1. As a prerequisite, import your WXR file using the WordPress importer, but do not select the option to Download and Import Attachments.

    2. 作为先决条件,请使用WordPress导入程序导入WXR文件,但不要选择“下载和导入附件”选项。

      I have found that an import file up to 15MB big will work as long as you don’t import attachments.

    3. 我发现只要您不导入附件,最大可以导入15MB的导入文件。

    4. Navigate to the Attachment Importer screen.
    5. 导航到“附件导入器”屏幕。

    6. Select your WXR export file.
    7. 选择您的WXR导出文件。

    8. Select the user you would like to be the owner of the downloaded images.

    9. 选择要成为下载图像所有者的用户。

      Default: current user.

    10. 默认值:当前用户。

    11. Sit back and let the importer run.

    12. 坐下来,让导入程序运行。

      The process can take as little as 10 seconds for 10 images, or about two hours for 2000 images.

      对于10张图像,此过程可能仅需10秒,而对于2000张图像,此过程可能需要约2个小时。

      These times depend on the server that hosts your WordPress site.

    13. 这些时间取决于托管WordPress网站的服务器。

    14. If you receive any errors during the process, try running the file again after it finishes.

    15. 如果在此过程中收到任何错误,请在文件完成后尝试再次运行。

      The plugin is programmed to ignore files that match the following criteria:

      该插件被编程为忽略符合以下条件的文件:

        • Same name
        • 同名

        • Same file name
        • 相同的文件名

        • Same upload date
        • 相同的上传日期

        • Same file size
        • 相同的文件大小

    How it works.

    工作原理。

    This plugin uses FileReader and to parse the XML file

    此插件使用 FileReader 并解析XML文件

    in the browser, then uses ajax to request WordPress perform individual uploads.

    在浏览器中,然后使用ajax请求WordPress执行单个上传。

    License

    许可证

    Attachment Importer – A plugin for WordPress to import attachments from another blog using a WXR file.

    附件导入器– WordPress插件,可使用WXR文件从另一个博客导入附件。

    Copyright (C) 2014 Toasted Lime

    版权所有(C)2014烤石灰

    This program is free software;

    该程序是免费软件;

    you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation;

    您可以根据自由软件基金会发布的GNU通用公共许可证的条款重新分发和/或修改它;

    either version 2 of the License, or (at your option) any later version.

    许可的版本2,或(由您选择)任何更高的版本。

    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;

    分发该程序的目的是希望它会有用,但没有任何担保;

    without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    甚至没有对适销性或特定用途适用性的暗示保证。

    See the GNU General Public License for more details.

    有关更多详细信息,请参见GNU通用公共许可证。

    You should have received a copy of the GNU General Public License along with this program;

    您应该已经与该程序一起收到了GNU通用公共许可证的副本;

    if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

    如果没有,请写信给美国自由软件基金会有限公司(Free Software Foundation,Inc.),美国马萨诸塞州波士顿市第五楼富兰克林街51号,邮政编码02110-1301。

    The license and copyright applies to all resources bundled with this plugin, except as noted below:

    许可和版权适用于与此插件捆绑在一起的所有资源,除非另有说明:

    Portions of this plugin use code from:

    此插件的部分使用以下代码:

      • WordPress Importer which is distributed under the terms of the GNU GPL v2, Copyright (C) 2013 wordpressdotorg

      • WordPress导入器,它是根据GNU GPL v2(版权(C)2013 wordpressdotorg)的条款分发的

        .

      • jQuery UI Smoothness Theme which is distributed under the terms of MIT License, Copyright (C) 2014 jQuery Foundation

      • jQuery UI平滑度主题,该主题根据MIT许可证(版权(C)2014 jQuery Foundation)分发

        and other contributors.

      • 和其他贡献者。

      Changeset

      变更集

      0.6.0

      0.6.0

      Should not get “Remote server did not respond” as often.

      不应经常出现“远程服务器未响应”的情况。

      0.5.6

      0.5.6

        • Invalid file type produces non-fatal error.
        • 无效的文件类型会产生非致命错误。

        0.5.5

        0.5.5

          • Added an overall progress bar.
          • 添加了总体进度条。

          • Improve how the program responds to events like fatal errors, AJAX failure, or if there are no attachments in the import file.
          • 改善程序对致命错误,AJAX故障或导入文件中没有附件等事件的响应方式。

          0.5.4

          0.5.4

            • Fixed issue reading namespaces in import file that caused the program not to work in FireFox and Internet Explorer.
            • 修复了读取导入文件中的名称空间导致程序无法在FireFox和Internet Explorer中运行的问题。

            • Moved plugin to Import menu from the Media menu.
            • 已将插件从“媒体”菜单移动到“导入”菜单。

            0.5.3

            0.5.3

              • Added option to add five second delay between image ajax requests
              • 添加了选项,可在图像Ajax请求之间添加五秒钟的延迟时间

              • Reformat Readme
              • 重新格式化自述文件

              • Added jQuery tooltip
              • 添加了jQuery工具提示

安装步骤

    1. Either a) download from the WordPress plugin repository, or b) upload the attachment-importer directory to your plugins directory.
    2. a)从WordPress插件存储库下载,或b)将附件导入程序目录上载到您的插件目录。

    3. Navigate to Plugins -> Attachment Importer and activate.
    4. 导航至插件->附件导入器并激活。

    5. Go to Tools -> Import -> Attachment Importer to run.
    6. 转到工具->导入->附件导入器以运行。

下载地址
https://downloads.wordpress.org/plugin/attachment-importer.0.6.0.zip
-EOF-

AI助手支持GPT4.0