How to exclude a folder/forum from the main search?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ndoktoruser
    Member
    • Aug 2015
    • 69
    • 5.1.x

    How to exclude a folder/forum from the main search?

    Hi,

    I know that I can include restrictions in the JSON used for the search.
    Example:
    { "exclude":[1,2,3,4] }
    My objective is not showing certain forums as search result.

    However, when I log in the forum with the super admin account and I try to edit the navigation bar (this navigation bar), I only see options to restrict search results of the Sub Navigation Bar.

    Where do I edit the search used in the main search (magnifying glass)?

    Thanks in advance!
  • glennrocksvb
    Former vBulletin Developer
    • Mar 2011
    • 4021
    • 5.7.X

    #2
    That will require custom coding. Do you always want to exclude those forums every time you search in all instances?

    Flag Icon Postbit Insert GIPHY Impersonate User BETTER INITIALS AVATAR Better Name Card Quote Selected Text Bookmark Posts Post Footer Translate Stop Links in Posts +MORE!

    Comment

    • ndoktoruser
      Member
      • Aug 2015
      • 69
      • 5.1.x

      #3
      Yes, I always want to exclude those forums. However, I only need to exclude those forums in the main search.

      Reason:
      I recently split my forum in two, but both new databases still contain all old posts done before the moment I split the old forum, then I simply hide what I don't want to be shown in the main page. Now I want that results of "new forum 2" not be shown in "new forum 1".
      One of the solutions would be excluding from search.
      Other solution would be physically remove those forums from the DB, but when I tried (in a test environment) to remove big forums (20,000 to 150,000 posts), the routine would stop and some nodes would remain in the DB.

      Comment

      • ndoktoruser
        Member
        • Aug 2015
        • 69
        • 5.1.x

        #4
        Hello, everyone!

        In case anyone is looking for the same solution, there is an option for Channel Rights and you can set view rights for specific groups not to be able to view certain content.
        So you can enable for "registered users" and "unregistered users" not to see the forum content.

        Thanks!

        Comment

        • Wayne Luke
          vBulletin Technical Support Lead
          • Aug 2000
          • 74120

          #5
          I've added a Jira to have a "Can Search" channel permission added. You can find it here: http://tracker.vbulletin.com/browse/VBV-17480

          Searching and Viewing are two different use cases in my opinion.
          Translations provided by Google.

          Wayne Luke
          The Rabid Badger - a vBulletin Cloud demonstration site.
          vBulletin 5 API

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...