Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Importing BP profiles into SP profiles
Avatar
ToySoldiersUnite
Member
Free Members
sp_UserOfflineSmall Offline
Jul 11, 2014 - 4:33 am

So we're wanting to dump Buddypress altogether at the moment, and just use Simplepress. (Codemonkey made a replacement for groups, which was the only thing we were holding onto).

We'd like to move user profile data (custom fields and such) over to the simplepress profiles. This includes avatars.

I did notice that the SP photo album only takes links to pictures, rather than allowing a user to upload them, which poses a problem.

How would you suggest we go about this import? Is it a matter of copy & pasting, running a cron job, or something more taxing?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jul 11, 2014 - 4:38 am

Before we start - you mention avatars and user photos... Are we talking about both or am I misunderstanding?

Perhaps having more detail on what you want to try and bring over would be a good starting place. Along with 0 of you know - the current storage model that BuddyPress uses for them....

andy-signature.png
YELLOW
SWORDFISH
Avatar
ToySoldiersUnite
Member
Free Members
sp_UserOfflineSmall Offline
Jul 12, 2014 - 5:44 pm

We can ignore the photo albums for the time being, but getting the avatars over would be a good thing.

This got passed along by our codemonkey:

So as to how BuddyPress stores the custom profile data:

Buddypress uses a combination of of 2 tables in order to store and retrieve the information.
Where Simple Press uses one table row in order to store all the custom fields in a json object.
And saves all the custom data in the normal wp_usermeta table.

Writing a conversion script for this isn't that hard.

The big difference is that BP allows extra validation rules for the input, as well as a description for the custom fields.
(required or not, and what to insert into the fields)
These things would be nice to have in the custom SP fields as well.

Another problem we found with simplepress (but this could be due to local testing) is that the profile tabs link to index.php.
Rather than show the data in the therefore created box underneath them.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 12, 2014 - 5:47 pm

on your local site, you will want to go to forum - toolbox - housekeeping and reset the profile tabs.. this will fix them locally if they are pointing to the live site (where they could not be included from)...

have you used the custom profile fields plugin for sp?  allows you to create any profile custom field...  and then a template tag lets you show it anywhere... or for avatars, you could hook into the avatar display code and return back the custom avatar...

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jul 13, 2014 - 3:57 am

When it came to additional custom profile data. Simple:Press adopted what was and is the WordPress standard of using the usermeta table. It is not a great design - like most of the WordPress schema it was designed before more professional DB analysts came along and before anyone knew WP would be a success! But t works well enough.

It also means that profile data created by any other plugin that has adopted the same standards can easily be displayed within the SP profile panel by using (as Mr papa said above) the custom profile field plugin we have available. If BuddyPress does not use the WordPress standard profile storage then I have to say I am a little surprised. By the way - I do mean this is for extended profile data - not specific Simple:Press user data.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625