Is there a possibility to have Search Form for forums (topics) for Drupal 7 version of Advanced Forum? It works fine for Drupal 6 with Node Comment, but Node Comment for D7 doesn't exist and and most likely will not be... And for Advanced Forum has worked with email notifications, Node Comment is required as well? I have Comment Notify installed in my D7 website, it works for comments for site, but not for forum's posts and comments...

Is it possible create search form for forums using Views? I see that there are some search templates in styles > naked folder, and I see that they work with Views... but how can I implement this ones?

Thanks.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

troky’s picture

Status: Active » Postponed

Search function will be added in future versions.

scottsawyer’s picture

Any development on search or subscription? seems like both of these are pretty much standard fare for a forum.

Has any body had success with any of the notification, subscription modules?

** I noticed in the styles folder for naked, there is a template file for searching. It sends a get variable to a search widget. Is this working some place?

Michelle’s picture

It works in Drupal 6. Because the functionality relied on Node Comment, it's quite possible it wasn't ported to Drupal 7.

scottsawyer’s picture

Hello Michelle,

Thank you so much for the fast response, and all your work on this.

I did find the Subscriptions module and I am testing it out now. There is a Beta for D7, crossing fingers now.

When you say Node Comment, are you referring to search functionality? Is there anything specific I should be looking for to have search on my forum topics (and comments)?

The reason I ask is because I can not find a search feature on my forum. I added the drupal search in a block, but it always returns "No Results", even when I go to advanced search and search only on Forum content.

Thanks again.

** edit **
The built in Drupal search does seem to find the forum topic, but not the comments. Again, any help would be appreciated.

Michelle’s picture

The Node Comment module is required for the forum specific searches because it's a Views based search and that requires the thread to be a view rather than the normal node + comments.

The Drupal search isn't thread or forum specific but should work just fine on forum content. Possibly you haven't indexed your site.

Michelle

Codenext’s picture

Title: Search Forum? Email notification? » Search Form? Email notification?
Issue summary: View changes
Codenext’s picture

Since this topic is 5 year old, Has any one yet figured out any other way to add search form in the Advanced Forum? Thanks.

Codenext’s picture

In search of solution for incorporating the search form to the forum pages, I have posted the question on Drupal Answers as well and found the solution. I am quoting the answer as it is under 1.

1. Embedding advanced search form view in the forum

You need to display the exposed filters in a block, and then display that block on single forum node pages.

Here's how to do that:

1. Edit the Forum Search view: /admin/structure/views/view/advanced_forum_search/edit.
2. Under "Exposed form" -> "Exposed form in block" choose "Yes".
3. Save the view.
4. Navigate to /admin/structure/block.
5. Enable the "Exposed form: advanced_forum_search-page" block, and show it for example in the "Content" area and only for "Forum topic" nodes. You can change this to your liking of course.

Users now can use this form from single forum nodes, and submitting it will take them to the search page.

Link: How to add Search form/Advanced search form view to advanced forum pages?

By this way you can add the advanced search form view at to top, under the title of the forum and you can also specify on which page it should appear and on which page not.

2. Other similar approach:

1. Inspired from the above answer and with some more research I have found other solution also. For this you can use Custom search module. As custom search module has a feature of defining the option to search the content for perticular content type, and this way you can define only Forum, which you can enable from the module configuration. And moreover, you can set that option as drop-down option same as provided by the advanced search form view. See attached image. Now this all thing comes as a block.

2. Now you can embed this block in the forum under the title of the forum as per method mentioned in the first option.

Codenext’s picture

Image for the 1 approach mentioned in the comment #8.

Codenext’s picture

FileSize
29.21 KB

Image for the 1 approach mentioned in the comment #8.