Skip to:
Content
Pages
Categories
Search
Top
Bottom

Adding some text to the signup form?

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

  • stwc
    Participant

    @stwc

    Create a child theme (it’s easy — do a search for instructions on how), copy register.php from /plugins/buddypress/bp-themes/bp-default/registration to /registration in your new child theme (which will just be the default theme plus this change and any other changes you make in future). Edit that registration.php.

    Now your new registration page will override the default, and you are safe from having your changes overwritten by future version upgrades!

    Any time you want to override anything (particularly styles), you can just copy files from bp-default, preserving folder structure, to your child theme and modify them there. It’s a little confusing at first, but is extremely powerful and useful.


    jwack
    Participant

    @jwack

    Thanks! I wasn’t sure what file to edit, I was looking at wp-signup. I actually just found out about “child themes” a couple weeks ago, its a MUST for me now, they are GREAT!

    Thanks again for the help!


    techguy
    Participant

    @crashutah

    Might be worth adding this link to the documentation on creating a child theme: https://codex.buddypress.org/how-to-guides/building-a-buddypress-child-theme/ It has the other details for creating the stylesheet and activating the child theme as well. Details a newbie might want to have on top of what you’ve already said. I know since I just changed my registration page as you described this week:-)


    jwack
    Participant

    @jwack

    hmmm, any idea how to add the a paragraph under the “name” field, under profile details? I am not seeing where its being added? Here is where it pulls in the custom fields, but the name field can’t be edited to add a description like the other custom fields in the admin.

    <?php if ( 'textbox' == bp_get_the_profile_field_type() ) : ?>

    <label for="<?php bp_the_profile_field_input_name() ?>"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ) ?><?php endif; ?></label>

    <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>

    <input type="text" name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>" value="<?php bp_the_profile_field_edit_value() ?>" />

    <p><?php endif; ?>


    jwack
    Participant

    @jwack

    Anyone know where I would add a paragraph description under the name field?


    danbpfr
    Participant

    @chouf1

    with notepad++ you can search and almost find what you want…

    wp-content\plugins\buddypress\bp-themes\bp-default\registration\register.php

    Line 68 : 	<?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
    Line 76 : <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
    Line 84 : <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
    Line 94 : <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
    Line 106 : <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
    Line 121 : <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>
    Line 131 : <?php do_action( 'bp_' . bp_get_the_profile_field_input_name() . '_errors' ) ?>


    jwack
    Participant

    @jwack

    sorry, im not that good with php, not really sure what I am looking at. I guess I will just play with it a bit.


    techguy
    Participant

    @crashutah

    Chouf1,

    You don’t want to edit the file you specified. You want to edit the child template for the file you specified.

    jwack,

    What about something like:

    <?php if ( 'field_1' == bp_get_the_profile_field_input_name() ) {

    echo "the message/html you want below the input label";

    } ?>

    Place that below the piece of code that you have up above in the register.php file.

    Seems like there might be something better than bp_get_the_profile_field_input_name() since that’s already been called above, but that should work alright.


    danbpfr
    Participant

    @chouf1

    @techguy

    i answered only to the question: Anyone know where I would add …

    This is WHERE, not HOW or WHAT


    jwack
    Participant

    @jwack

    @techguy Thank you, that was exactly what I was looking for!


    techguy
    Participant

    @crashutah

    Glad it worked jwack. Glad I could figure it out. I’m new to BP. Looks like you can mark this resolved too.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Adding some text to the signup form?’ is closed to new replies.
Skip to toolbar