http://wiki.phpbb.com/Creating_modules
http://wiki.phpbb.com/Mcp/info
Allerdings will das nicht so wirklich funktionieren. Warum? Die Dateien habe ich erstellt und hoch geladen. Allerdings kann ich nicht darauf zugreifen. Im ACP erscheint gar nichts.
Hier noch jeweils der Inhalt der Dateien:
mcp_gmmts.php (mcp)
Code: Alles auswählen
class mcp_gmmts
{
function main($id, $mode)
{
$this->page_title = 'mcp_GMMTS';
$this->tpl_name = 'mcp_gmmts';
}
}
Code: Alles auswählen
class mcp_gmmts
{
function module()
{
return array(
'filename' => 'mcp_gmmts',
'title' => 'GMMTS',
'version' => '1.0.0',
'modes' => array(
'mode1' => array('title' => 'MCP_PAGE_MODE_ONE_TITLE', 'auth' => 'acl_m_,$id', 'cat' => array('MCP_PAGE_TITLE')),
'mode2' => array('title' => 'MCP_PAGE_MODE_TWO_TITLE', 'auth' => 'acl_m_,$id', 'cat' => array('MCP_PAGE_TITLE')),
),
);
}
function install()
{
}
function uninstall()
{
}
}
Falls sich jemand denkt, was mit der Template Datei ist --> Die ist auch erstellt. Aber die muss ich hier ja nicht posten oder? Weil verändert habe ich sie nicht.