Announcement

Collapse
No announcement yet.

Search/Recent Posts acting oddly

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

  • Search/Recent Posts acting oddly

    I seem to remember an issue that sounded similar to what I'm experiencing here.

    I have a custom search query to create a Recent Posts block.

    Code:
    {"date":{"from":"1500"},"type":["vBForum_Gallery","vBForum_Link","vBForum_Text"],"channel":{"param":"channelid"},"sort":{"lastcontent":"desc"},"view":"activity","exclude":"6","exclude_type":["vBForum_PrivateMessage"]}
    This makes a block with the last activity on any given thread dating back 1500 days. I set it back that far because of the issue in question. If a thread was started before your search range, then replies to that thread won't show up in the recent posts block.

    Is there anything I can do to make this work right apart from just setting the date back 10 years?

  • #2
    First - This segment appears to be incorrect "channel":{"param":"channelid"}. Where did you get this from? The proper value would be "channel":XX, where XX is the channel you want to show the search results from.

    Second - The age of the original post should not come into account when showing topics with the latest updates. Removing the date filter altogether should be the solution here.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud customization and demonstration site.
    vBulletin 5 Documentation - Updated every Friday. Report issues here.
    vBulletin 5 API - Full / Mobile
    I am not currently available for vB Messenger Chats.

    Comment


    • #3
      I honestly couldn't tell you where I found param. Might've been at vbmods.rocks.

      I've done some experimenting, though. The Date is necessary.

      Here is the search JSON without the date and with channels selected.

      Code:
      {"type":["vBForum_Gallery","vBForum_Link","vBForum_Photo","vBForum_Text"],"channel":["14","24","43","44","57","26","76","37","15","23","51","52","16","22","58","59","66","78","25","48","61","62","32","67","68","35","64","65","36","45","46","79","47","69","42","17","30","60","70","31","55","71","77","38","39","40","41","72","73","74","75","54037","18","33","53","80","54","81","56","19","27","28","49","20","29","50","63","3","4"],"sort":{"lastcontent":"desc"},"view":"activity","exclude":"6","exclude_type":["vBForum_PrivateMessage"]}
      Here ws the result.

      Click image for larger version

Name:	nodate.png
Views:	26
Size:	398.3 KB
ID:	4419691

      Here is the code with the date.

      Code:
      {"date":{"from":"1500"},"type":["vBForum_Gallery","vBForum_Link","vBForum_Photo","vBForum_Text"],"channel":["14","24","43","44","57","26","76","37","15","23","51","52","16","22","58","59","66","78","25","48","61","62","32","67","68","35","64","65","36","45","46","79","47","69","42","17","30","60","70","31","55","71","77","38","39","40","41","72","73","74","75","54037","18","33","53","80","54","81","56","19","27","28","49","20","29","50","63","3","4"],"sort":{"lastcontent":"desc"},"view":"activity","exclude":"6","exclude_type":["vBForum_PrivateMessage"]}
      Here is the result of that one.

      Click image for larger version

Name:	withdate.png
Views:	21
Size:	416.2 KB
ID:	4419692

      Unless I missed something, the starting date of the post is still a problem.

      Comment


      • #4
        Can't tell your first screenshot doesn't show any dates or times.

        The date you are setting is a look back period. It has nothing to do with the when the topic was created. It only deals with the latest posts in the channels you're searching. It isn't necessary to show the latest 20 posts which will be created sooner than 1500 days (hopefully).

        There was an issue very early on where new content could appear later in the search record. However by limiting your results to 20 days, you wouldn't have seen this content. The look back period had now effect on where this content appeared. It only gave you more pages to look through in order to find the content. That issue has been resolved for a long time.
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud customization and demonstration site.
        vBulletin 5 Documentation - Updated every Friday. Report issues here.
        vBulletin 5 API - Full / Mobile
        I am not currently available for vB Messenger Chats.

        Comment


        • #5
          Well, here are the screens again.

          With the 1500 Day look back.

          Click image for larger version

Name:	withdate.png
Views:	15
Size:	386.4 KB
ID:	4419738

          Here is the same query, with only the lookback date removed.

          Click image for larger version

Name:	nodate.png
Views:	15
Size:	400.8 KB
ID:	4419739

          I don't think I can illustrate it any clearer than that. If the creation date of the post isn't in the lookback period, new posts in it don't appear.

          Comment


          • #6
            It shouldn't. If you feel this is an issue, then you would need to create a bug report in the issue tracker.
            Translations provided by Google.

            Wayne Luke
            The Rabid Badger - a vBulletin Cloud customization and demonstration site.
            vBulletin 5 Documentation - Updated every Friday. Report issues here.
            vBulletin 5 API - Full / Mobile
            I am not currently available for vB Messenger Chats.

            Comment


            • #7
              It is an issue. It's not doing what the module is supposed to be doing. I'll file an issue and be as specific as I can.

              Comment

              Related Topics

              Collapse

              Working...
              X