![]() |
Search members by custom profile fields
Here's another quick hack, allows your users (you can already do this in the Admin CP) to find other members using custom profile fields.
This hack will use all the fields you have set up, except those that are marked as "Hidden". For a demo, I attached a screen shot of this in post #2. Have fun! :) |
Demo...
(What do you say about my drawing skills, eh? :D) |
lol.. anyway, sheila will be happy right? another happy user :D
|
Out of idle curiousity, if you happen to have alot of custom fields, will this add any lag time?
|
No.
|
lookng great, another good one chen!
|
If the search produces more than 1 page of results, the hack doesn't work for subsequent pages - FYI.
|
An easy fix (adds another query, but I don't care):
in memberslist.php, find PHP Code:
PHP Code:
|
Just installed and nothing happens when I search via a locaton. What could be wrong take a look here. http://www.rx7forums.com/forums/memb...?action=search
|
Thanks man, this hack is great, and seems to work just fine :):up:
|
I modified this just a bit so that it only searches one extra profile feild, and it works great.
Thanks ^_^ :bunny: |
Hey this is great. Thanks
Just curious though. How could I integrate some of these search fields into a table on the front page of my website? |
I'm not sure what you mean, roxics.
|
Well lets say I go into Advanced members search on the board. But I want to take a few of these seach fields and stick them on the front page of the site. So that when people arrive at the site they see some fields on the left in a table called "Seach members by location"
Just a way of making the seach fields more accessable. |
Copy the form you see in the search page, and remove the fields you don't need.
|
Wow that was super easy. Thanks. I don't know why I thought it would be more complicated then that. :)
|
Hi Chen,
A long time ago I requested a hack similar to this. The actual request was for admin level only, to be able to search and find members based on a custom profile field, and generate a mail list for it. It was based on identifying members with boats under 24 feet for instance so we could send a custom email. But I think it may have been posted before VBulletin.Org started. May have posted the request on VBulleting.com. Anyways, how can I edit this code to simply allow the admin only to do the search on custom fields to generate an email list? |
Works like a charm on 2.2.7
Thanks FireFly! |
For which vB version is this hack?
I have vB 2.2.7 and the memberlist.php file does NOT contain any code such as what is mentioned in your [FireFly] attached file "search_mlist_2.0.txt". AA |
Figured it out, finally!
GREAT hack, FireFly - thanks! AA |
will this be part of v3
|
Is there a working version for 2.2.9 .... some parts of the code are different
|
is there anyway to modify this so that you can access a new search page that will allow you to only search one of the custom fields?
|
I have an older board and I got all the way through the instructions, but the last step:
In the "memberlistsearch" template, add $customfields right *above* this: PHP Code:
Please Help. :( |
It is a bit unrelated to this thread... but in another way it is very much so related.....
Is there a way to add the custom profile fields in the search of Email Users in the admin section ? Thanks LeMarsu |
Hi all
I have set this great hack up but would like the users to be able to search just one profile field, can anyone tell me what I need to change to do this. Thank you Stuart |
Got a parse error on vBulletin 2.3.2.
|
Oh, I would love to have it working on 2.3 as well. Chen?!
|
Quote:
|
Quote:
|
GOOD STUFF
*installs* |
Quote:
please let us know! |
I just installed this on vb2.3.4 and it works perfectly.
|
Sorry to bring up such an old thread, is this available for vb3?
|
All times are GMT. The time now is 05:22 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|