Conditional Display of Field in Views 2?
In my site, I need to have an automatically generated Address Book of all of the site's registered users.
Using the core Profile module, I've created the several needed fields for each user - street address, telephone, etc. It was then quite easy to use Views 2 to create the automatic Address Book (as a page view).
The problem is, that due to privacy laws, users *must* be able to specify what information they want displayed publicly, and what info they wish to keep private. So, although the site managers need to have, for instance, a user's street address, the user must be given the option of choosing whether they want that information automatically included in the (semi-)public Address Book, for other users to see.
It is easy to add checkboxes, so that users can specify which fields they wish listed in the Address Book. But the problem is, how do I then get Views 2 to generate the list, including or excluding fields for each user record, as appropriate?
As far as I can see, there is no way to *conditionally* include a field in the listing - or is there?
I really hope that this will be just something trivial that I've missed! - any and all help will be greatly appreciated! :-)

Profile Privacy
I've used Profile Privacy on a D5 site along with Site User List -- I don't know if it will work with Views, but it's worth a try.
Thank you for the tip,
Thank you for the tip, mrtoner.
There are a couple of modules I've found similar to the one you've pointed out - another is the "Advanced User Details", which can be found here:
http://drupal.org/project/advuser
Unfortunately, I am developing sites on D6. "Site User List" was last updated in 2007, and it does not look like it is being actively developed anymore. The same problem can be found with the other alternative modules I've come across.
Another disadvantage in the models I've seen, is that they seem to be designed for site admins. What I'm trying to do is to create a view/page that will be seen by all registered users of the site, so I don't know if these admin-focused modules actually make this easier, or harder than just assembling it in Views...
All suggestions are truly welcome, though! :-)
Sorry I wasn't clear: my
Sorry I wasn't clear: my suggestion was to use Profile Privacy with Views. Don't know if it will work.
What will work, however, is to override the Views template that displays your fields. The views-view-field.tpl.php template (views-view-field--[view-name]--[field-name].tpl.php if you want to get really specific) can be used to do all sorts of magical things.
For example, I needed a link to another view in my own user list. I created the link on-the-fly, overriding the output for the uid, which I didn't need:
<?php if ($view->name == 'user_list' && $field->field_alias == 'uid') {$output = l('view', 'http://'. $_SERVER['HTTP_HOST'] . '/user/' . $row->users_name . '/products');
}
?>
<?php print $output; ?>
mrtone, thank you - that was
mrtone, thank you - that was very useful indeed! :-)