Close We have just updated BuddyDev for better performance. If you note a glitch, please let us know by using the feedback button on the left.

BuddyDev

move registration to index page

Home Forums How-To and Troubleshootings move registration to index page

This topic contains 6 replies, has 2 voices, and was last updated by Avatar of gwu gwu 1 year ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  1. Hi Brajesh,

    I want to move the registration page to the index page (like LinkedIn or Facebook).

    I copied the registration form (request-details signup step) from the register.php.

    When I hit the submit button nothing happens. What needs to be done to fix this?


    January 21, 2011 at 6:12 pm #865
    Avatar of gwu
    gwu
    Subscriber
  2. Pleas make sure you have correctly put the action url in the form ?

    the form tag should look like this

    <form action="<?php echo bp_get_root_domain().'/'.BP_REGISTER_SLUG;?>" name="signup_form" id="signup_form" class="standard-form" method="post" enctype="multipart/form-data">

    `


    January 23, 2011 at 5:23 pm #7492
    Avatar of Brajesh Singh
    Brajesh Singh
    Key Master
  3. Hi @Brajesh,

    digging up their thread to get more detail from a question asked long back.

    for Bp 1.5.5, when i copy the register page to index page the Profile detail fields from x-profile groups do not appear. This check does nto seem to be working on the index page —

    if ( bp_has_profile( ‘profile_group_id=1′ ) )

    please can to tell if i missed something?

    thanks


    May 19, 2012 at 10:42 pm #12467
    Avatar of gwu
    gwu
    Subscriber
  4. hi Gwu,

    Please make sure to put these lines before the form.

    <?php
    global $bp;
    if(empty($bp->signup->step))
    $bp->signup->step='request-details';
    ?>

    That will make it show the form.


    May 20, 2012 at 8:44 pm #12468
    Avatar of Brajesh Singh
    Brajesh Singh
    Key Master
  5. thanks @brajesh – did not work. not sure what is that i m missing


    May 21, 2012 at 11:51 pm #12484
    Avatar of gwu
    gwu
    Subscriber
  6. Hi Gwu,

    have you used something like this

    bp_has_profile( 'profile_group_id=1&hide_empty_fields=0' )

    The hide_empty_fields=0 will force buddypress to show the xprofile fields.

    PS: updated this answer for correctness.


    May 23, 2012 at 2:01 am #12493
    Avatar of Brajesh Singh
    Brajesh Singh
    Key Master
  7. this worked – hide_empty_fields=0.

    thank you so much.


    May 23, 2012 at 12:20 pm #12503
    Avatar of gwu
    gwu
    Subscriber
Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.