This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

BBpress

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #16994
    conceptstoreconceptstore
    Participant

    Hello,

    We have bought and installed the Ajax Search Pro plugin and wanted to find out a little more info with regards to working with bbpress.
    We’ve installed it on a site and set it up so it works/seraches only within bbpress and so far its working fine but we wanted each forum to become a search filter with the ajax search plugin.

    eg. List of forums to search within.

    Forum 1
    Forum 2
    Forum 3

    Would you have any idea how this might be possible as the filters so far are grouping all forums into one option. If not any help, advice or redirection to any other information that could help us would be appreciated.

    Thank you very much.

    Regards

    Chaten

    #16995
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi Chaten,

    At first I thought this might not be possible, but then I have looked into this in more details on my test environment, and I have found that bbPress assigns a custom field named ‘_bbp_forum_id’ to each topic and reply.
    This means, that a custom field filter can be used to filter the topics and replies by forums. Please follow the steps below to create such a filter.

    1. First you will have to get the IDs of the forums. To do that, click on the ‘edit’ button under the Forums menu. The forum editor will open, and in the browsers URL bar, you will be able to see the forum ID. Take a note of all the forum names and the IDs, you will need them.

    2. Now, under the Frontend Search Settings -> Custom fields panel you will have to create a new custom field based filter. If you need more information about custom field filters, check this documentation first.

    3. Now, in my case the forum IDs were 406 and 411, so I have made the following filter: https://i.imgur.com/Ns8u55v.png
    This is where the forum IDs and the names were needed. My drop-down values textbox contained this text:

    [html]||Choose a forum**
    406||Test forum 1
    411||Test forum 2[/html]

    4. Also, make sure that the settings are enabled and visible. I am using this configuration: https://i.imgur.com/NwnqPIZ.png

    5. This resulted in the following layout for me: https://i.imgur.com/5taEzLO.png
    Basically a simple drop-down box with a forum selection.

    I hope this helps!

    #16996
    conceptstoreconceptstore
    Participant

    Hello Ernest,

    Thank you very much. I literally just figured out the the same solution as you have given. I watched your custom fields video and found the bbprress_forum_id custom field in your plugin. I used the ID’s and it worked.! I was just about to respond back to you and provide the solution I found, only to find that you figured out the same thing.

    Thank you very much once again for your time and help. It’s apreciated.

    Regards

    Chaten

    #16997
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    #17001
    conceptstoreconceptstore
    Participant

    You cannot access this content.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘BBpress’ is closed to new replies.