Is there any way to...

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

    Is there any way to...

    Modify the search string of TODAY'S POSTS to NOT show posts from a specific channel(s)? A way to filter what TODAYS POSTS displays?

    Last edited by TheGLForum; Sat 27 Sep '14, 12:33pm.
  • Mark.B
    vBulletin Support
    • Feb 2004
    • 24286
    • 6.0.X

    #2
    Yes you can modify the string.

    Add this into the string:
    Code:
    "exclude":[1,2,3,4]
    1,2,3,4 are the nodeids of the forums you want to exclude...you can find these in the channel manager.
    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

    • TheGLForum
      Senior Member
      • Jul 2014
      • 338
      • 5.0.X

      #3
      So, just tack it on the end of the string:

      search?searchJSON=%7B%22date%22%3A%7B%22from%22%3A%22lastDay%22%7D%2C%22view%22%3A%22topic %22%2C%22sort%22%3A%7B%22lastcontent%22%3A%22desc%22%7D%2C%22exclude_type%22%3A%5B%22vBFor um_PrivateMessage%22%5D%7D"exclude”:[27,11832,1157]

      I tried running the string through an HTML decoder, and came up with:

      search?searchJSON={"date":{"from":"lastDay"},"view":"topic ","sort":{"lastcontent":"desc"},"exclude_type":["vBForum_PrivateMessage"]},"exclude":[27,11832,1157]

      But, when encoded, it still does not work.
      Last edited by TheGLForum; Sat 27 Sep '14, 1:44pm.

      Comment

      • Mark.B
        vBulletin Support
        • Feb 2004
        • 24286
        • 6.0.X

        #4
        Try this:
        Code:
        search?searchJSON={"last":{"from":"lastDay"},"view":"topic","starter_only": 1,"sort":{"lastcontent":"desc"},"exclude":[27,11832,1157],"exclude_type":["vBForum_PrivateMessage","vBForum_VisitorMessage","vBForum_Report","vBForum_Redirect"]}
        Or encoded:
        Code:
        search%3FsearchJSON%3D%7B%22last%22%3A%7B%22from%22%3A%22lastDay%22%7D%2C%22view%22%3A%22topic%22%2C%22starter_only%22%3A%201%2C%22sort%22%3A%7B%22lastcontent%22%3A%22desc%22%7D%2C%22exclude%22%3A%5B27%2C11832%2C1157%5D%2C%22exclude_type%22%3A%5B%22vBForum_PrivateMessage%22%2C%22vBForum_VisitorMessage%22%2C%22vBForum_Report%22%2C%22vBForum_Redirect%22%5D%7D%0A
        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

        • TheGLForum
          Senior Member
          • Jul 2014
          • 338
          • 5.0.X

          #5
          Seems like that should work, but it didnt.

          Comment

          • Mark.B
            vBulletin Support
            • Feb 2004
            • 24286
            • 6.0.X

            #6
            Hmm, it works on my demo site.

            In what way isn't it working?

            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

            • Mark.B
              vBulletin Support
              • Feb 2004
              • 24286
              • 6.0.X

              #7
              Oh I can see the issue, it's encoded the start of the URL.

              Let's try again....

              Code:
              search?searchJSON={%22last%22:{%22from%22:%22lastDay%22},%22view%22:%22topic%22,%22starter_only%22:%201,%22sort%22:{%22lastcontent%22:%22desc%22},%22exclude%22:[27,11832,1157],%22exclude_type%22:[%22vBForum_PrivateMessage%22,%22vBForum_VisitorMessage%22,%22vBForum_Report%22,%22vBForum_Redirect%22]}
              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


              • TheGLForum
                TheGLForum commented
                Editing a comment
                That worked! Thanks.
            • TheGLForum
              Senior Member
              • Jul 2014
              • 338
              • 5.0.X

              #8
              It just brings up the empty search page, as if you click on the Advance Search

              Comment

              • Mark.B
                vBulletin Support
                • Feb 2004
                • 24286
                • 6.0.X

                #9
                The replacement I've posted is working....
                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

                • TheGLForum
                  Senior Member
                  • Jul 2014
                  • 338
                  • 5.0.X

                  #10
                  However, now my members are only seeing 4 results per page instead of 20. I (Admin or Moderator) still see 20.

                  Comment

                  • BirdOPrey5
                    Senior Member
                    • Jul 2008
                    • 9613
                    • 5.6.3

                    #11
                    As a guest who just tested the last URL mark posted I'm seeing 41 results and 20 posts per page.

                    Code:
                    http://www._______.com/search?searchJSON={%22last%22:{%22from%22:%22lastDay%22},%22view%22:%22topic%22,%22starter_only%22:%201,%22sort%22:{%22lastcontent%22:%22desc%22},%22exclude%22:[27,11832,1157],%22exclude_type%22:[%22vBForum_PrivateMessage%22,%22vBForum_VisitorMessage%22,%22vBForum_Report%22,%22vBForum_Redirect%22]}

                    Comment

                    Related Topics

                    Collapse

                    Working...