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

Allow extensions control post buttons displaying

    Details

    • Type: Improvement
    • Status: Unverified Fix
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.5
    • Fix Version/s: 3.1.6-RC1
    • Component/s: Events, Viewing posts
    • Labels:
      None

      Description

      Currently post buttons list displaying is controlled by condition:

      <!-- IF postrow.U_EDIT or postrow.U_DELETE or postrow.U_REPORT or postrow.U_WARN or postrow.U_INFO or postrow.U_QUOTE -->
      

      This causes any custom post button added by extension using viewtopic_body_post_buttons_after event is dependent on the same condition and can't use its own condition to control self displaying.
      The fix would be introducing template var which can be [re]assigned by extensions (f.e. via the viewtopic_body_post_buttons_list_before event) to allow adding their own conditions for the post buttons displaying.

      prosilver style is affected.

        Attachments

          Activity

            People

            • Assignee:
              Marc Marc
              Reporter:
              rxu rxu
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: