Mono Support Group Search  

Viewed 38678 time(s), 18 post(s), 10/19/2011 7:14:13 AM - by ashutosh0901
10/19/2011 7:14:20 AM
353 Reputation 46 Total posts

Where it says Users search on DashBoard.aspx , when i click on Go it shows me some result on the basis of some filteration from the database i want to add one more filteration to the user search ....how cani do that

1
10/19/2011 8:55:32 AM
353 Reputation 46 Total posts

i really need the help please reply

2
10/19/2011 9:12:46 AM
15993 Reputation 2214 Total posts

Hi,

I suppose this is the same issue as http://www.mono-software.com/Mono/Pages/Discussion/dtopic/RUChG3Hxskig4Z-AAL7byg/How-to-Give-Radiobuttons/ and if so please be patient Denis is preparing sample code for you and he will post it as soon as he can.

Regards

3
10/19/2011 9:29:40 AM
353 Reputation 46 Total posts

that was related to design and i did it ... this one is different here i want to add one filteration creiteria when Group or people search is made with database
i am stuck to a place from last 2 days .... Hope to get the reply soon

4
10/19/2011 9:57:40 AM
353 Reputation 46 Total posts

i am deeply stuck please give me some suggestion to proceed

5
10/19/2011 10:40:52 AM
353 Reputation 46 Total posts

Trust me its damn urgent

6
10/19/2011 10:50:54 AM
15993 Reputation 2214 Total posts

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

7
10/19/2011 11:49:39 AM
353 Reputation 46 Total posts

Cant i change the exsiting code and add one more parameter to it

8
10/19/2011 1:12:59 PM
15993 Reputation 2214 Total posts

Do you have a source code? If so can you please mention for what company do you work for ?

Regards

9
10/19/2011 1:26:45 PM
353 Reputation 46 Total posts

i never said i have a source code rather it was just a question i asked because it was really confusing ....

10
1 2
This is a demo site for MonoX. Please visit Mono Software for more info.