custom views handler to show dynamic all profile fields
This is probably done better in a preprocess function in a theme instead. However if you want to do it you ned to create a handler, something like this:

class og_group_handler_field extends views_handler_field {
  function render() {
    $og = arg(1);
    $output
    // Load the group and add to $output what needs to be displayed
   return $output;
 }
 function query() {
   // Make sure we don't add anything to the queue.
  }
}


and the add the handler to a table like nodes

function module_views_data_alter(&amp;$data) {
  $data['node']['og_all_group_fields_from_arg_1'] = array(
    'field' =&gt; array(
      'title' =&gt; 'title',
      'help' =&gt; 'Help Text',
      'handler' =&gt; 'og_group_handler_field',
    ),
  );
}


For Drupal 6 you also need to register the handler, the link you posted illustrates how this is done.