latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

About: Laurie Nicholas

Sorry, I've not written a description yet. I'll get to it soon!


Topics I'm Subscribed To


Topics I've Started

Viewing 2 topics - 1 through 2 (of 2 total)
Topic Count Last Reply
Buddypress 1.6 Errors

By:  Laurie Nicholas in: Community Forum

voices: 5
replies: 13

4 years, 4 months ago  Cristián Lávaque

Extending for Realex gateway problems

By:  Laurie Nicholas in: Community Forum

voices: 2
replies: 1

4 years, 8 months ago  Raam Dev

Viewing 2 topics - 1 through 2 (of 2 total)

My Latest Replies (From Various Topics)

Viewing 10 replies - 1 through 10 (of 10 total)
Author Replies
Author Replies
Posted: Thursday Nov 22nd, 2012 at 6:44 am #32332

I emailed Anton and he replied with this:

hey sure
here is the code

just put it in the functions.php
and change the names of the s1member filed ids with the proper buddypress field names.

/* ----------- POPULATING CUSTOM FIELDS AT REGISTRATION ------------- */




add_action('wp_head', 'ch_s2_registration_field_population', 10, 2);
function ch_s2_registration_field_population() {

        global $current_user;

        get_currentuserinfo();

        // Do that only at the first login of the user
        if(get_user_field("s2member_login_counter") < 2) {

                if(xprofile_get_field_data('Spouse Name', $current_user->id) == '' && get_user_field('Spouse_Name') != '' ) {  // checking if the BP field is empty and s2Member field is not…
                        xprofile_set_field_data('Spouse Name', $current_user->id,  get_user_field('Spouse_Name')); // then populating it.
                }

                if(xprofile_get_field_data('Address', $current_user->id) == '' && get_user_field('Address') != '' ) {
                        xprofile_set_field_data('Address', $current_user->id,  get_user_field('Address'));
                }

                if(xprofile_get_field_data('City', $current_user->id) == '' && get_user_field('City') != '' ) {
                        xprofile_set_field_data('City', $current_user->id,  get_user_field('City'));
                }

                if(xprofile_get_field_data('State', $current_user->id) == '' && get_user_field('State') != '' ) {
                        xprofile_set_field_data('State', $current_user->id,  get_user_field('State'));
                }

                if(xprofile_get_field_data('Zip', $current_user->id) == '' && get_user_field('Zip') != '' ) {
                        xprofile_set_field_data('Zip', $current_user->id,  get_user_field('Zip'));
                }

                if(xprofile_get_field_data('Home Phone Number', $current_user->id) == '' && get_user_field('Home_Phone_Number') != '' ) {
                        xprofile_set_field_data('Home Phone Number', $current_user->id,  get_user_field('Home_Phone_Number'));
                }

                if(xprofile_get_field_data('Cell Phone', $current_user->id) == '' && get_user_field('Cell_Phone') != '' ) {
                        xprofile_set_field_data('Cell Phone', $current_user->id,  get_user_field('Cell_Phone'));
                }

                if(xprofile_get_field_data('Occupation/Family Businesses and Services', $current_user->id) == '' && get_user_field('Occupation_Family_Busines') != '' ) {
                        xprofile_set_field_data('Occupation/Family Businesses and Services', $current_user->id,  get_user_field('Occupation_Family_Busines'));
                }

                if(xprofile_get_field_data('Family Interests and Hobbies', $current_user->id) == '' && get_user_field('Family_Interests_Hobby') != '' ) {
                        xprofile_set_field_data('Family Interests and Hobbies', $current_user->id,  get_user_field('Family_Interests_Hobby'));
                }

                if(xprofile_get_field_data('Church', $current_user->id) == '' && get_user_field('Church') != '' ) {
                        xprofile_set_field_data('Church', $current_user->id,  get_user_field('Church'));
                }


        }


}
Posted: Thursday Nov 22nd, 2012 at 5:47 am #32320

Hi Anton,
I’m trying to implement the same thing in my installation of S2Member and Buddypress but I’m having a little trouble making sense of this thread.
Would be able to explain/share your final code on how you got this running?
Many thanks in advance,
Laurie

Posted: Thursday Aug 9th, 2012 at 5:26 am #21609

Robert – did you get anywhere with this? The fact that the S2Member custom fields aren’t searchable is pretty much a deal breaker for me so I need a way of sending the x-profile BP fields with the pro form.

Posted: Thursday Aug 9th, 2012 at 5:07 am #21608

Nothing yet Cristian – I’m yet to go live but my dev environment is running fine so far.

Posted: Wednesday Aug 8th, 2012 at 8:53 am #21500

Cristián – Thanks for getting back in touch. I took the steps recommended in your server script and increased my wordpress memory quota in wp-config.
Many thanks,
Laurie

Posted: Wednesday Aug 8th, 2012 at 4:50 am #21459

Bump. ETA please, people.

Posted: Tuesday Aug 7th, 2012 at 2:02 pm #21389

Not even an acknowledgement? Just something saying ‘Thanks for the error log, we’ll look into getting an ETA for you…’ or even a question ‘Are you sure this is S2member?’ (I am by the way) – This is really not how you treat your customers.

Posted: Tuesday Aug 7th, 2012 at 10:38 am #21376

This is a pretty pathetic response time, especially for a product I’ve paid money for.

Posted: Tuesday Aug 7th, 2012 at 9:56 am #21372

Things that go bump in the night

Posted: Tuesday Aug 7th, 2012 at 7:26 am #21355

There seems to be a fatal error at the moment which I have detailed here: http://www.s2member.com/forums/topic/buddypress-1-6-errors/

Viewing 10 replies - 1 through 10 (of 10 total)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.