GithubHelp home page GithubHelp logo

staff-page's Introduction

Project is no longer maintained.

Staff Page

Download | Issues | MyBB Mods page | MyBB Community Forums thread

It is a MyBB plugin, which adds a manageable page with list of staff. It creates a list of staff and allows administrators to display members and group them as they like. The page can display description of groups and members set in ACP. Groups displayed on the page are independent from the forum's users groups. In other words, this plugin gives possibility to create a small staff directory, without using MyBB's groups.

By default this plugin is displayed instead of showteam.php page, but the replcamenet can be switched off in the board settings, if you wish to use both of them at once. In this case you will need to add a link to memberlist.php?action=staff by yourself, beucase the plugin only adds redirection.

Installation

  1. Unpack the plugin archive.
  2. Upload content of Upload folder to your forum's root directory.
  3. Go to plugins page in the ACP and install the plugin.

The page generated by this plugin is available under memberlist.php?action=staff URL.

Configuration

  1. Firstly you must set administrator permissions to gain access to the Staff Page configuration. The permission can be found in the configuration section.
  2. Now you can access plugin's configuration page. To do so, go to Configuration tab of ACP and choose Staff Page from the sidebar on the left. There you can manage your staff page by adding members and grouping them into groups. ๐Ÿ”ฅ

Groups permissions

You can disallow users from accessing the staff page by setting it in the groups permissions in ACP.

Board settigs

In the board settings the plugin gives administrators option to set avatar size displayed on the staff page and the redirection from showteam.php can be turned off.

Author

Information

Project is published under the GPL v3 license.

![Screenshot from the front](Screenshots/Front 01.png) ![Screenshot from the ACP configuration page](Screenshots/ACP 02.png)

Reporting issues

All issues, suggestions, ideas and feedback can be reported on the issues page of this repository. Feel free to do so. ๐Ÿ˜œ

staff-page's People

Contributors

tm-kn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

hugopghost

staff-page's Issues

Staff Page in the ACP won't show up on the side

Yes it is enabled for the group i'm using. Yes I do see that the owner doesn't maintain this anymore but any help would be great! I will ask the MyBB team if I don't get help here.
NVM fixed, IDK if this is new but to add the permission you go Users&Groups>Admin Permission>Then your name.Which is weird because before I just already had the Staff Page Config on the left without doing this step.

Order users

Users needs to be ordered somehow. Whether by name or manually like in case of the groups.

Enable HTML in Description

HTML is enabled - it works - when viewing the description in /admin/index.php?module=config-staff_page however, HTML doesn't seem to work when viewing the page live (/memberlist.php?action=staff)

It would be great if this would work, or you could direct me to making this work. I am using BBC at the moment, but would prefer the ability to use HTML

Thanks!

Performance

Using strtolower is not necessary when using ==. It would only be necessary if you are using === which forces exact matches including type.

Instead of using $_SERVER['PHP_SELF'] you should use the constant THIS_SCRIPT. All core files that constant will be like filename.php. This will make your code more consistent with MyBB coding standards. Similarly, use either $mybb->input['parameter'] or $mybb->get_input($parameter) instead of the superglobal $_GET.

This part is a bit confusing:
$query = $db->simple_select('staff_page_members', '*', $group_id ? ('group_id = ' . intval($group_id)) : '1', array('order_by' => 'user_id', 'order_dir' => 'ASC'));
Overall I really dislike using ternary operators even if it is shorter. It is much harder to read.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.