You should make it so things via the Search Panel can be done like this. Like sometimes I remember a persons instant messenger, and not the thread. So it takes forever to search it. It would be handy to be able to search their messenger and other profile information like DOB and anything applicable into the search part. And if something was added it would automatically add it into the search box. That part would be a little complicated though lol.
I just did this to my 3.0.1 forum and it did not do any thing. The entered text is not a link at all.
Any thoughts?
Thanks.
There's only two changes, so I can't imagine what the problem is, but have you made both changes? Uploaded the files? Stated that the fields are searchable in the control panel? etc?
If you've done all of the above, then send me an e-mail with the file attached and I'll look into why it didn't work: d a v i d @ b u r o 9 . c o m
Yep, did both parts and uploaded the file. Not sure why it's not working. I also set all the profile fields to searchable in the User Profile Fields options via the Admin CP. I'll email you the file that I have.
Yours is related to the way in which you had pasted in the code... you did not keep the linebreaks, so my "// HACK : START" comment then comments out the entire hack.
You need your entire custom profile fields block to be exactly this:
PHP Code:
// *********************
// CUSTOM PROFILE FIELDS
// HACK : START : FRIENDSTER STYLE LINKS
//$profilefields = $DB_site->query("
// SELECT profilefieldid, required, title, type, data, def, height
// FROM " . TABLE_PREFIX . "profilefield
// WHERE form = 0 " . iif(!can_moderate(), "
// AND hidden = 0") . "
// ORDER BY displayorder
//");
$profilefields = $DB_site->query("
SELECT profilefieldid, required, title, type, data, def, height, searchable
FROM " . TABLE_PREFIX . "profilefield
WHERE form = 0 " . iif(!can_moderate(), "
AND hidden = 0") . "
ORDER BY displayorder
");
// HACK : END : FRIENDSTER STYLE LINKS
Yep, did both parts and uploaded the file. Not sure why it's not working. I also set all the profile fields to searchable in the User Profile Fields options via the Admin CP. I'll email you the file that I have.
Thanks for the help.
Received the file, but in case you didn't get my reply via e-mail, here it is:
I uploaded your version of the file and it worked perfectly on my
forum. Which means that it's a setting.
Are members allowed to perform advanced searches on your boards for
other members?
Also, in the Admin Control Panel at this point:
User Profile Fields > User Profile Field Manager
Are the fields that you want hyperlinking defined as being
'Searchable'?
If users do not have permission to do an advanced search, and/or the
field isn't searchable... then it won't create the hyperlinks for you.
The hack is working though, your file worked perfectly on my forum, so
it's definately a setting rather than a code fault.
buro9, I never got the email from you so I'm glad you posted this here as well. I do have all the feilds set to searchable, but I'm not sure about the advanced search. Where do I find that. Sorry I'm a noob at VB3!!
buro9, I never got the email from you so I'm glad you posted this here as well. I do have all the feilds set to searchable, but I'm not sure about the advanced search. Where do I find that. Sorry I'm a noob at VB3!!
Thanks gain.
You'll find the setting in the Admin Control Panel.