Announcement

Collapse
No announcement yet.

Removing a single forum from the Todays Posts search

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Removing a single forum from the Todays Posts search

    I have an OFF TOPIC forum that I would like to have NOT appear in the Todays Posts search results. Not sure how to do this.

    Here is my current search string:

    searchJSON={%22last%22%3A{%22from%22%3A%22lastDay%22}%2C%22view%22%3A%22topic%22%2C %22starter_only%22%3A+1%2C%22sort%22%3A{%22lastcontent%22%3A%22desc%22}%2C%22exclude_type% 22%3A[%22vBForum_PrivateMessage%22%2C%22vBForum_VisitorMessage%22%2C%22vBForum_Report%22%2C%22vB Forum_Redirect%22]}

    HTML Code:
    searchJSON={%22last%22%3A{%22from%22%3A%22lastDay%22}%2C%22view%22%3A%22topic%22%2C%22starter_only%22%3A+1%2C%22sort%22%3A{%22lastcontent%22%3A%22desc%22}%2C%22exclude_type%22%3A[%22vBForum_PrivateMessage%22%2C%22vBForum_VisitorMessage%22%2C%22vBForum_Report%22%2C%22vBForum_Redirect%22]}
    The name of the forum I want to exclude is "Off-Topic Discussions" (id 27)

    I tried the code below, but it does not work correctly
    HTML Code:
    searchJSON={%22last%22:{%22from%22:%22lastDay%22},%22view%22:%22topic%22,%22starter_only%22:%201,%22sort%22:{%22lastcontent%22:%22desc%22},%22exclude%22:[27],%22exclude_type%22:[%22vBForum_PrivateMessage%22,%22vBForum_VisitorMessage%22,%22vBForum_Report%22,%22vBForum_Redirect%22]}
    I have tried this using some code provide from a previous post. However, when I apply the search I only get 4 posts back in the search results, regardless of the number of new posts. Been struggling with this for some time.
    Last edited by TheGLForum; Mon 13 Jul '15, 3:39am.

  • #2
    You can exclude a specific nodeid by adding this into the string (this example assumes the nodeid is 24, change it to whatever nodeid you need to exclude):
    Code:
    "exclude":"24"
    To exclude more than one nodeid, use this format:
    Code:
    "exclude":[1,2,3,4]
    MARK.B | vBULLETIN SUPPORT

    TalkNewsUK - My vBulletin 5.6.3 Demo
    AdminAmmo - My Cloud Demo

    Comment

    Related Topics

    Collapse

    Working...
    X