Bookmarks (within book chapter)
Maintained by
Hrvoje G
Bookmarks block plugin provides functionality of user bookmarks creation within the text of Moodle Book chapter (So-called book pins within the text). This can also be used to leave personal notes onto desired locations within Moodle Book chapter.
Comments
Comments are no longer open for new posts. Existing comments remain available to read.
Yes, I'm unable to continue the development on this one, I wish I could. I'm able to assist in development though as much the free time makes it possible for me. I'm always here for advice as well or for some small improvements and bugfixes. It's not that I'm resigning of it completely, I'll just not code it anymore. All the cards are open for now.
I published the plugin here here because there is nothing similar on Moodle yet and it sounds like an interesting idea. It could help someone for sure or at least open mind.
I've fixed the issues you posted on Github! Thanks for feedback!
Cheers!
Thanks for fixing the most crucial issues detected by Dan in his peer-review. Currently, it seems that the code would need a bit more clean-up and polishing to meet Moodle coding guidelines standards. I moved it into the 'Incubating' category so it can get a bit more mature there.
We will get to re-reviewing your latest version this week and will let you know. Thanks for your patience.
1. no more calls to $_POST, only required_param and optional_param calls.
2. define('AJAX_SCRIPT', true); is set but I created another file for non-ajax database access
3. confirm_sesskey() is now used before any database action
4. I agree to your proposal on file name change: modifybookmarks.ajax.php
5. documentation is moved out of github
6. $SESSION is not used anymore at all. Not necessary needed
7. not any user is allowed to delete or update any record from database anymore
Are there any further comments? Should I re-apply?
I am going to mark this plugin as needing more work to get these issues sorted out. Please note, I am having troubles to precheck the plugin code with our tools due to space characters in you directory and file names (Installation instructions). I admit it is a bug in our checking system (as we normally do not allow spaces in filenames), still you may want to move those instructions out of the plugin code to a web site or so.
thanks for sharing the plugin. I've just had a quick look and noticed that the file dbaccess.php introduces some security issues and doesn't seem to be complete (you have some TODO comments at the top of the file that suggest you are already aware of this.)
Specifically - you make a call to $_POST which is not allowed - you should be using required_param and optional_param calls.
you should add the following text to the top of the page:
define('AJAX_SCRIPT', true);
You should be passing the sesskey() to the ajax script and checking it before any actions are taken.
https://docs.moodle.org/dev/Security:Cross-site_request_forgery
a better name for that file might be modifybookmarks.ajax.php rather than dbaccess.php