Blocks: Quickfind List

Maintained by Picture of Mark JohnsonMark Johnson, Picture of Ray MorrisRay Morris
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
312 sites
17 fans
Current versions available: 2

The Quick Find List block can be added to a course or site page to allow searching of users within that page.

Each instance of the block can be configured to search only for users with a certain role, or for all users.

With Javascript enabled, the block will "find as you type", otherwise it will display a button to perform the search.  Each search result will display as a link which defaults to the user's profile - this link can be customised for each instance of the block.

Please dont report bugs here

If you experience an error with the block, or would like to request a feature, please use the "Bug Tracker" link below.


Screenshot #0
Screenshot #1
Screenshot #2


Picture of Mark Johnson
Mark Johnson (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS


  • Picture of Allen Woerner
    Sat, Feb 18, 2012, 9:58 PM
    For some reason I can't seem to get this to display to teachers and managers etc. As an admin I've gone to manage blocks, and set it to apply on ALL pages within the site. I then signed in as a teacher and it still wasn't showing up for me. As a teacher I went to My Home, then clicked, Block Editing on, and I could then see the quick find list Block, delete it, move it around etc, but it wasn't giving me the field to input a name. Now I'm guessing this has something to do with permissions, because I then added the teacher as a system role and I could see quick find block with the input field open. But I don't want to give permission to a teacher to have system access. What permission do I have to set to allow the teachers and managers to see the block appear, and more importantly see the field to input the student names. I have tried Assign Roles and View Participants under System access for Teachers and Managers, to no avail. Any help would be appreciated! I'm sure it's something small I'm missing. Thanks!
  • Picture of Mark Johnson
    Thu, Mar 1, 2012, 4:38 PM
    Thanks for the report Alan, I've added it to the github tracker with what's going on:

    The way we have Moodle set up, all staff have a system role called "Staff", which has permissions like quickfindlist:use. Until the issue is resolved, this could be a possible workaround.
  • Picture of ces moce
    Tue, Jul 3, 2012, 10:17 PM

    Strict Standards: Creating default object from empty value in /home/garderief/public_html/blocks/quickfindlist/block_quickfindlist.php on line 201
  • Picture of Emma Richardson
    Sat, Sep 1, 2012, 3:28 AM
    This is the greatest block ever!! I always hated it when I had to search for a user. This is going to save me so much time - thank you!!!
  • Health & Safety Training Ninja
    Fri, Mar 22, 2013, 9:30 PM
    Good Block, very handy. I attempted to add in code for showing useremail addresses, but having issues. Not certain why as it's seems very straight forward. Just had to put in extra code for the email field and tell the block to user email in the display settings, but it's not show the email. Checked all files individually and not certain why I can't get the email to show..... Hopefully Mark may add email and show us how it's done properly ;-P
  • Picture of Ray Morris
    Fri, Jul 26, 2013, 9:32 PM
    Line #66:
    AND pagetypepattern = "?"
    should be:
    AND pagetypepattern = ?

    The whole point of bound parameters is that you don't quote them, and therefore need not worry about embedded quotes, SQL injection, etc.

    Also the quotes are incorrect. Double quotes in the SQL may work for some version of some database, but correct SQL is single quote. Therefore:
    $where = "WHERE name = 'quickfindlist'
    AND pagetypepattern = ?
    AND parentcontextid = ?
    AND < ?";

Please login to post comments