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

Front-facing file in Extensions

    XMLWordPrintable

Details

    • New Feature
    • Status: Unverified Fix (View Workflow)
    • Major
    • Resolution: Fixed
    • 3.1.0-dev
    • 3.1.0-a1
    • Extensions
    • None

    Description

      Extensions are meant to allow new features to be added without file modifications, but currently there is no way to add a feature that is accessible via a front-facing file. According to discussion here the best way appears to be routing the user through index.php and specifying the extension in the query string. The "front" file (still contained in the extensions directory) would be loaded as if in root, instead of index.php.

      Basically, the way I see this being implemented is modifying the start of index.php to check for an ext value in the query string, and then checking to see if an extension matches. Then, if so, it looks for a file designated as a front-facing file to include. Note that the font-facing file, as such, should not have the normal file header stuff (user setup, etc.) because it is already in index.php

      Of course, there may be better implementations, so speak up if you have a better idea.

      EDIT: After looking at it, it may be best to require that the front facing file be called "index.php" within the extenion's directory?

      Attachments

        Issue Links

          Activity

            People

              imkingdavid David King [X] (Inactive)
              imkingdavid David King [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: