Removing a single forum from the Todays Posts search

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TheGLForum
    Senior Member
    • Jul 2014
    • 338
    • 5.0.X

    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, 2:39am.
  • Mark.B
    vBulletin Support
    • Feb 2004
    • 24287
    • 6.0.X

    #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
    ------------
    My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
    My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

    Comment

    Related Topics

    Collapse

    Working...