Skip to:
Content
Pages
Categories
Search
Top
Bottom

I found a code snippet that works for ’calling profile info’ but …

  • My site is taking shape very nicely and I want to thank all here who have made comments and helped along the way.

    I am using the bp sliding login and it is working great. Now I need to add some info into it.

    My site is about weight loss, so I’ve created a new field group with:

    Field 1 – Start Date
    Field 2 – Start Weight
    Field 3 – Week 1 Date
    Field 4 – Week 1 Weight

    And I want to call those fields info to show on the slider.

    I have a basic understanding here as the sliding panel ‘calls’ the username, and I can see the code. (edit – i can see the code, but don’t understand)

    What I basically want to know is where do I find the info to call the additional fieds.

    Thanks in advance

    Or maybe a simple small little script.

    I Found this (which works, but shows user nr 1′s start date. So I think it is the first row that needs to be changed.

    `

    `

    But I want the current logged in user’s info to show. Can someone help please?

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

    @rogercoathup

    bp_loggedin_user_id()

    It’s listed in the template tags section of the documentation on here. That should be the first place you look for bp functions.

    Thanks Roger

    But actually I don’t have a clue what you’re saying.

    The code I pasted here, works, but it pulls member nr 1′s info and I want it to pull the logged in user’s start date etc.

    Anyways, thank you for trying.

    Avatar of Roger Coathup
    Roger Coathup
    Participant

    @rogercoathup

    I’ve given you the function you need to get the current logged in user’s ID – you should use this in your call to bp_has_profile to initialise your profile loop for the correct user.

    This is what you asked for in your help request.

    The rest is fairly simple PHP programming

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

You must be logged in to reply to this topic.