[wordpress插件] Attachment Files Importer附件文件导入器

wordpress 插件 文章 2020-02-22 21:00 538 0 全屏看文

AI助手支持GPT4.0

评分
20
描述

Scan your WordPress installation for all missing attachment files, download them from another WordPress installation and resize them with your defined image sizes.

扫描您的WordPress安装中所有丢失的附件文件,从另一个WordPress安装中下载它们,并使用定义的图像大小调整它们的大小。

Know that the plugin will not create new media on your installation database, it’ll just use the existings entries of medias in your database to retrieve the physical files on another WordPress installation.

知道该插件不会在您的安装数据库上创建新媒体,它只会使用数据库中现有的媒体条目来检索另一个WordPress安装上的物理文件。

E.g.: http://serverA.com have an entry for the mediaX in his database.

例如 http://serverA.com 在他的数据库中具有 mediaX 的条目。

The path for the physical file is supposed to be http://serverA.com/wp-content/uploads/2013/06/mediaX.jpg but it’s not here.

物理文件的路径应该为 http://serverA.com/wp-content/uploads/2013/06/mediaX.jpg ,但此处未提供。

If you know that this same media exists on http://serverB.com + the physical file, you can use this plugin on http://serverA.com, specifying

如果您知道 http://serverB.com +物理文件上存在相同的媒体,则可以在 http://serverA.com 上使用此插件,并指定

http://serverB.com in the Server URL field and the plugin will search the file here: http://serverB.com/wp-content/

http://serverB.com 在“服务器URL ”字段中,插件将在此处搜索文件: http://serverB.com/wp-content/

uploads/2013/06/mediaX.jpg.

uploads / 2013/06 / mediaX.jpg

If it find it, it will be downloaded here: http://serverA.com/wp-content/uploads/2013/06/mediaX.jpg.

如果找到,它将在这里下载: http://serverA.com/wp-content/uploads/2013/06/mediaX.jpg

Do you need this?

您需要这个吗?

This plugin is useful if you have multiple instances of a same project installed on multiple servers.

如果您在多个服务器上安装了同一项目的多个实例,则此插件很有用。

For example, a team of developers, each of them having a copy of the “master” installation located at the production server.

例如,一组开发人员,每个开发人员都有一个位于生产服务器上的“主”安装副本。

Periodically, the database of the “master” installation is given to the developers who update their code through a VCS

定期将“主”安装的数据库提供给开发人员,这些开发人员通过 VCS

> (like SVN, GIT, Mercurial).

>(例如SVN,GIT,Mercurial)。

There is chance that the uploads folder is not versionned, which is good, so the plugin is useful here to download the medias from the “master” installation.

可能没有对 uploads 文件夹进行版本控制,这很好,因此,此插件在从“主”安装中下载媒体很有用。

How tu use it?

您如何使用它?

In the admin, go to Tools/Import and choose the Attachment files importer.

在管理员中,转到工具/导入并选择附件文件导入程序。

From here, enter the URL of the WordPress installation that contain the physical files of medias and click Import.

从此处输入包含媒体物理文件的WordPress安装的URL,然后单击导入

Existing files will not be overriden.

现有文件不会被覆盖。

Debug

调试

The plugin is in an early stage and bugs may occurs.

该插件尚处于早期阶段,可能会发生错误。

If you want to show a detailled report of the importation process, add this line to your wp-config.php file:

如果要显示有关导入过程的详细报告,请将此行添加到您的 wp-config.php 文件中:

define('ATTACHMENT_FILES_IMPORT_DEBUG', true);

  define('ATTACHMENT_FILES_IMPORT_DEBUG',true);

安装步骤

    1. Upload the attachment-files-importer folder to the /wp-content/plugins/ directory
    2. attachment-files-importer 文件夹上载到 / wp-content / plugins / 目录

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

    5. Go to the Tools -> Import screen, click on Attachment Files
    6. 转到“工具->导入”屏幕,单击“附件文件”

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

AI助手支持GPT4.0