Giter Site home page Giter Site logo

moodle-block_quick_user's Introduction

Quick User Search

Build Status Open Issues License

Moodle 3.4 supported Moodle 3.5 supported Moodle 3.6 supported Moodle 3.7 supported

The quick_user block allows you to search quickly for users, without having to go through the Moodle user interface.

  • As site admin or user with block/block_quick_user:searchall capability - Search all users in the site (if the block is on the site home or "my dashboard")
  • As a user with block/block_quick_user:search capability - Search all users on the course

Requirements

Moodle 3.4+

Screenshots

These screenshots were taken on a plain Moodle installation with no fancy theme installed. Appearances may vary slightly depending on your theme.

The Block:

block

The block with some search results:

block-with-results

Search results expanded to see extra links:

block-with-expanded-results

Installation

From github:

  1. Download the latest version of the plugin from the Releases page.
  2. Extract the directory from the zip file and rename it to 'quick_user' if it is not already named as such.
  3. Place the 'quick_user' folder into your Moodle site's /blocks/ directory.
  4. Run the Moodle upgrade process either through the web interface or command line.
  5. Add the block to a page and start using it

License

https://www.gnu.org/licenses/gpl-3.0

Support

If you need any help using the block, or wish to report a bug or feature request, please use the issue tracking system: https://github.com/cwarwicker/moodle-block_quick_user/issues

moodle-block_quick_user's People

Contributors

bedcoll-cwarwicker avatar

Watchers

 avatar  avatar  avatar

Forkers

martinvivek

moodle-block_quick_user's Issues

fails in postgres

When using this in postgres I get the following error:

Error reading from database Debug: ERROR: column " " does not exist\nLINE 2: ... = $3 OR u.idnumber = $4 OR '' || u.firstname || " " || u.l...\n ^\nSELECT DISTINCT u.id FROM mdl_user u INNER JOIN mdl_role_assignments r on r.userid = u.id\n INNER JOIN mdl_context x on x.id = r.contextid and x.contextlevel = $1 and x.instanceid = $2 WHERE (u.username = $3 OR u.idnumber = $4 OR '' || u.firstname || " " || u.lastname = $5) AND u.deleted = $6 ORDER BY u.lastname ASC, u.firstname ASC, u.username ASC, u.idnumber ASC LIMIT 50\n[array (\n 0 => 50,\n 1 => '7',\n 2 => 'test',\n 3 => 'test',\n 4 => 'test',\n 5 => 0,\n)]\

changing the double quotes in the sql to single quotes ' ' fixes that error, but if I run that query manually in postgres I get:
ERROR: for SELECT DISTINCT, ORDER BY expressions must appear in select list

It might be better for you to install this on a postgres site and make sure it works?

thanks!

Moodle 4 support

Hi,
Could you please add support for Moodle 4?
Even if the current version of the plugin would work on Moodle 4, an official support would be great.

Thanks even for considering it :-)

Missing privacy api

Moodle uses a privacy API for GDPR compliance to allow plugins to specify how they deal with user data. It doesn't look like your plugin stores user data so you should be able to implement the simple null provider.

Sites that use continuous integration processes will not be able to use your plugin because Moodle runs unit tests which check to see if all extra plugins include the privacy class.

More information on the privacy class is here:
https://docs.moodle.org/dev/Privacy_API

please note this is not a block for approval in the plugins db at this stage.

Incorrect camel case

Moodle uses sentence case - strings like:
$string['exactresults'] = 'Exact Results';
should be:
$string['exactresults'] = 'Exact results';

(this does not block approval in the plugins db)

consider adding travis-ci support

Some of the tests run by the Moodle.org plugins db can be run via travis-ci on each commit in your github repo. Enabling Travis integration helps you to make sure future changes to your plugin will continue to follow the guidelines.

More information on this is here:
https://moodle.org/mod/forum/discuss.php?d=323384

but the short version:
grab this file:
https://github.com/moodlerooms/moodle-plugin-ci/blob/master/.travis.dist.yml
rename it as .travis.yml and put in the root of your github directory.
Go to:
https://travis-ci.org/profile/YOUR_GITHUB_USERNAME
Flick the switch for this repo.

then on every commit you make to github it will fire off a request to travis to run the tests in .travis.yml and will give you traffic lights beside each commit and generate a report.

something else you might want to change:
in .travis.yml the default file has this line:

env:
global:

MOODLE_BRANCH=MOODLE_35_STABLE
you might want to add other branches to that list - so you might want to change it something like:

env:
global:
MOODLE_BRANCH=MOODLE_35_STABLE
MOODLE_BRANCH=MOODLE_36_STABLE
MOODLE_BRANCH=MOODLE_37_STABLE

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.