## Blocks: User bookmarks

block_user_bookmarks
Maintained by Gurvinder Singh, Jonas Rüegge
User Bookmarks allows users to bookmark any moodle page.
87 sites
6 fans

User Bookmarks (for Moodle 2.0-2.5)

This Block adds the possibility for Users to create their own URL bookmarks.

Simple but usefull, be it to set a shortcut to an administration function deep in the menu, or to have your favorite courses at your fingertip.

It's currently based on the admin_bookmarks block.

A new Version with it's own Database and Upgrade Function for previous Versions which is compatible with Moodle 2.6.x and 2.7.X is in development and expected to be available End of 2014.

### Contributors

Jonas Rüegge: Maintainer

• Thu, 4 Sep 2014, 7:52 PM
No, Maybe in the next release.
Currently the bookmarks are stored user-specific.
• Thu, 2 Oct 2014, 2:39 AM
I noticed today in both Moodle 2.6.1 and 2.7.2 that in some courses the "Bookmark this site" link does not work.

Suspecting a JavaScript issue I turned on Firebug and observed the following error:

SyntaxError: missing ) after argument list
...urse/view.php?id=2088', 'Course: Gerald's Test Course 789', 'DO7wJOuB9M', 'http:...
view.php?id=2088 (line 1, col 56)

So the problem looks to be an unescaped apostrophe in the course title that is prematurely closing a parameter, breaking the script.

I have fixed this on my beta site by replacing line 165 in block_user_bookmarks.php
Old:
$bookmarktitle =$PAGE->title;
New:
$bookmarktitle = addslashes($PAGE->title);

This fixes the problem by escaping quotes and apostrophes in the course title.
• Thu, 2 Oct 2014, 2:24 PM
Thanks for the Feedback Gerald i will Test and implement it in the next Version,
The current Version here is not intended for 2.6. You can check out the Version at Github or wait untill the 19.10, when I will release a completely new Version with it's own databasetables.
(since the current solutation has not just a limitations on the amount of links one user can theoretically create but also a high probability for running into Problems with non ASCI characters on Multilingual environements, mainly ones with Asian Characters)
• Sat, 11 Oct 2014, 7:40 AM
This is a great module. Any chance you could add the option to re-arrange links and import/export.
Cheers,
Jesse
• Mon, 13 Oct 2014, 2:08 PM
It's planed for the next Version (Release Date 19.10.2014)
I was also thinking about a bookmarkexport / Import with Firefox, but that's something for a November or december release
• Thu, 13 Nov 2014, 9:12 PM
Hello! Whenever I try to bookmark a course main page that uses a format such as the Grid format or the TabTopics format, I can't create the bookmark because there is a yui code embedded in the link.
Click me to create a bookmark
You can see it in the example above after "id=" in the link.

With other formats, I do not see that yui code and can create the bookmark with no problem. Do you have any advice here?
• Thu, 22 Jan 2015, 2:25 AM
Hi Jonas,
Thanks for the reply, hows development coming along? I've had to uninstall this plugin for now, it was causing a few errors in 2.8. I'm missing it quite a bit :p
Cheers,
Jesse
• Tue, 3 Feb 2015, 8:30 PM
Sorry to all that have been waiting for a new release in December.
I didn't have the time to test it and the next release is supposed to fix all the Problems as automatic as possible.

• Tue, 3 Feb 2015, 8:31 PM
Also there was the release of 2.8, so I have to fix some things for this Version too.
• Fri, 27 Mar 2015, 3:06 AM
Hi, I tried to install you plugin:
(https://github.com/BBZ-ICT/moodle-user_bookmarks, moodle 2.7)
in a moodle 2.8 but i got this error "Fatal error: Call to undefined function xmldb_block_user_bookmarks_upgrade() in /home/develtel/public_html/training/lib/upgradelib.php on line 897"
Please, may you help me to fix this issue?
• Fri, 26 Jun 2015, 10:31 PM
Hi Jonas,
Hows the update coming along ;p
This plugin was so handy!
Cheers,
Jesse
• Fri, 26 Jun 2015, 11:48 PM
... about A Year late at best.
Sorry was too busy with other Projects and no one Sponsoring my work.
I have a working local build, but no time to test it on 2.8 and 2.9.
are you applying as Betatester?
If I find time I'll finish a refactored release which will really be usefull
• Sat, 11 Jul 2015, 8:43 AM
Hi Jonas, I would love to test the block on 2.9
• Thu, 13 Aug 2015, 6:31 AM
Hi Jonas,
We are using this plugin and we like it very much. There is a limitation with it. It uses the user_preferences table to store the book mark of a user in the value field of the table. The type of the field is varchar (1333). We had a situation where the bookmarks exceeded this size. We got this error:
Coding error detected, it must be fixed by a programmer: Invalid value in set_user_preference() call, value is is too long for the value column

• Thu, 13 Aug 2015, 6:35 AM
We also noticed that to "explode" the bookmarks from the string field, you are using a ",". We have some errors if the Title has a "," on it. Is there a way to avoid this problem? Thanks for your work. Carlos