Skip to:
Content
Pages
Categories
Search
Top
Bottom

is Profile Check??


  • Nick Watson
    Participant

    @nickbwatson

    Is there some way I can check to see if I’m currently on a profile page?

    Basically I have in my side bar it displaying friends and groups for w/e user you are currently on.

    HOWEVER, on the main page, it’s displaying the total number of users on the site. What is the “if” statement I can use to check to see if you are currently on a user page? I just want it to be blank on the main site page/blog pages.

    Thanks

    Hope I was clear.

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

  • Nick Watson
    Participant

    @nickbwatson

    I just need to know how to check if it’s on a user page.

    There’s the check to see if a visitor is online, if a user is the admin etc, I’d just like to know what the check is to see if a user is on a profile page.


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    bp_is_my_profile() …will tell you if you’re viewing your own profile…

    bp_is_member()…will tell you if you’re viewing any user, including yourself…


    Nick Watson
    Participant

    @nickbwatson

    PERFECT,

    I just found the

    bp_is_my_profile()

    But the bp_is_member() is exactly what I needed.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘is Profile Check??’ is closed to new replies.
Skip to toolbar