I've managed to do a quick hack to get this working on D7.

Working on Drupal-7.21.

List of changes:
1. floating_manager_menu_perm() changed to floating_manager_menu_permission() as well as structure of function changed
2. defining of FLOATING_MANAGER_MENU_SKIN moved to floating_manager_menu_init()
3. drupal_add_library('system','ui.draggable') used in hook_init() instead of jquery_ui_add()
4. floating_manager_menu_positioning_set() set inside hook_init() because I was getting some undefined keys issues with all the $_SESSION variables used
5. floating_manager_menu_page_alter() added to make use of floating_manager_menu_footer()
6. drupal_render() added to menu_tree in floating_manager_menu_footer()
7. the 2 JS files were changed to make use of jQuery() instead of $()

Hope this is of use to someone!

CommentFileSizeAuthor
floating_manager_menu.tar_.gz14.64 KBcmcs

Comments

jdschroeder’s picture

Status: Active » Needs review

Thanks for doing this. The one problem I'm having is with item 4, "floating_manager_menu_positioning_set() set inside hook_init()." The session variables are allowing the menu to be repositioned on a per-user basis and have its location persist on page changes. This change is causing the global default to be applied on every page load. I've changed the floating_manager_menu_positioning_css() to confirm that those sessional variables are set before using them. This should address the PHP notices you were seeing.

I'll add this in a 7.x-dev branch and do a little more testing before a release.

cmcs’s picture

Thanks jdschroeder, I did notice that once I started using the module. I also made the change and just never got around to update it here.

jdschroeder’s picture

Version: 6.x-1.x-dev » 7.x-1.3
Status: Needs review » Closed (fixed)