[wordpress插件] DMC User ListDMC用户列表

wordpress 插件 文章 2020-04-20 09:31 482 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Create user lists in posts and pages.

在帖子和页面中创建用户列表。

I am a member and webmaster for a Barbershop Chorus.

我是Barbershop Chorus的成员和网站管理员。

While working on the site,

在网站上工作时,

I found it desireable for each member to be users of the website so that they could

我发现每个成员都希望成为网站的用户,以便他们

contribute content, to contrl access to private pages and torestrict commenting while

提供内容,以控制对私人页面的访问并限制评论时的评论

still allowing member commenting.

仍然允许成员发表评论。

This allows the web site to have a membership list without

这使网站可以拥有一个成员列表,而没有

the redundant entry of data.

数据的冗余条目。

Tested with the plugin ‘Extra User Details’ to add user metadata but most similar plugins should work.

使用插件“额外用户详细信息”进行了测试,可以添加用户元数据,但大多数相似的插件都可以使用。

Also tested with ‘Basic User Avatars’ for user avatar support in the listing.

还通过“基本用户头像”进行了测试,以支持列表中的用户头像。

I intend to support other

我打算支持其他

user avatar plugins in future releases.

未来版本中的用户头像插件。

Features include:

功能包括:

* Upgrade Safe customization

*升级安全自定义

* Importing users from a Excel Spreadsheet

*从Excel电子表格导入用户

* Exporting users to a Excel Spreadsheet

*将用户导出到Excel电子表格

Customization

自定义

This plugin is built almost completely with PHP Objects.

该插件几乎完全由PHP Objects构建。

All of the obhects except dmc_user_list.php can be inherited for customiztion.

可以继承除dmc_user_list.php之外的所有对象进行自定义。

There are some rules for this:

为此有一些规则:

    • The customized object must be in the custom directory.
    • 自定义对象必须位于自定义目录中。

    • The filename must be _custom.php, i.e. gd_admin_custom.php
    • 文件名必须为_custom.php,即gd_admin_custom.php

    • The class must be named _custom and inherit , i.e class gd_core_custom inherits gd_core {.
    • 该类必须命名为_custom并继承,即 class gd_core_custom继承gd_core {

    • It should include a constructor that calls the parent constructor:
          

    • 它应该包含一个调用父构造函数的构造函数:
          

      function __construct() {
              

      函数__construct(){
              

      parent::__construct();
          

      parent :: __ construct();
          

      }

    • }

    Ading functionality on the admin side

    管理端的添加功能

    ‘class dmc_user_admin_custom extends dmc_user_admin {

    ‘dmc_user_admin_custom类扩展了dmc_user_admin {

    /**

    / **

    * class constructpr.

    *类构造体。

    */
        

    * /
        

    function __construct() {
            

    函数__construct(){
            

    parent::__construct();
        

    parent :: __ construct();
        

    }

    }

    /**

    / **

    * Create Admin menus

    *创建管理菜单

    */
        

    * /
        

    function admin_menu () {
            

    函数admin_menu(){
            

    parent::admin_menu();
        

    parent :: admin_menu();
        

    add_submenu_page(‘dmc-user’,” ,”, ‘activate_plugins’, ”, array(&$this, ”));
        

    add_submenu_page('dmc-user',“,”,'activate_plugins','',array(&$ this,)));
        

    }

    }

    /**

    / **

    * Page

    *页面

    */
        

    * /
        

    function () {
            

    函数(){
            

    // code goes here
        

    //代码在这里
        

    }

    }

    }

    }

安装步骤

    1. Upload Plugin Directory to the /wp-content/plugins/ directory
    2. 将插件目录上传到 / wp-content / plugins / 目录

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

下载地址
https://downloads.wordpress.org/plugin/dmc-user-list.2.2.zip
-EOF-

AI助手支持GPT4.0