Home › Forums › How-To and Troubleshootings › move registration to index page
This topic contains 6 replies, has 2 voices, and was last updated by
gwu 1 year ago.
-
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 -
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 -
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 -
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 -
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
You must be logged in to reply to this topic.
