PDA

View Full Version : Advanced Search w/Member Conditions


Velocd
02-27-2004, 10:00 PM
This hack was requested by Bill Thebert (https://vborg.vbsupport.ru/member.php?userid=9936), originally in the service forum, but I've decided to release it no-charge on vBulletin.org.

The idea is simple, and quite unique. From the AdminCP, currently you can set certain member profile fields to be used as conditions via the member list search page (https://vborg.vbsupport.ru/memberlist.php?do=search).

Well, that's good if you are looking for members. What if you want to find posts by members who have those profile fields?

This hack will allow you to search for exactly that.

A new option via the edit profile fields page in your AdminCP will allow you to set a field to "Searchable via Advanced Forum Search," and then that field will be open as an optional condition on the advance forum search.

For more clarification, see the screenshots attached.

It's very easy and quick to install. :up:

Notes

Caching is not enabled (the process of retreiving/storing searches in the database), because profile field conditions are almost limitless, there isn't much a need. Only when one provides values for the profile fields, is caching disabled.
Read these instructions carefully! There are many steps, and you don't want to mix them up. When it says above, place above! When it says below, place below! And for replacing, be sure to replace!


Enjoy the modification. ;)

Giveit2u43
02-28-2004, 11:15 PM
Nice Looking/Working Hack, congratulations for releasing it for free in a world when increasingly it seems to be "all about the money"..

azher
02-29-2004, 01:48 AM
A great hack, I'll definitely be installing this one.

Shouldn't this be under VB3 full releases instead of VB2?

Velocd
02-29-2004, 04:44 AM
:|

I must have been tired, or something. (I thought vB2 hacks weren't supported now, anyhow)

Ah well.

assassingod
02-29-2004, 03:38 PM
I'll move it for you:)

gmarik
03-02-2004, 04:18 PM
I hope it's not too hard coded, how much it takes to install?

Velocd
03-02-2004, 06:00 PM
I hope it's not too hard coded, how much it takes to install?
It's not hard to install at all.

Try it on a test board, and see for yourself.

The majority of the file edits are in search.php. When you upgrade your forum and replace files, just redo the file-edits for this hack.

Velocd
03-14-2004, 09:44 PM
Small add-on.

If you would like to search for unlimited posts from specific members by providing nothing in the subject keyword field, then do the following.

In search.php, find:


if (empty($query) AND empty($searchuser) AND empty($replyless))
{
eval(print_standard_error('searchspecifyterms'));
}


And move it under the following:

if ($condition == "1=1")
{


Save, and you're done.

Balthazar
05-25-2004, 04:51 AM
hello,

i am wondering if it is possible for this hack if you could search by member id# ? search just using the members id, for example search for user id 1 , then that would bring up the first user that signed up or the admin of the forum, is this possible? or does this hack have this already? thank you!