Forum Replies Created
-
Not utilizing the profile search plugin alone. If you were using a custom registration form like Gravity Forms Registration you could create additional profile groups with the fields worded how you want and the gravityforms registration could automatically update both sets of profile fields accordingly to how you set them up.
Upon further reflection what I had thought would work in fact does not. Does anyone know how I could string together a search for the 2 fields? The issue isn’t the member type itself its that the member types both have profile fields with the same value in it. (IE: Childcare)
So searching /members/?s=Childcare will return both Employers and Jobseekers that have selected childcare. I would like to be able to filter those results between Employers and Jobseekers.
Figured it out. Apologies for the stupid question as it turns out lol.
Sorry code I posted back was outdated.
<?php $bpProfileField = xprofile_get_field_data( 'Services Required', $user_id_from_email, $multi_format = 'comma' ); if ( empty ( $bpProfileField) ): ?> <div class="profile_fields"><b>Services Provided:</b> <span><?php bp_member_profile_data( 'field=Services Provided' , $user_id_from_email ) ?></span></div> <?php else: ?> <p><b>Services Required:</b> <?php echo $bpProfileField; ?></p> <?php endif; ?> <br>
Thanks for the reply Shane. My apologies for the delay in responding myself but I just got back on working on this issue this weekend here.
One field I am working on right now involves displaying either Services Required or Services Provided as you can see in the code below. Depending on the type of user you are will determine which field you have filled in thus which field will display on the user profile. Unfortunately my PHP is pretty weak thus the foreach loop you mentioned has me scratching my head. The code below does what I want with the exception of it displaying horizontally instead of vertically. I am hoping you would be able to give me some detailed direction in what way to go for the PHP challenged guy that I am lol.
<?php $bpProfileField = xprofile_get_field_data( 'Services Required', $user_id_from_email, $multi_format = 'comma' ); if ( empty ( $bpProfileField) ): ?> <div class="profile_fields"><b>Services Provided:</b> <span><?php bp_profile_field_data( 'field=Services Provided' );?></span></div> <?php else: ?> <p><b>Services Required:</b> <?php echo $bpProfileField; ?></p> <?php endif; ?>