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

Allow extensions to be accessed via controller with shorter access name than "vendor/extname"

    Details

    • Type: Improvement
    • Status: Unverified Fix
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.0-dev
    • Fix Version/s: 3.1.0-a1
    • Component/s: Extensions
    • Labels:
      None

      Description

      Currently, in order to access an extension's front controller, you have to type in the URL /index.php?ext=vendor/extensionName

      These names can get long and ugly. Originally, I believe this was done to prevent duplication, but there are ways to make sure a duplicate name is not taken.

      As such, I propose we add a new column on the phpbb_ext table called "extension_controller" or something similar, which holds a string value of alphanumeric characters and underscores, which can then be used to access that extension's front controller. This would allow URLs like this instead: /index.php?ext=blog
      Note that the extension should still be accessible via the vendor/extname path if needed.

      The MOD/Extension team should require that extensions submitted to the CDB, that require use of a controller, have a unique, and brief but descriptive controller name. Also, there should be a check within phpBB when attempting to install an extension to make sure another extension does not have the same name. We could then either simply error out or provide the admin with a way to use his own controller name for that installation of the extension.

      Thoughts?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              imkingdavid David King
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: