Skip to:
Content
Pages
Categories
Search
Top
Bottom

Moved: not friend template problem


  • Dono12
    Participant

    @dono12

    I have a problem, I found this snippet of code in the forum:
    <?php if ( bp_displayed_user_is_friend() ) : ?>
    <?php locate_template( array( ‘members/single/not-friend’ ), true ) ?>
    <?php else : ?>

    BUDDYPRESS USER PROFILE BODY

    <?php endif; ?>

    works in correlation: not-friend.php
    Directory: wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single

    The code does hide the user profile respectively but the problem is the not-friend.php message is not loading the message. Can any one help me with this?

Viewing 1 replies (of 1 total)

  • Dono12
    Participant

    @dono12

    I have a problem, I found this snippet of code in the forum:
    <?php if ( bp_displayed_user_is_friend() ) : ?>
    <?php locate_template( array( ‘members/single/not-friend’ ), true ) ?>
    <?php else : ?>

    figured out the problem, for some reason the external message was not loading so I placed this simple message inside like so wrapped in that div:

    <?php if ( bp_displayed_user_is_friend() ) : ?>
    <div class=”info” id=”message”>
    <p>You must be friends in order to access users activity.</p>
    </div>

    <?php else : ?>

    Body

    <?php endif; ?>

Viewing 1 replies (of 1 total)
  • The topic ‘Moved: not friend template problem’ is closed to new replies.
Skip to toolbar