Skip to:
Content
Pages
Categories
Search
Top
Bottom

User Profile Button

  • Avatar of kirkeddie
    kirkeddie
    Participant

    @kirkeddie

    Hi community!

    Fairly new to the Buddypress scene, mostly because I’ve been waiting for the features that 1.7 has finally brought about.

    My questions is, I have an image button that I want to take users to their profile page once they are logged in. (IE, they are logged in, then they click this image and it pulls up their profile for them.)

    I’m pretty sure this thread was on the right track, but I’d like to know how to apply that functionality to an image.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Avatar of bp-help
    bp-help
    Participant

    @bphelp

    Where are you planning on placing this pic that directs users to their profile? You may have to code it into one of the templates of your child theme.

    Avatar of kirkeddie
    kirkeddie
    Participant

    @kirkeddie

    Thank you for the reply! I am planning on making it part of the header. I have a separate header.php file that houses the image and I want to make that image a link and am using a child theme that I created off of Buddypress Default. I am fine with trying to code it if I can get pointed in the right direction. My site can be found here if seeing it visually would help.

    Avatar of bp-help
    bp-help
    Participant

    @bphelp

    Place this code where you need it in your header and add style as needed.

    http://pastebin.com/1SBNwkLj

    Just replace the URL in my code with the full URL to the image you plan on using.

    Avatar of bp-help
    bp-help
    Participant

    @bphelp

    @kirkeddie
    Here is another example with a slight change. It calls the URL dynamically but you will still need to change the part in the code below so it knows what theme your using and the name of the image file. If the image file is not at the root of your child theme and in a sub directory then you will need to make the necessary adjustments.
    Change this to your theme and name of the image file assuming its at the child theme root
    your-theme/image-name.png

    Here is the code for example 2:

    http://pastebin.com/zgmL4vWu

    Avatar of kirkeddie
    kirkeddie
    Participant

    @kirkeddie

    Thanks a ton @bp-help! I am trying your code today, and hopefully it works. (I have no doubt in your code, just my ability to execute it.) Thanks again.

    Avatar of kirkeddie
    kirkeddie
    Participant

    @kirkeddie

    Option 1 worked like a charm. Again, thank you for your help.

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

You must be logged in to reply to this topic.