Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Example extension for phpBB3
PHP
branch: master
Failed to load latest commit information.
acp Update class names to include vendor
adm/style Add a custom admin template for the example module (copy of acp_board…
captcha
config Update cron task to use the DIC
cron Update cron task to use the DIC
language/en Consoldate example extensions from igorw and my own into naderman's e…
search Add a search backend (copy of native fulltext search backend)
styles/prosilver/template Consoldate example extensions from igorw and my own into naderman's e…
README.md This repository is no longer maintained
composer.json Fix composer.json and update name in readme to include vendor
controller.php one more thing
ext.php Consoldate example extensions from igorw and my own into naderman's e…
license.txt updated README.md and added license

README.md

WARNING - THIS EXTENSION NO LONGER WORKS

This was created as a test at the beginning of phpBB extensions and is not maintained anymore.

You can check out the instructions on converting a MOD to a 3.1 extension in https://github.com/nickvergessen/howto-convert-phpbb30mod-to-phpbb31ext

There's also a corresponding extension available at https://github.com/nickvergessen/phpbb3-mod-newspage/tree/develop-caitlyn

Example Extension

Installation

Clone into phpBB/ext/naderman/example:

git clone https://github.com/naderman/phpbb3-example-ext.git phpBB/ext/naderman/example

Enable in database by inserting a row into phpbb_ext

INSERT INTO phpbb_ext (ext_name, ext_active, ext_state) VALUES ('example', 1, '');

Usage

The cron task writes to a file called foobar.txt in your forum root with the current time (to the second) each time a page on your board is accessed. Completely pointless, but it's an example. For this to work, ensure that a file called foobar.txt exists in your board root and that it is writable.

To access the front-page file, navigate your browser to index.php?ext=example

License

GPLv2

Something went wrong with that request. Please try again.