How to create advanced search on members page?

Permalink
I have searched the forum and I saw a post mentioning to create a single page for this function but I don't know how to integrate it. I have a general idea how it will go but lack the coding knowledge.

My purpose for this is to be able to search all the custom attributes that I have made and to be able to use the advanced search on the members page.

Please help me my fellow concreteians. Thanks

 
merge replied on at Permalink Reply
Anyone? I really need your help guys. I started learning php and got up to learning functions but I dont think I will get to expanding the search feature anytime soon.

I would appreciate if any of you php gurus can chime in. Thanks
invision replied on at Permalink Reply 1 Attachment
invision
I'm not a PHP guru by any stretch, but here's something that may help.

Attached is a members.php file that will get you started. Unzip and put this in your root 'single_pages' directory.

It's designed to display specific user attributes. By default, it displays the entire user list. When you use the search function, it displays matches.

Your attribute handles must match the var in these lines.

For example, I have a user attribute called 'phone':
<?php echo $user->getAttribute(phone); ?>


To get a user's email address and include a mailto: link:
<a href="<?php echo 'mailto:'.$user->getUserEmail()?>">
<?php echo $user->getUserEmail(); ?>
</a>


To make a blank search page, you could hide the results table with an if statement.

Hope this helps.

Sherm Stevens
http://www.invision-studios.com
merge replied on at Permalink Reply
I ended up just using the search that's on the members page. I just had to add the attributes to keyword search and it worked fine.

I appreciate the response however, and I will definitely try it out.

Thanks