I wrote some custom code which may help you out…..
`
$query = mysql_query(“SELECT * FROM bp_groups_members WHERE user_id = $user_id “);
$numrows = mysql_num_rows($query);
if ($numrows !=0 ){
$row = mysql_fetch_Assoc($query);
$group_id= $row; }
$query1 = mysql_query(“SELECT * FROM bp_groups WHERE id = $group_id “);
$numrows1 = mysql_num_rows($query1);
if ($numrows1 !=0 ){
$row1 = mysql_fetch_Assoc($query1);
$group_name= $row1; } `
and then just used following code to display the group name
`
Got it!
go to yoursite.com/wp-admin/admin.php?page=bp-page-settings (Or buddypress-> Pages in CMS)
There you will see an option of creating a new page for Registration…
just click on it and you will be sorted..
Thanks