Add additional search by user or group and extra user fields in social search - refs #7344

 for ($i=0; $i < count($extra_field_result) -1; $i++) (fix spacing)