Hi,
I can give you a short hint on how to do this:
1. You need to inherit from the Dashboard page (
MonoSoftware.MonoX.Pages.SocialNetworking.Dashboard)
2. Override the OnLoad and add the following code
protected
override
void
OnLoad(EventArgs e)
{
ctlSearchUsers.SearchParams.Add(
"Key"
,
"Value"
);
ctlSearchUsers.SearchParams.Add(
"Key1"
,
"Value1"
);
base
.OnLoad(e);
}
This will give you the ability to add more search params to user search, and they will be passed to the search providers
3. You need to extend the User search provider by Inheriting from the
MonoSoftware.MonoX.SearchEngine.Providers.UserProfileSearchProvider and you need to add the following code to your provider:
public
new
List<ISearchEngineResultItem> Search()
{
//Your search code goes here
}
4. You need to switch the
UserProfileSearch provider from MonoX built-in one to your own in the
web.config.
From
<
add
name
=
"UserProfileSearchProvider"
type
=
"MonoSoftware.MonoX.SearchEngine.Providers.UserProfileSearchProvider, MonoX"
UserDescriptionLenght
=
"255"
BoldSearchPhrases
=
"true"
FullTextSearch
=
"false"
/>
To
<
add
name
=
"UserProfileSearchProvider"
type
=
"YourNamespace.SearchEngine.Providers.YourUserProfileSearchProvider, YourAssembly"
UserDescriptionLenght
=
"255"
BoldSearchPhrases
=
"true"
FullTextSearch
=
"false"
/>
Let us know if you need anything else, and I'll check with Denis if he has some code for you.
Regards