Coder Social home page Coder Social logo

marxjohnson / moodle-block_quickfindlist Goto Github PK

View Code? Open in Web Editor NEW
6.0 9.0 15.0 53 KB

Moodle block providing a quick method of searching users

Home Page: http://moodle.org/mod/data/view.php?d=13&rid=2200

PHP 61.55% JavaScript 8.51% CSS 1.06% Gherkin 28.88%

moodle-block_quickfindlist's Introduction

Quick Find List Block for Moodle

This block allows quick searching of users from a block, and displays a configurable link for
each search result

To install, place all files in /blocks/quickfindlist and visit /admin/index.php in your browser.

This block was written by Mike Worth <[email protected]> and Mark Johnson <[email protected]> and is
Copyright Taunton's College, Southampton.  It currently maintained by Mark Johnson.

Russian translation by George Wise

Released Under the GNU General Public Licence http://www.gnu.org/copyleft/gpl.html

moodle-block_quickfindlist's People

Contributors

atlet avatar davidpesce avatar marxjohnson avatar mattrice avatar sensei-hacker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

moodle-block_quickfindlist's Issues

use permission is only checked in system context

As reported by Alan Woerner

The issue Alan describes occurs as the has_capability call in get_content uses the system context, not the current instance context. This is partly due to laziness, but also partly down to security as the block potentially searches all users in the system. Extra permissions checking may need to be implemented to ensure that a user only sees results for users that they are allowed to know about.

Add thumbnails to results

From http://tracker.moodle.org/browse/CONTRIB-2759

This block along with the quick find block are really useful to our users.
Upon discussion with a colleague I thought I would float a couple of things that we think would make the blocks even better:
...
2) When returning results to include a small thumbnail of the user next to their name

I'm not a php coder so am not sure how feasible or practical these enhancements would be to implement.

Strict Standards warning

Strict Standards: Creating default object from empty value in /home/garderief/public_html/blocks/quickfindlist/block_quickfindlist.php on line 201

can't search by idnumber

We put the students idnumber on the mdl_user idnumber field and it's useful to be able to search for students by this number.

below is a patch that enables this - it includes knocking out accounts from search with a lastname of 'Guardian' as we use this to create guardian access accounts for our students

git://gist.github.com/3175344.git

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 :-)

moodle 3.2

could you develop the block for moodle ver 3.2

PATCH - No longer MySQL specific

This fixes some MySQL-specific and erroneous quoting, so it now runs on other RDMS systems such as Microsoft SQL Server. More specifically:

Bound parameters are not quoted, as the binding handles that (uses ?, not "?").

String literals use single quotes, double quotes are for identifiers (MySQL accepts backticks for identifiers):
http://www.savage.net.au/SQL/sql-2003-2.bnf.html#character%20string%20literal

Use Moodle's $DB->sql_concat rather than MySQL-specific CONCAT()

sensei-hacker@e708c80

some non-english characters not recognized

It does not recognize some accented characters from my language (those are correct UTF-8 characters, and there is no such problem on database), for instance š ř č (see example). On the other hand, it correctly "parses" vowels like á ö ... as a, o (I am on Moodle 2.6.7, if it helps)
ignored_char_quickfindlist_input

get_context_instance() deprecated since, use context_xxxx::instance() instead.

master (Moodle 2.6DEV) throws this warning:

get_context_instance() is deprecated, please use context_xxxx::instance() instead.

In deprecatedlib.php, I see get_context_instance has been deprecated since 2.2.

On line #97 of blocks/quickfindlist/block_quickfindlist.php, change:

$context_system = get_context_instance(CONTEXT_SYSTEM);

to:

$context_system = context_system::instance();

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.