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
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,
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 :-)
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
could you develop the block for moodle ver 3.2
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.
On line 37 of quickfind.php, change:
$context = get_context_instance(CONTEXT_COURSE, $courseid);
to
$context = context_course::instance($courseid);
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
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();
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.
I think it'd be better to redirect them to the site-wide profile (rather than course profile). Thoughts?
On Line 126 of block_quickfindlist.php change pix_url
to image_url
On a 4.4 site, getting the following errors:
pix_url is deprecated. Use image_url for images and pix_icon for icons.
line 1949 of /lib/outputlib.php: call to debugging()
line 126 of /blocks/quickfindlist/block_quickfindlist.php: call to theme_config->pix_url()
line 337 of /blocks/moodleblock.class.php: call to block_quickfindlist->get_content()
Renaming pix_url to image_url in the block_quickfindlist.php file gets rid of that error.
When clicking on the block settings, it now throws the following errors (not exactly sure when this started) :
Coding error detected, it must be fixed by a programmer: Property config does not exist
Error code: codingerror
Also, for accessibility purposes, the block throws an accessibility error with accessibility checkers - it is needing an aria label for the text input box.
Thanks for looking at this. Happy to help test.
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.
Strict Standards: Creating default object from empty value in /home/garderief/public_html/blocks/quickfindlist/block_quickfindlist.php on line 201
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
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.