Forum Replies Created

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
  • in reply to: getting rid of spaces in members page #84315
     newimageind
    Participant
    This reply has been set as private.
    in reply to: getting rid of spaces in members page #82319
     newimageind
    Participant

    Here I added the fourth field:

    add_action(‘bp_directory_members_item’, ‘bphelp_dpioml’);
    function bphelp_dpioml(){
    $bphelp_my_profile_field_1=’State’;
    $bphelp_my_profile_field_2=’Ethnicity’;
    $bphelp_my_profile_field_3=’Eye Color’;
    $bphelp_my_profile_field_4=’Highest Education’;

    if( is_user_logged_in() && bp_is_members_component() ) { ?>
    <div class=”bph_xprofile_fields” style=” margin-left: 0%;”>
    <?php echo $bphelp_my_profile_field_1 ?>: <?php echo bp_member_profile_data( ‘field=’.$bphelp_my_profile_field_1 ); ?><br />
    <?php echo $bphelp_my_profile_field_2 ?>: <?php echo bp_member_profile_data( ‘field=’.$bphelp_my_profile_field_2 ); ?><br />
    <?php echo $bphelp_my_profile_field_3 ?>: <?php echo bp_member_profile_data( ‘field=’.$bphelp_my_profile_field_3 ); ?><br />
    <?php echo $bphelp_my_profile_field_4 ?>: <?php echo bp_member_profile_data( ‘field=’.$bphelp_my_profile_field_4 ); ?><br />

    </div><?php
    }
    }

    On the screen it only show the first three, not the fourth.

    Thanks!

    Attachments:
    You must be logged in to view attached files.
    in reply to: getting rid of spaces in members page #81020
     newimageind
    Participant

    Thanks Laura, two more questions,
    1. Is there a way to change the font color and style of the age? for example under “Stephanie”, her age is show as “22”.
    2. I use the following code to display extra information on the members page:

    add_action(‘bp_directory_members_item’, ‘bphelp_dpioml’);
    function bphelp_dpioml(){
    $bphelp_my_profile_field_1=’State’;
    $bphelp_my_profile_field_2=’Ethnicity’;
    $bphelp_my_profile_field_3=’Eye Color’;

    if( is_user_logged_in() && bp_is_members_component() ) { ?>
    <div class=”bph_xprofile_fields” style=” margin-left: 0%;”>
    <?php echo $bphelp_my_profile_field_1 ?>: <?php echo bp_member_profile_data( ‘field=’.$bphelp_my_profile_field_1 ); ?><br />
    <?php echo $bphelp_my_profile_field_2 ?>: <?php echo bp_member_profile_data( ‘field=’.$bphelp_my_profile_field_2 ); ?><br />
    <?php echo $bphelp_my_profile_field_3 ?>: <?php echo bp_member_profile_data( ‘field=’.$bphelp_my_profile_field_3 ); ?><br />

    </div><?php
    }
    }

    however if I add more than 3 fields, the rest will not show on the page. how can I fit one or two more lines of data in there?

    Thank you!

    in reply to: Remove a couple things on directory page and profile page #78303
     newimageind
    Participant

    That worked, thank you!

     newimageind
    Participant

    Thank you.

    in reply to: Profile questions too long to display #76617
     newimageind
    Participant

    That worked perfectly, thank you!

    in reply to: Profile questions too long to display #75956
     newimageind
    Participant
    This reply has been set as private.
    in reply to: Sweet date memberships restriction without PmPro? #75733
     newimageind
    Participant

    restrict content does not work for me for some reason, however I found a work around that syncs wordpress role with PMpro levels.
    So Problem Solved.
    Thanks.

    in reply to: Sweet date memberships restriction without PmPro? #74876
     newimageind
    Participant

    Thanks! Finger crossed.

Viewing 9 posts - 1 through 9 (of 9 total)

Log in with your credentials

Forgot your details?