Closed (fixed)
Project:
User Relationships
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
1 Oct 2007 at 21:43 UTC
Updated:
12 Nov 2007 at 22:42 UTC
In addition to porting buddies from the buddylist module, we should also port users' preferences re: email notifications to ease migration from buddylist.
Comments
Comment #1
sprsquish commentedComment #2
gwen commentedI wrote a script that can be used to do this. We should add this functionality to the generic migrate module, but if folks can't wait, code follows:
If you want to run the script, copy code into some file at the docroot level (e.g. ur_buddylist_settings.php) and hit it from a browser.
Comment #3
gwen commentedI just noticed an error in code. The object variable that stores user data is $object, not $user. The correct code is:
Comment #4
prfctns6@gmail.com commentedI would recommend putting the serialize and UPDATE statement inside the if block. No point updating user records that haven't changed.
Comment #5
prfctns6@gmail.com commentedI've integrated gwen's code into the migrate plugin, and have committed the changes.
Comment #6
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.