Quote:
Originally Posted by Wired1
Read the 3.5.x hack instructions. There's BETA search code in there (which is really just vB's search code w/ one minor change). Search for the new code in 3.6.x (they changed like 1 minor thing in it IIRC), and it should work fine. A proper way to do this would involve a heavy rewrite, which I simply don't have the time for (hence why I haven't been around much).
|
To clarify, I just tried it... and found what worked for me. This is with this version of the hack, and vBulletin 3.6.5. And now the "extra" fields I choose are showing up in Members List and are searchable too.
All it took was changing two instances of
form = 0 to
form = 0 OR 6
In memberlist.php:
FIND:
PHP Code:
$profilefields = $db->query_read_slave("
SELECT *
FROM " . TABLE_PREFIX . "profilefield
WHERE searchable = 1
WHERE form = 0 "
REPLACE WITH:
PHP Code:
$profilefields = $db->query_read_slave("
SELECT *
FROM " . TABLE_PREFIX . "profilefield
WHERE searchable = 1
WHERE form = 0 OR 6 "
FIND:
PHP Code:
// get extra profile fields
$profilefields = $db->query_read_slave("
SELECT *
FROM " . TABLE_PREFIX . "profilefield
WHERE searchable = 1
AND form = 0
REPLACE WITH:
PHP Code:
// get extra profile fields
$profilefields = $db->query_read_slave("
SELECT *
FROM " . TABLE_PREFIX . "profilefield
WHERE searchable = 1
AND form = 0 OR 6
The only downside is that right now I have three "regular" User Profile fields that I had designated as "not searchable" -- and now, as result of this edit, they appear in the "Members List: Advanced Search." These particular fields don't
work, mind you (searching in those fields just ends up showing the entire member list.) Which is fine by me... I didn't want them to be searchable in the first place. But the fact that the fields show up in the Advanced Search might be a bit confusing, that's all.
This is a compromise I am willing to make, because I wanted to have many of the "Extra" Profile Fields I created with this hack to show up in my Member List, and be Searchable... and now they are.
Thanks!
/clicks install