marxjohnson / moodle-block_quickfindlist Goto Github PK
View Code? Open in Web Editor NEWMoodle block providing a quick method of searching users
Home Page: http://moodle.org/mod/data/view.php?d=13&rid=2200
Moodle block providing a quick method of searching users
Home Page: http://moodle.org/mod/data/view.php?d=13&rid=2200
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
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.
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 nameI'm not a php coder so am not sure how feasible or practical these enhancements would be to implement.
Strict Standards: Creating default object from empty value in /home/garderief/public_html/blocks/quickfindlist/block_quickfindlist.php on line 201
I think it'd be better to redirect them to the site-wide profile (rather than course profile). Thoughts?
Hi,
sorry for double-posting, but I don't know if you are subscribed to Moodle Tracker.
Please have a look at http://tracker.moodle.org/browse/CONTRIB-3566
Thanks in advance
Alex
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
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 :-)
could you develop the block for moodle ver 3.2
Getting a lot of these errors in my error log. A quick replacement of pix_url
with image_url
on line 126 of block_quickfindlist.php fixed it.
On Line 126 of block_quickfindlist.php change pix_url
to image_url
On line 37 of quickfind.php, change:
$context = get_context_instance(CONTEXT_COURSE, $courseid);
to
$context = context_course::instance($courseid);
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()
Hi,
sorry for double-posting, but I don't know if you are subscribed to Moodle Tracker.
Please have a look at http://tracker.moodle.org/browse/CONTRIB-3568
Thanks in advance
Alex
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();
Hi,
sorry for double-posting, but I don't know if you are subscribed to Moodle Tracker.
Please have a look at http://tracker.moodle.org/browse/CONTRIB-3569
Thanks in advance
Alex
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.