Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-14592

[PHP] core.search_backend_search_after

    XMLWordPrintable

Details

    • Improvement
    • Status: Unverified Fix (View Workflow)
    • Minor
    • Resolution: Fixed
    • 3.1.9-RC1
    • 3.1.10-RC1
    • Events, Search
    • None

    Description

      Identifer: core.search_backend_search_after
      Location (aprox): /search.php:552
      Parameters:
      search_type
      show_results
      search_fields
      search_terms
      sort_by_sql
      sort_key
      sort_dir
      sort_days
      ex_fid_ary
      m_approve_posts_fid_sql
      topic_id
      author_id_ary
      sql_author_match
      start
      per_page
      id_ary
      total_match_count
      Explanation:
      An extension that wants to add a new permissions that requires post editing to searching such that it depends on more elements to filter than the original parameters that are sent to the phpbb\search\base::keyword_search() && phpbb\search\base::author_search()
      Is going to break due to its caching system.
      Because of that, filtering after the results are gathered is required also to alter the number of results in the response.

      None of theses is perfect but I cannot find an actual good solution for this problem.
      In large forums, my previous solution does not work so I'm trying a different approach.

      Extension example:
      https://www.phpbb.com/community/viewtopic.php?f=456&t=2283001

      Attachments

        Activity

          People

            Marc Marc
            brunoais brunoais
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: