I've been using content profile extensively in a timesheet application.
It works ok, but only because I've hacked my nodeapi to do so.
Here's the scenario. I create the a content_profile for the correct uid programmatically. I then go in and edit this profile from the admin account.
Two things happen that frustrate me:
1. The ownership of the profile reverts to admin (bad!)
2. The flag in the Drupal Content manager gets set to "new" when the node has just been updated.
I would love to have a cure for both these. The first has been fixed with a nodeapi hack, but it's not ideal. As for the second, I've traced node_save and checked that is_new is not set to true, but somehow the content manager always assumes it is whenever there's been an update.
Welcome your thoughts.
Comments
Comment #1
southweb CreditAttribution: southweb commentedAny thoughts on this ...?
Comment #2
southweb CreditAttribution: southweb commentedStill keen to get some feedback on this issue.
Comment #3
southweb CreditAttribution: southweb commentedHere's a stripped down version of my code to address the issue. I'd love not to have to do this, and am happy to be told I've wasted my time here!
As you can see we force the profile name to be "Settings for <username>". Not very elegant, but what's the alternative?
Comment #4
southweb CreditAttribution: southweb commentedI've upgraded this to a bug report as my support request has been ignored now for some months.
Comment #5
southweb CreditAttribution: southweb commentedAny update on this? Thanks
Comment #6
southweb CreditAttribution: southweb commentedSince posting this we have made a few updates. In hook_user we check to ensure the name hasn't been changed and if it has, we update the user's respective node title. A separate table with node ids correlated to user ids would be far nicer, and I can't understand why more effort has not been made to ensure the integrity of the relationship between user and their content profile.
Another tweak in hook_user is that when (op == form) we check to ensure a profile exists, and create one if not.
Am a bit disappointed not to hear back from the original developers on this post!
Comment #7
guydaniels CreditAttribution: guydaniels commentedJust to chime in. I'm having the same problem -- broken links to users after updating...