laemmi / laemmi-yourls-comment-label
YOURLS 插件。为 URL 条目添加评论和标签。
v1.0.2
2020-02-17 15:56 UTC
Requires
This package is auto-updated.
Last update: 2024-08-26 04:11:37 UTC
README
YOURLS 1.7 插件
描述
为 URL 条目添加评论和标签。支持德语本地化。使用此插件需要配合 "laemmi-yourls-easy-ldap" 插件。首先必须安装 "laemmi-yourls-default-tools"。
安装
- 在 /user/plugins 中,创建一个名为 laemmi-yourls-comment-label 的新文件夹。
- 将这些文件放入该目录中。
- 通过 git 跳转到 /users/plugins 并输入 git clone https://github.com/Laemmi/laemmi-yourls-comment-label.git
- 将配置值添加到配置文件中
- 转到 YOURLS 插件管理页面并激活插件。
- 通过 composer 安装。在 composer.json 的 require 部分添加以下内容。
"require":{ "laemmi/laemmi-yourls-comment-label": "^1.0" }
可用的配置值
允许的具有 yourls 操作和列表权限的 ldap 组名称
define('LAEMMI_EASY_LDAP_ALLOWED_GROUPS', json_encode([ 'MY-LDAP-GROUPNAME' => ['action-edit-comment', 'action-edit-label', 'list-show-comment', 'list-show-label'] ]));
权限
操作
- action-edit-comment = 添加/编辑评论
- action-edit-label = 添加/编辑标签
列表
- list-show-comment = 显示评论
- list-show-label = 显示标签