內容簡介
這是什麼?
我發現 WordPress Importer 外掛在匯入文章和評論時非常好用,但在匯入大型網站的大型附件(例如圖片)時有所不足。我的匯入常常會逾時並崩潰。我寫了這個外掛來協助自己的博客遷移,但我希望您也會覺得有用。
使用方法
作為預備工作,使用 WordPress Importer 匯入您的 WXR 文件,但不要選擇下載和匯入附件選項。我發現最多可匯入 15MB 的檔案,只要不匯入附件即可。
切換到附件匯入屏幕。
选择您的 WXR 匯出文件。
选择您想要成为下载的图像所有者的用户。默认值:当前用户。
坐下來让导入程序运行。该过程可以只需 10 秒钟导入 10 张图像,或者需要大约两个小时导入 2000 张图像。这些时间取决于托管您的 WordPress 网站的服务器。
如果在過程中出现任何错误,請在完成後重新運行文件。该插件会忽略符合以下标准的文件:
同樣的名字
相同的文件名
相同的上載日期
相同的文件大小
其運作原理
此外掛將使用FileReader 分析 XML 文件,然後使用 AJAX 请求 WordPress 执行单独上传。
許可證
附件匯入 - 一個用於使用 WXR 文件從另一個博客匯入附件的 WordPress 外掛程式。
版權所有(C)2014 Toasted Lime
本程序是自由軟件;您可以在自由軟件基金會發布的 GNU 通用公共許可證下重新分發和修改它;無論是本授權條款的第 2 版還是任何稍後版本。
本程式是按 "原样" 提供的,作者不为适销性或特定目的的适用性而提供任何明示或暗示的保证。有关详细信息,请参阅 GNU 通用公共许可证。
您应该已收到附带此程序的 GNU 通用公共许可证的副本;如果没有,请到 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA 写信。
本許可證和版權適用於與此外掛綁定的所有資源,除以下情況外:
此外掛的部分內容使用下列程式碼:
WordPress Importer,它按 GNU GPL v2 分發,版權所有(C)2013 wordpressdotorg。
jQuery UI Smoothness Theme,它按 MIT License 分發,版權所有(C)2014 jQuery Foundation 和其他貢獻者。
更新版
0.6.0
不應經常收到 "遠程服務器沒有回應" 的消息。
0.5.6
無效的文件類型产生不致命错误。
0.5.5
增加了整体进度條。
改善程序对重大错误、AJAX 失败或导入文件中没有附件等事件的响应方式。
0.5.4
修正了读取导入文件中命名空间的问题,该问题导致程序在 FireFox 和 Internet Explorer 中无法工作。
将插件从 Media 菜单移动到 Import 菜单。
0.5.3
新增五秒延迟在圖像 AJAX 請求之間的選項
外掛標籤
開發者團隊
原文外掛簡介
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. 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
As a prerequisite, import your WXR file using the WordPress importer, but do not select the option to Download and Import Attachments. I have found that an import file up to 15MB big will work as long as you don’t import attachments.
Navigate to the Attachment Importer screen.
Select your WXR export file.
Select the user you would like to be the owner of the downloaded images. Default: current user.
Sit back and let the importer run. The process can take as little as 10 seconds for 10 images, or about two hours for 2000 images. These times depend on the server that hosts your WordPress site.
If you receive any errors during the process, try running the file again after it finishes. 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 in the browser, then uses ajax to request WordPress perform individual uploads.
License
Attachment Importer – A plugin for WordPress to import attachments from another blog using a WXR file.
Copyright (C) 2014 Toasted Lime
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; either version 2 of the License, or (at your option) any later version.
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.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
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.
jQuery UI Smoothness Theme which is distributed under the terms of MIT License, Copyright (C) 2014 jQuery Foundation and other contributors.
Changeset
0.6.0
Should not get “Remote server did not respond” as often.
0.5.6
Invalid file type produces non-fatal error.
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.
0.5.4
Fixed issue reading namespaces in import file that caused the program not to work in FireFox and Internet Explorer.
Moved plugin to Import menu from the Media menu.
0.5.3
Added option to add five second delay between image ajax requests
Reformat Readme
Added jQuery tooltip
