Helpful Information
 
 
Category: vBulletin 3.0 Full Releases
Advanced Search w/Member Conditions

This hack was requested by Bill Thebert (http://www.vbulletin.org/forum/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 (http://www.vbulletin.org/forum/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. ;)

Nice Looking/Working Hack, congratulations for releasing it for free in a world when increasingly it seems to be "all about the money"..

A great hack, I'll definitely be installing this one.

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

:|

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

Ah well.

I'll move it for you:)

I hope it's not too hard coded, how much it takes to install?

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.

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.

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!










privacy (GDPR)