Your Moodle version

Blocks: User bookmarks

Maintained by Picture of Gurvinder Singh Gurvinder Singh, .?. Jonas Rüegge
User Bookmarks allows users to bookmark any moodle page.
Moodle 2.1, 2.2, 2.3, 2.4, 2.5

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.





Picture of Gurvinder Singh
Gurvinder Singh (Lead maintainer)
Jonas Rüegge: Maintainer
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • .?.
    Thu, Feb 13, 2014, 10:52 PM
    I think I know what happened.
    An old Version of the plugin saves URL's and Data in a way where certain special Signs can cause critical Problems .
    The Next Major Version of the Plugin will fix this issue permanently.

    Which Version are you currently using?
    Did you change Version in between?
  • .?.
    Thu, Feb 13, 2014, 11:06 PM
    To solve your User Problem you need to access the DB manually, the table user_preferences to be specific

    Check the Table of the User with following query:
    SELECT *
    FROM `user_preferences`
    WHERE `name` LIKE 'user_bookmarks'
    AND userid = XY
    where XY stands for the Users ID (in table users) as an int

    Now save the Content of "value" in a Text editor and empty "value" in the database.

    The String in your Editor should look like:

    /My/Moodle/URL|Name for my Link | /My/Moodle/URL2|Name for my Second Link ....

    Or with the old and buggy Version:
    /My/Moodle/URL;Name for my Link ; /My/Moodle/URL2;Name for my Second Link ....

    Find the part of the string that doesn't follow that rule, correct it and put it back in the Database
  • .?.
    Thu, Feb 13, 2014, 11:10 PM
    Hint: It's probably the last part.

    Now if your String looks mixed up (; and | as separator) change them all to |.
  • Picture of Randall Kujawa
    Thu, Feb 13, 2014, 11:17 PM
    THANK YOU for the quick response. We were using 1.1.2 (2013072202). When I reinstalled I used the same version. I was going to upgrade to 1.1.3, but was not sure if was good since there have been few downloads for that release, and it's not listed as the latest. If I do go with 1.1.3, can I just delete the old (From Moodle and the Server) or do I need to follow the Upgrade instructions and execute UPDATE user_preferences SET value = REPLACE( value, ';', '|' ) WHERE name LIKE 'user_bookmarks' (I am assuming that's a command for MySQL database, right? Sorry for the dumb question. I get by, but am not very confident on my database skills)

    I'm not worried about keeping our old Bookmarks, they can recreate them.

    And Thanks Again!!
  • Picture of Randall Kujawa
    Thu, Feb 13, 2014, 11:25 PM
    OK, Thanks
  • .?.
    Thu, Feb 13, 2014, 11:56 PM
    There will be a new debugged Version sometime soon.
    If you need it now, use 1.1.3 and the DB query, or if you don't care about your old bookmarks:
    DELETE FROM user_preferences
    WHERE name LIKE 'user_bookmarks'
  • Picture of Randall Kujawa
    Thu, Feb 13, 2014, 11:59 PM
    That FIXED IT!! Thanks again! I really appreciate your help!
  • .?.
    Fri, Feb 14, 2014, 12:02 AM
    I never tested 1.1.3 with a Moodle version below 2.5, and i still don't consider it stable, since it's more of a bug fix for anyone in need of Asian or other special non ASCII Characters as Bookmark titles, still lacking the major problem of using a simple separator sign for storing multiple values in on single Database field, which is kind of stupid but the way admin_bookmarks that probably never was ment for this kind of purpose works.
    So to fix this design issue i'll need an own Databasetable and Design for the plugin which will follow in the next major release, sometime this summer.
  • .?.
    Fri, Feb 14, 2014, 12:02 AM
    (since i don't really have time for it now)
  • Picture of alfren enriquez
    Sun, Feb 16, 2014, 10:20 PM
    @Jonas Rüegge I replied to your private message
  • Picture of Jona Turner
    Fri, Apr 4, 2014, 3:54 PM
    Hi, I'm really interested in using your plugin, however I'm on Moodle 2.6 and obviously want to avoid any current bugs that have been highlighted above.... Is there a release date for a 2.6 supported version coming soon?

    Many thanks
  • .?.
    Mon, Apr 7, 2014, 6:14 PM
    I was planning on leaving 2.6 and going directly to 2.7.
    There will defenitely be a Version for 2.7, which should be compatible with 2.6, but not before may
  • Picture of Gerald Albion
    Sat, May 3, 2014, 2:28 AM

    I am trying to use this block in Moodle 2.6.1, but on every page where the block is present I get this:

    Warning: Creating default object from empty value in /var/web/wwwroot/blocks/user_bookmarks/block_user_bookmarks.php on line 81
    Call Stack
    # Time Memory Function Location
    1 0.0036 240320 {main}egg ../view.php:0
    2 0.0444 5039488 core_renderer->headeregg ../view.php:252
    3 0.0444 5039824 moodle_page->set_stateegg ../outputrenderers.php:791
    4 0.0444 5040168 moodle_page->starting_outputegg ../pagelib.php:855
    5 0.0468 5072288 block_manager->create_all_block_instancesegg ../pagelib.php:1424
    6 0.0475 5205288 block_manager->ensure_instances_existegg ../blocklib.php:931
    7 0.0475 5205288 block_manager->create_block_instancesegg ../blocklib.php:992
    8 0.0478 5231448 block_instanceegg ../blocklib.php:916
    9 0.0480 5259424 block_base->_load_instanceegg ../blocklib.php:1656
    10 0.0480 5259520 block_user_bookmarks->specializationegg ../moodleblock.class.php:442

    Line 81 attempts to set a property of $this->config, which leads me to believe that $this->config is not set. So I added this at line 81:

    if (!isset($this->config)) {
    $this->config = new stdClass();

    The problem went away, but I would rather not patch third-party code myself. Is there an "official" patch for this?

  • .?.
    Mon, May 5, 2014, 2:19 PM

    Currently there's no Version of the Plugin for 2.6.X.
    There will be an updated Version for the 2.7 Stable once it is released.
    1.1.3 might also solve your Problem.
  • Picture of Mykl Belfatto
    Sun, Jul 6, 2014, 1:04 AM
    I have it installed for test in 2.7 and I noticed that if you bookmark a page in English and change language, User Bookmarks don't change. Don't know if this is because of 2.7 or not but I figured I'd let you know.
1 2 3
Please login to post comments