Skip to:
Content
Pages
Categories
Search
Top
Bottom

Creating custom registration page, moving elements


  • jebus
    Participant

    @jebus

    Hi all,

    I’m trying to create a custom reg form with some of the Xprofile fields at the top, followed by the core fields, followed by more Xprofile fields.

    I’ve tried doing this with CSS/relative positioning, but it’s pretty unreliable due to the different elements, visibility fields, etc.

    Has anybody ever created a hard coded reg form, with the Xprofile fields placed in different locations in register.php? It’s not immediately obvious to me how this might be done outside the while loop, but if anybody can point me in the right direction I would be more appreciative.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi there,

    Here’s an example of adding a custom section to the registration form. All you have to do if it’s static is add it and handle the input:
    https://gist.github.com/dcavins/e3e6a702e35d4f9ec8948c920d8b6c03

    You could similarly add other profile fields/field groups on any of the hooks available on the registration page, though I’d use a profile field group loop to output those items.


    jebus
    Participant

    @jebus

    Thanks David. I ended up hacking the form a bit, since I’m using the Buddypress Name field combined with one Xprofile field. Not the most elegant, but it works.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar