Skip to:
Content
Pages
Categories
Search
Top
Bottom

Conditional Function for Member Profile?

  • Avatar of braing
    braing
    Participant

    @braing

    Hi y’all!

    This has been a serious roadblock for me and I can’t figure it out…

    I would like to display different information on MY home profile and different information on OTHER member profiles.

    I found the conditional called bp_is_home() to add stuff to MY profile page, however I cannot locate the conditional function for other member profiles.

    Is there a conditional to display items on OTHER member’s profile pages?

    Please help! If there is another more logical way to accomplish this, please let me know!

Viewing 1 replies (of 1 total)
  • Avatar of Roger Coathup
    Roger Coathup
    Participant

    @rogercoathup

    You could look in file bp-core-templatetags.php, but I’m not sure there is anything direct.

    Have you looked at the profile-loop.php file (in member-theme/profile in 1.0.x installations)? You could put OTHER member conditional code in there, using !bp_is_home().

    You can make use of bp_current_user_id(), and the parameterised versions of functions such as bp_has_blogs() to obtain other member details.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.