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

[Template] core.viewtopic_page_header_before

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Won't Do
    • None
    • None
    • None
    • None

    Description

      Identifier: core.viewtopic_page_header_before
      Parameters: any
      Explanation:

      Currently, there is not a proper cleanup hook. The post query can be adjusted with `viewtopic_get_post_data`. The extra data can be read with `viewtopic_post_rowset_data`and new post data can be then created, but not stored in `post_row`. This means that the data has to be stored as member of the class and then the `post_row` can be updated by `viewtopic_modify_post_row`. The array then can be unset by `viewtopic_modify_page_title`, but this will break if this part of the code is relocated during a refactoring session. The proposed handle does not have this problem, because it is placed just before the rendering process.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: