[wordpress插件] WP Conditional Digg This BadgeWP Conditional Digg此徽章

wordpress 插件 文章 2020-03-30 03:50 442 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

This plugin is designed to automatically add a “Digg This” badge to your articles that already have some popularity on Digg.

此插件旨在自动为您在Digg上已经很受欢迎的文章添加“ Digg This”徽章。

This way you can automatically add badges to your articles without having a bunch of “1 Digg” articles.

这样一来,您就可以自动将徽章添加到您的文章中,而无需添加大量“ 1 Digg”文章。

The plug-in inserts some Javascript into your articles.

该插件将一些Javascript插入您的文章中。

This Javascript allows the plug-in to access the Digg API.

该Javascript允许插件访问Digg API。

Through the API, the plug-in determines if your article has enough Diggs (by default: 10).

通过API,该插件可以确定您的文章是否具有足够的Diggs(默认值:10)。

If it does, the “Digg This” badge is displayed.

如果是这样,则会显示“ Digg This”标志。

Otherwise, the Javascript is deleted and no badge is shown.

否则,将删除Javascript,并且不会显示徽章。

Note on WordPress version: This should work on earlier versions.

关于WordPress版本的注意事项:这应该适用于早期版本。

However, it’s only been tested on Versions 2.3.3 and up.

但是,它仅在版本2.3.3及更高版本中经过测试。

If you successfully use the plug-in on an earlier version of WordPress, please leave a comment at the plugin homepage so that I can update the information in this readme.

如果您在WordPress的早期版本上成功使用了该插件,请在插件主页上发表评论,以便我可以更新本自述文件中的信息。

安装步骤

Follow the normal WordPress Plugin procedures – no special template tampering is required.

遵循正常的WordPress插件程序–无需特殊模板篡改。

    1. Upload ‘wp-digg-conditional.tar.gz’ to your plugins folder.
    2. 将“ wp-digg-conditional.tar.gz”上传到您的插件文件夹。

    3. Uncompress the archive, preserving the folder structure.
    4. 解压缩档案,保留文件夹结构。

    5. Activate the plug-in through the “Plugins” section of your dashboard.
    6. 通过仪表板的“插件”部分激活插件。

    7. (Optional) Edit the $minDiggs variable in “check-digg-stats.php” to customize the number of Diggs are article needs to receive a badge.
    8. (可选)在“ check-digg-stats.php”中编辑$ minDiggs变量以自定义文章需要获得徽章的Diggs的数量。

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

AI助手支持GPT4.0