[wordpress插件] Coppermine Photo Gallery Badge Plugin for WordPress适用于WordPress的Coppermine图片库徽章插件

wordpress 插件 文章 2020-04-02 18:10 2218 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

This plugin creates a Flickr like badge from your Coppermine Gallery.

此插件从您的Coppermine Gallery创建了一个类似Flickr的徽章。

See http://timestocome.com/wordpress2/ bottom right sidebar for a demonstration.

有关演示,请参见http://timestocome.com/wordpress2/右下侧边栏。

安装步骤

1 ) First edit the wp_coppermine.php file.

1)首先编辑wp_coppermine.php文件。

You need to enter the hostname, login, database name, and password for the Coppermine database.
       

您需要输入Coppermine数据库的主机名,登录名,数据库名称和密码。
       

If you do not know this information then ftp to your website, cd into your coppermine directory, cd to the includes directory
       

如果您不知道此信息,则ftp到您的网站,cd到您的Coppermine目录,cd到includes目录
       

and download config.inc.php.

并下载config.inc.php。

All this information is in there.

所有这些信息都在那里。

Then if your Coppermine is not installed in /coppermine change this to be what ever directory you installed Coppermine into.

 然后,如果您的Coppermine未安装在/ coppermine中,则将其更改为安装Coppermine的目录。

Lastly enter the url of your website.

最后输入您网站的网址。

2 ) Upload the coppermine_badge folder to your plugin directory

2)将Coppermine_badge文件夹上传到您的插件目录

3 ) Activate the plugin

3)激活插件

4 ) In your side bar enter

4)在边栏中输入

  

  <?php echo Coppermine_gallery()?>  

OR

OR

4 ) In your sidebar or the code section of a post or page add

4)在边栏中或帖子或页面的代码部分中添加

It is set up to display 5 thumbnails vertically.

设置为垂直显示5个缩略图。

To change the number of images change the number at the end of this line: $query = “select filepath, filename, ctime from cpg_pictures order by ctime desc limit 5;”;

要更改图像数量,请更改此行末尾的数量:$ query =“按ctime desc限制5从cpg_pictures顺序选择文件路径,文件名和ctime;”;

If you want a horizontal list remove the \n
from this line: echo “\n
“;

如果要水平列表,请从此行中删除\ n
:echo“ \ n
”;

下载地址
https://downloads.wordpress.org/plugin/coppermine-badge.zip
-EOF-

AI助手支持GPT4.0