Problem with an exclude of a forum from latest topics box

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tortyNet
    Member
    • Nov 2017
    • 36
    • 5.3.x

    Problem with an exclude of a forum from latest topics box

    We try to exclude one specific forum from the latest topic box on our site.

    We added a custom query to exclude the forum looking like this:

    Code:
    {"date":{"from":"lastMonth"},"exclude":53,"view":"activity","sort":{"lastcontent":"desc"},"exclude_type":["vBForum_PrivateMessage"]}
    which works fine instead of that the "vanilla" latest topic box shows multliple posts from one thread and the "new" query only shows the latest (I know -> "view":"activity" is described like that)

    But we found no way to reproduce the vanilla behavior with the forum excluded. (view:conversation_thread forces an include_starter) while only_reply excludes the starters totally.

    Anything we are missing here? Any workaround?

    Thanks

    Torsten
  • tortyNet
    Member
    • Nov 2017
    • 36
    • 5.3.x

    #2
    Uh .. we just found out more that the date from limits the starter posts dates and not the last replies ... as we have quite some long running threads we would have to set that to last 2 years or so to have all recent replies in the box ... there must be a more simple solution :-(

    Comment

    • Wayne Luke
      vBulletin Technical Support Lead
      • Aug 2000
      • 74123

      #3
      If you used a search module with Simple Mode, you can select the Forum Channels you want to include from a multi-select list. That would be the simple method.

      view
      • string - One of the values specified below
      Code:
      { "view":"activity" }
      can have one of the following values:
        • activity
      Only include the latest reply or comment (or the starter itself if no replies/comments yet) per starter in all the channels
        • topic
      Filters out the Channel nodes from the Search API nodes results. The Topic view should only return the starter nodes for the specified channel.
        • conversation_thread
      Only display the descendant nodes of (and including) the specified starter (works in conjunction with the channel filter) and filters out the Comment nodes Enforces an "include_starter" and "depth":1 filter
        • conversation_stream
      Only display the descendant nodes of (and including) the specified starter (works in conjunction with the channel filter) Enforces an "include_starter" and "depth":2 filter

      Using the advanced editor you can create powerful search modules. Following you find possible filters / parameters for using within these modules: The search JSON parameter has the following format: {
      Translations provided by Google.

      Wayne Luke
      The Rabid Badger - a vBulletin Cloud demonstration site.
      vBulletin 5 API

      Comment

      • tortyNet
        Member
        • Nov 2017
        • 36
        • 5.3.x

        #4
        When selecting Forums in Simple mode we have really strange results for anonymous users, logged in users are working fine.

        Comment

        • tortyNet
          Member
          • Nov 2017
          • 36
          • 5.3.x

          #5
          Originally posted by Wayne Luke
          If you used a search module with Simple Mode, you can select the Forum Channels you want to include from a multi-select list. That would be the simple method.
          Not working for us as anonymous user see very strange results.

          Originally posted by Wayne Luke
          view
          • string - One of the values specified below
          Code:
          { "view":"activity" }
          can have one of the following values:
          ...
          We already took a look here .. still the same problems ...

          activity -> only _ONE_; the last answer of a thread (latest topic box as many answers of a tread that are posted lately)
          conversation_thread -> enforces include_starter (not so in latest topic box)
          conversation_stream -> enforces include_starter (not so in latest topic box)

          even with activity we still have the problem that we have to provide a date (or a default will be used) and this date is used on the starter instead of the replies. We have threads that are 2-3 years old and to get them in the box we would need to start from 2015 (better 2012) at least which results in a huge very long running query.

          While the latest topic vanilla box performs fine with all threads. And does not seem to care about the date when the thread starter was posted.


          Comment

          • Wayne Luke
            vBulletin Technical Support Lead
            • Aug 2000
            • 74123

            #6
            The latest topic module isn't special. It is just a search module with specific settings. You should copy it if that is what your goal is.
            Translations provided by Google.

            Wayne Luke
            The Rabid Badger - a vBulletin Cloud demonstration site.
            vBulletin 5 API

            Comment

            Related Topics

            Collapse

            Working...