Skip to:
Content
Pages
Categories
Search
Top
Bottom

Clean up xprofile in registration page: rearrange statements

  • Avatar of LPH2005
    LPH2005
    Participant

    @lph2005

    I’ve noticed that the registration page for xprofile fields is out of order. For example, the registration page states “Class Period (required)” and shows the radio buttons. Below the radio button is a statement: “Which period do you have chemistry?” …

    It would be cleaner to have

    1. Class Period (required)
    2. Which period do you have chemistry?
    3. Radio buttons following the last text ..

    How can this be arranged properly from the default?

    SiteURL: http://www.thechembook.com/register/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Avatar of Brandon Allen
    Brandon Allen
    Participant

    @cnorris23

    In your register template registration/register.php you need to move the line,

    bp_the_profile_field_description()

    , into each type of xprofile field ( if ( 'textbox' == bp_get_the_profile_field_type() ) : , if ( 'textarea' == bp_get_the_profile_field_type() ) : , if ( 'selectbox' == bp_get_the_profile_field_type() ) : , etc) below the label code of the respective xprofile field type.

    For example. For the textbox field type you would do the following: http://pastebin.com/EJUTePGn

    (Tried to post this in the forum, but it seems that the bbPress code strips out php tags no matter what you wrap them in)

    Avatar of LPH2005
    LPH2005
    Participant

    @lph2005

    Avatar of Brandon Allen
    Brandon Allen
    Participant

    @cnorris23

    @LPH2005
    I’ve updated my post. Take a look again, because bbPress strips out php tags, and like the code you tried to post, it gets stripped beyond recognition and usability.

    Avatar of Brandon Allen
    Brandon Allen
    Participant

    @cnorris23

    Haha, yeah, I just saw a post you made a little bit ago where you got it to work. At least we know for the next time.

    Avatar of LPH2005
    LPH2005
    Participant

    @lph2005

    OK. The code is almost right. This is what needs modification but the field descriptions are duplicating.

    http://pastebin.com/vKKwZsD8

    AHA !! It’s duplicated on line 155 — removed it — and it works. phew.

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

You must be logged in to reply to this topic.