fr
folder, containing a language file with the same name as the one in the en
folder, in the language folder and if that language is installed in the core and the user has that language selected then it should pick it up.Yes and no.Megakyoto wrote:is it possible to write simple extensions with just a couple of files instead of dozens spread in tens of folders?
I downloaded the Extension, enabled it on my ACP, though the "demo" doesn't appear for me. I tried purging the cache in the ACP on the general tab, though still no "demo" link appearing. I tried getting another extension ("Collapsible Forum Categories") to see if I was able to get other extensions to work, though that one isn't appearing on the forum either (even after I enable it in the Customise >> Extension Manager). Is there another setting I forgot to enable?nickvergessen wrote:I made an as-simple-as-possible Extension that uses some of the basic mechanisms in phpBB 3.1 your extension will use aswell:You can find the code at https://github.com/nickvergessen/phpbb-ext-acme-demo
- Events: for adding a link to a new page in the header and loading a language file globally
- Routes and Controllers: which display the new page
- Ext Language files: so your files are where your code is
- Ext Style files: so your style files are where your code is
- Migrations: Database changes similar to UMIL in 3.0
- ACP Module
To install it and see the demo:Now you should see the link in the header:
- Download the .zip
- Create the folder
ext/acme/demo/
next to yourconfig.php
- Copy the content from the .zip to the new folder
- Go to ACP > Customise > Extensions >
and enable the Acme Demo Extension extension
and if you click it, you should see the "Hello World!"
If you change the url fromphpBB/app.php/demo/world
tophpBB/app.php/demo/nickvergessen
,
you will see the message "Hello nickvergessen!"
You mean the phpBB install directory? There's a colorful notice on the front of the forum that indicates the forum is currently unusable with the directory present. Why would you assume that an extension will work with the forum in that state?AesirHod wrote:This example could do with a note that the install directory must be deleted or renamed before the demo button will function. It might seem obvious to experienced users, but I initially left the folder in case I still needed anything from it.
not sure what you are talking about. no extension has a folder named install as part of it that I know of.AesirHod wrote:This example could do with a note that the install directory must be deleted or renamed before the demo button will function. It might seem obvious to experienced users, but I initially left the folder in case I still needed anything from it.
Sorry about that. I assumed I'd only need to read the posts that answered questions I actually had. I was merely suggesting that it would save a bit of time for beginners.Lumpy Burgertushie wrote:not sure what you are talking about. no extension has a folder named install as part of it that I know of.AesirHod wrote:This example could do with a note that the install directory must be deleted or renamed before the demo button will function. It might seem obvious to experienced users, but I initially left the folder in case I still needed anything from it.
as for the install folder that comes with phpbb,that should have been deleted way before you started installing extensions.
there are probably hundreds of posts here that tell you that the board does not work as long as that folder is present. it is repeated in every set of install instructions etc.
robert