Here is a first patch.
There are a lot of things which has still to be done, so if you want to test this patch you have to mean "develop" with testing :)

Comments

dawehner’s picture

StatusFileSize
new60.86 KB

Update.

dawehner’s picture

I would suggest to remove the conversion feature from bookmarks-$username to bookmarks-$uid

This is quite a lot of code which might not be needed because the user's could have already runned the update functions which converts the menu's.

ilo’s picture

dereine, I'm unable to apply the patch, is it build for HEAD really?

ilo’s picture

No, I was able to apply to the 6--1 branch, so this patch is not for head. Darthclue, are you going to be able to review patches? instead of a great 60k patch perhaps we can go with smaller parts, a patch per file or something eassier to review for you. I'm interested in having this working on D7 also, so I'll contribute to the upgrade.

Do we start again (porting dereine's code) with HEAD or is HEAD broken or something?

dawehner’s picture

Well one patch per file doesn"t make a lot of sense for me. You have to fix every file for D7.
Afaik i made a patch against DRUPAL-6--1

ilo’s picture

dereine, I'd say to commit your patches as they, are even if they are 100kb or more, but I was asking the module mantainer to provide an eassier way to review the changes (60kb is a big patch). I saw you rolled the patch from 6--1, any particular reason? do you know if HEAD's current status is far from 6--1 branch?

dawehner’s picture

Oh man. This sucks a lot. I should have written a patch against HEAD.

/me sucks!!

I'm not sure but i guess it has to be started from the beginning :(

Anonymous’s picture

To be completely honest I'm not sure what status HEAD is in.

Patches against the current stable release are preferred and will be reviewed as soon as time permits.

Since the module is heavily dependent on the Menu system I've been waiting for some of those issues to stabilize before moving forward with a D7 release.

ilo’s picture

ok, so, do you have any suggested plan?, lets begin with a clean HEAD setup?

dawehner’s picture

From my perspective this is the way to do it.

dawehner’s picture

I checkout out 6.x-1.x from git mirror.

The patch applies here. Are we really sure that i patched against the wrong branch?

How could i find this out in the code?

Anonymous’s picture

My apologies dereine but this patch is against a version of the module that is nearly 2 years old. If you want to re-roll this against the latest stable version then I'll consider it but I cannot accept this for D7 as is since it doesn't include any of the fixes or features that were introduced between 6.x-1.x and the latest stable release.

dawehner’s picture

I was just confused because the patch applied.

rsorokine’s picture

StatusFileSize
new23.91 KB

If anybody wants the final result (tested slightly) for Drupal 7, here it is, attached. It is based on the latest 6.x version of the module.

rv0’s picture

not tested yet, but subscribing for later

Anonymous’s picture

Status: Needs work » Closed (won't fix)

The manner in which the Bookmarks module functions creates a conflict with the Advanced Menu module. As such, there will NOT be a release of Bookmarks for D7 and the functionality of this module is being rolled into the Advanced Menu module. There will be a migration path that is fully supported from Bookmarks 6 to Advanced Menu 6 and 7.

alexkb’s picture

Hi darthclue,

As per the module page "I expect to have this ready before 1 Jan 2012." regarding an upgrade path for advanced_menu - has this progressed any further yet? Will the code be in bookmarks, or advanced_menu? Also will advanced_menu provide similar functionality as bookmarks?

I notice there hasn't been any commits since March 2011: http://drupalcode.org/project/bookmarks.git/log

We may be available to help, but don't want to be re-doing anyone's work.

Thanks.

Anonymous’s picture

Hello Alex,

The upgrade path for Bookmarks to D7 and beyond will be in Advanced Menu. Unfortunately, the last few weeks were a bit busier than I had expected and thus my progress has been delayed. Advanced Menu will provide similar functionality to bookmarks with the intention being that the end user will notice the change although the site admin will see some differences.

Thanks,
Jonathan

alexkb’s picture

Hi again darthclue, any progress with this? I notice the git logs still aren't showing much. I know what it's like with finding the time to maintain contrib's, so don't feel too bad about it. We might try do things manually with some SQL queries.. I'll post back anything we think could be useful.

alexkb’s picture

darthclue, I had trouble trying to find the bookmark functionality in advanced_menu, so ended up using the Flag module.

SQL used to convert bookmarks to flag module is as follows:

insert into flag_content (fid, content_type, content_id, uid, sid, timestamp) 
select
1,
'node',
substr(ml.link_path, 6), /* node id */
substr(ml.menu_name, 11), /* uid */
0,
NOW()
from menu_links ml 
left join users u on substr(ml.menu_name, 11) = u.uid 
left join node n on substr(ml.link_path, 6) = n.nid
where
substr(ml.link_path, 1, 4) = "node" and
substr(ml.menu_name, 1, 9) = "bookmarks" and
u.uid is NOT NULL and
n.nid is NOT NULL
ORDER BY substr(ml.link_path, 6) ASC
Virgil’s picture

Thank you for the module for D7 at #14. I tested it and at the end at file bookmarks_public.module there may be a curly bracket missing.
Great work.

Virgil’s picture

Ok, I need to take back the previous comment. The problem is that line 24 is a duplicate. Once you address that the module works properly.