vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Advanced Search w/Member Conditions (https://vborg.vbsupport.ru/showthread.php?t=62014)

Velocd 02-27-2004 10:00 PM

Advanced Search w/Member Conditions
 
This hack was requested by Bill Thebert, 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.

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

Quote:

Originally Posted by gmarik
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:

PHP Code:

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

And move it under the following:
PHP Code:

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!


All times are GMT. The time now is 09:53 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
  • Page Generation 0.01058 seconds
  • Memory Usage 1,732KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete