Skip to:
Content
Pages
Categories
Search
Top
Bottom

How Can I put a ‘NEXT’ Button in the ‘Edit Profile’ Section?


  • Gayatriom
    Participant

    @gayatriom

    Hey. So my site has 5 different ‘Sets’ of Profile Fields.
    The thing is at the end of filling out each set, in addition to the ‘save changes’ button,
    I would like a ‘next’ button which will take the user to the next set of profile fields.
    Instead of having to scroll up and select the next set of profile fields to fill out.
    What would be the php code for this and how could I insert it?

    Thanks in advance!

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

  • Virtuali
    Participant

    @gunju2221

    You will need to go into the members/single/profile/edit.php and add a `

    ` With the `<a href=""` that the button links to the next profile section. You can get the string from the $bp global https://codex.buddypress.org/developer-docs/the-bp-global/ to help you out

    Virtuali
    Participant

    @gunju2221

    excuse me, sorry, must be `<a class="button" href="`


    Gayatriom
    Participant

    @gayatriom

    Hey!
    Ok.
    So I’m such an idiot.
    do you by chance know WHERE to put that code in members/single/profile/edit.php .

    g


    Virtuali
    Participant

    @gunju2221

    Your not an idiot. You can use `<a class="button" href="` anywhere in your theme to place a button to link wherever you want it to.

    Place this in the code wherever you want it to appear :)

    But make sure you end it with ``


    Gayatriom
    Participant

    @gayatriom

    Hey Virtuali!
    Thanks for all your help.
    I still can’t seem to figure out what string to use for the button.
    I’m so confused by the Bp Globals link you sent me.


    Gayatriom
    Participant

    @gayatriom

    So I pasted the code at the top of Bpcore.php, but it doesn’t do anything.

    It just shows me the code at the top of my site.


    Virtuali
    Participant

    @gunju2221

    Oh, don’t put the code in bp-core.php

    If you have template pack installed, go into your theme, and go to members/single/profile/edit.php and put it next to the

    `<input type="submit" name="profile-group-edit-submit" id="profile-group-edit-submit" value=" ” />`

    Your code should be something like `Next`

    It should appear like this: Next :)

    P.S, if you have more than 2 profile categories, the second category will just redirect to itself, I don’t have time to post the string needed, I’ll do it later.


    Gayatriom
    Participant

    @gayatriom

    OMG! I did it!
    Ah!
    but wait.
    I did it so that it goes to the next ‘group’ how do i do it so that the button changes based on what group you are editing?

    This is the code I used
    <a class="button" href="profile/edit/group/2″>next


    Gayatriom
    Participant

    @gayatriom

    We do have more than one profile category.
    When ever you get a chance it would be so awesome if you could help me out with the string.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How Can I put a ‘NEXT’ Button in the ‘Edit Profile’ Section?’ is closed to new replies.
Skip to toolbar