r-a-y / buddypress-followers

Follow users on your BuddyPress site. Similar to Twitter!
http://wordpress.org/plugins/buddypress-followers/
74 stars 39 forks source link

Info on how to migrate friends -> followers #21

Open jetlej opened 10 years ago

jetlej commented 10 years ago

If someone has a site that has been using 'Friends' forever and now wants to switch all functionality to following, it would be awesome to have some kind of db migration script!

Not an issue, but would be amazing :)

jwenerd commented 10 years ago

I did this for our site with a command line script like the following:

https://gist.github.com/jwenerd/71d22393a4d377fbfd21

jetlej commented 10 years ago

@jwenerd - Thank you!!

espellcaste commented 10 years ago

Awesome!

r-a-y commented 10 years ago

Thanks for contributing this script, @jwenerd. I've just added this to the wiki homepage: https://github.com/r-a-y/buddypress-followers/wiki

r-a-y commented 10 years ago

An update on this.

BuddyPress 2.0 is going to add a "Tools" page so plugins can add in various upgrade and importer scripts. Once the "Tools" page is implemented, BP Follow will add in a script to convert friends to followers.

vikramshaw commented 9 years ago

Can any one tell me where to add this codes so my buddypress friends can be converted into follow

webpolk commented 8 years ago

I updated the script to work with the current plugin implementation and put it here - https://gist.github.com/webpolk/db79a452eb2ad73a9669

@vikramshaw I just put this in the root of my WordPress install and ran it like this in the terminal:

php -f friend-convertor.php

I hope this helps someone else.

Thanks, @r-a-y for the great plugin and @jwenerd for the initial conversion script.

vikramshaw commented 8 years ago

Thanks for the reply @webpolk, but the thing is I'm new to the wordpress so kindly tell me in details where to put this codes. Thank you.

webpolk commented 8 years ago

@vikramshaw I will do my best, but I suggest some basic reading up on WordPress if you don't know what the root directory is.

When you are looking at your site, the root folder that contains your WordPress install will have your wp-config.php file and folders like, wp-content, wp-includes and wp-admin.

Add the script that I revised to this folder. Edit the values to match your setup.

Run your current php in the console: php -f friend-convertor.php.

That's it, really.

Good luck!