Site Search and Forum Search Box

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
3/7/2010 12:49:29 PM
Gravatar
Total Posts 131

Site Search and Forum Search Box

Is there any way to shut off search sitewide. I'm not just talking about the indexing feature in web.config but anywhere that search is referenced.

In the 2.3.3.9 update a search control was added to the forums module (which is great) but I don't use the internal search for a few various reasons. Is there a quick way to disable that search box from showing?

3/8/2010 8:26:00 AM
Gravatar
Total Posts 2239

Re: Site Search and Forum Search Box

Hi David,

I haven't found a setting to hide the forum search box but as a temporary fix you could hide it with CSS. I do think a setting for this in the module settings is a good idea.

.forumsearch{visibility: hidden;} or .forumsearch{display: none;} whichever you prefer.

HTH,
Joe D.

3/8/2010 9:53:36 AM
Gravatar
Total Posts 131

Re: Site Search and Forum Search Box

Thanks Joe, much easier than the approach I would have taken.

 

3/8/2010 11:47:08 AM
Gravatar
Total Posts 18439

Re: Site Search and Forum Search Box

Hi Guys,

Adding this to your user.config should disable the search engine completely and hide the forum search box.

<add key="DisableSearchIndex" value="true" />
<add key="DisableSearchFeatureFilters" value="true" />

Best,

Joe

11/28/2012 5:01:56 PM
Gravatar
Total Posts 19

Re: Site Search and Forum Search Box

Hi Joe

If I apply below lines into user.config it disable the search box for the whole site is good

I only want to keep it enable for forums and blogs when the users are logging in with user account and having their sepecific rights

How I can make this happend please?

<add key="DisableSearchIndex" value="true" />
<add key="DisableSearchFeatureFilters" value="true" />

11/29/2012 8:59:19 AM
Gravatar
Total Posts 18439

Re: Site Search and Forum Search Box

It is possible to limit the search to only the forums though that seems an unusual need. You cannot disable search index, if you do that it disables all of it, so make sure you set DisableSearchIndex back to true.

What you can do is delete all the files from the /Setup/ProviderConfig/indexbuilders folder except for the one for the forums, then rebuild the search index. But then you'll have to remember to delete them again after each upgrade. Note that there must be at least one in that folder, if you delete them all it would cause errors.

Hope that helps,

Joe

11/29/2012 7:10:37 PM
Gravatar
Total Posts 19

Re: Site Search and Forum Search Box

Hi Joe

I have done upgrade as advised under post # 46333

Deleted the files from Setup/ProviderConfig/indexbuilders except blog and forums one

when I browse the site http://app.itslonline.com/itsforums you would be able to see Home Site Map Search Register SignIn on top of the page

Click search button you would be able to use the search without signing in to website.

How I can disable this search box untill the users are logged in

After logging in the search box drop down menue shows all contents and every page of the website.

How I can limit the user to search according to their rights on each tab/page

 

Tx

MM

11/30/2012 10:50:05 AM
Gravatar
Total Posts 18439

Re: Site Search and Forum Search Box

Hi,

You did not mention if you rebuilt the search index, you must do that to remove content for other features that was indexed before you deleted the files. It takes several minutes for the index to be rebuilt so don't expect instant results.

<add key="DisableSearchFeatureFilters" value="true" /> should remove the feature dropdown from the search page.

We do not have a way to prevent unauthenticated users from searching, however search results are filtered according to the roles that protect the page or feature instance. ie if you set the view permissions in page settings to "Authenticated Users" then the search index will be updated with that role (it may take a few minutes, it doesn't happen instantly). Once the search index is updated with the allowed view roles it will filter out the result if the user is not in the role. So the user can still search but he will not be able to find protected content.

When new users register on the site they are automatically added to the role "Authenticated Users". You can also create custom roles and use those to protect content but then you would have to add users to the roles if you want them to be able to access the content.

Similarly, the menu is filtered according to view roles, so if you protect a page by roles then only users who are in the roles will see the menu item for the page.

Hope that helps,

Joe

12/2/2012 2:16:31 PM
Gravatar
Total Posts 19

Re: Site Search and Forum Search Box

Hi Joe

Thank you for the reply

deleted index files and run rebuild  indexes

Enable <add key="DisableSearchFeatureFilters" value="true" /> into web.config file the drop down menu still there

I have created custom roles and I do remove authenticated users permissions. 

You must sign in to post in the forums. This thread is closed to new posts.