Announcement

Collapse
No announcement yet.

Is there any way to...

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

  • 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 27th Sep '14, 12:33pm.

  • #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

    TalkNewsUK - My vBulletin 5.5.2 Demo
    AdminAmmo - My Cloud Demo

    Comment


    • #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 27th Sep '14, 1:44pm.

      Comment


      • #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

        TalkNewsUK - My vBulletin 5.5.2 Demo
        AdminAmmo - My Cloud Demo

        Comment


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

          Comment


          • #6
            Hmm, it works on my demo site.

            In what way isn't it working?

            MARK.B | vBULLETIN SUPPORT

            TalkNewsUK - My vBulletin 5.5.2 Demo
            AdminAmmo - My Cloud Demo

            Comment


            • #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

              TalkNewsUK - My vBulletin 5.5.2 Demo
              AdminAmmo - My Cloud Demo

              Comment


              • TheGLForum
                TheGLForum commented
                Editing a comment
                That worked! Thanks.

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

              Comment


              • #9
                The replacement I've posted is working....
                MARK.B | vBULLETIN SUPPORT

                TalkNewsUK - My vBulletin 5.5.2 Demo
                AdminAmmo - My Cloud Demo

                Comment


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

                  Comment


                  • #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...
                    X