Hi MCBA.
OK, that’s why I say the documentation is difficult, as you can do much of what you want without any extra bought functionality I think. I had to work it out thought!
Firstly - to filter a search based upon those who have agreed to share their details:-
So, using AMR Users I use the Member Directory option. Using the Include/Exclude tab, specify the tick box field you have and then check the box that says exclude if blank This will only list those in the directory who have ticked the box. However, to get that option in the include/exclude, you have to include the tick box field first in the field display options under the fields/sort tab. The clever bit that took some reading, is that once you’ve included the field in the include/exclude tab as above, you can then go back and remove it from the fields/sort tab so that it is not visible in the search results. It still stays in the include/exclude tab. It takes a careful read of the documentation and some googling to make sure you can do what you want.
Secondly - to only allow those who have agreed to share their details to see others, I installed EzPHP to allow me to include PHP code on my page mixed in with shortcodes. I then did an IF statement which checks whether the current user logged in and using the page has ticked the box (my custom field is called “sharing”):
[php] if(get_user_field(‘sharing’)) : [/php]
In the search box you can enter leaving year, city, country or last name. Only signed-up users who have agreed to share their details will appear in search results:
[userlist list=2 start_empty=1]
[php] else : [/php]
**Sorry, but you set your profile on the basis of not sharing your information and so you can’t use this tool. **
Don’t despair, you can change this option by editing your profile!
[php] endif; [/php]
The “start_empty” attribute is a nice feature which prevents the list from displaying anything without any search criteria, which I wanted.
Hope this helps.
Andy