This generator can also help with adding new modules to phpBB 3. If you need to add modules, click the arrow above to display the module options.
Modules are a little hard to install on your own. Fortunately, the generator can do the work for you. To install or uninstall modules, you must provide a path to the module's information file. An example path would be includes/acp/info/acp_ban.php. This example would tell the generator to install the admin banning module.
Learn More about how the generator works with modules.
Hide Details
The information files for modules, such as those in includes/acp/info, contain lines detailing the modes that can be used to access a module. When you tell the generator to install or remove a module, it uses these lines to locate the module in the database. Here is a sample mode line from acp_ban.php (the spacing has been altered for display here).
'user' => array('title' => 'ACP_BAN_USERNAMES',
'auth' => 'acl_a_ban',
'cat' => array('ACP_USER_SECURITY')),
The modes lines also contain the menu locations where links to the module will be displayed. The "title" and "cat" entries are important. The title matches a $lang key and will be the text used to link to the module. The cat array determines which menu categories should display the link. You can have more than one entry in the cat array, like so:
'user' => array('title' => 'ACP_BAN_USERNAMES',
'auth' => 'acl_a_ban',
'cat' => array('ACP_USER_SECURITY', 'ACP_CAT_DOT_MODS')),
The phpBB developers recommend that any new admin panel pages for modifications be placed in the .MODs section of the ACP. To do this, you first have to create a category in the .MODs section. The generator can do this with a special extension to the normal mode lines, the "new_parent" directive. The "new_parent" directive consists of two parts: the title and category. These work exactly like the same parts in the mode lines. Below is a example with the "new_parent" directive in bold. If you would like to see
a working example, one can be found in the IP Search download for phpBB 3 available on this site.
'new_parents' => array(
array('title' => 'INSTALLED_MODS',
'cat' => array('ACP_CAT_DOT_MODS')),
),
'modes' => array(
'config' => array('title' => 'VC_SETTINGS',
'auth' => 'acl_a_board',
'cat' => array('INSTALLED_MODS')),
),
If you want to install or remove a module using this generator, it must have an info file on the server before the generator script is run.
Modules to Install:
Enter one filename per line.
|
|
Modules to Uninstall:
Enter one filename per line.
|
|
Modules to Uninstall During an Upgrade:
Enter one filename per line.
|
|
Modules to Install During an Upgrade:
Enter one filename per line. These installs will be performed after any uninstalls for the upgrade.
|
|