ich versuche schon seit 2 tagen erfolglos eine eigene Seite ins acp einzubauen, erstmal eine funktionslose, die ich danach als Basis für anderes nutzen kann, ich habe mittlerweile 2 quellen ausprobiert, und schritt für schritt alles so gemacht wie dort beschrieben, meine erste quelle war
http://startrekguide.com/forum/mods/ind ... =50&t=2361
das Ergebnis war, das zwar ein neues Modul zum installieren bereit stand, als ich es aber installiert hatte, bekam ich immer folgende Fehlermeldung
Parse error: syntax error, unexpected ')' in D:\Programme\xampp\htdocs\sv\forum\includes\functions_module.php(333) : eval()'d code on line 1
und das neue Modul wurde nicht in dem Menü angezeigt, in dem ich es hinzugefügt habe, und auch sonst nirgends -> lässt sich nicht verwenden
alles andere lief wie üblich.
dann habe ich die "Anleitung" von phpbb.com verwendet, Ergebnis hier, es taucht überhaupt nicht zum installieren auf.
ich bin ratlos.
hiermal die aktuellen Dateien.
includes/acp/info/acp_news.php
Code: Alles auswählen
<?php
/**
*
* @package acp news
*
*/
/**
* @package module_install
*/
class acp_news
{
function module()
{
return array(
'filename' => 'acp_news',
'title' => 'News',
'version' => '1.0.0',
'modes' => array(
'add' => array('title' => 'News Hinzufügen', 'auth' => 'acl_a_news', 'cat' => array('ACP_NEWS')),
'edit' => array('title' => 'News Bearbeiten', 'auth' => 'acl_a_news', 'cat' => array('ACP_NEWS')),
),
);
}
function install()
{
}
function uninstall()
{
}
}
?>
includes/acp/acp_news.php
Code: Alles auswählen
<?php
/**
*
* @package acp_news
*
*/
/**
* @package acp
*/
class acp_news
{
var $u_action;
function main($id, $mode)
{
global $db, $user, $auth, $template;
global $config, $phpbb_root_path, $phpbb_admin_path, $phpEx;
$user->add_lang('mods/acp_news');
// Set up the page
$this->tpl_name = 'acp_news';
$this->page_title = 'News';
// Set up general vars
// modes
if ($mode == 'add')
{
$template->assign_vars(array('CONTENT' => 'inhalt'));
}
else if ($mode == 'edit')
{
$template->assign_vars(array('CONTENT' => 'inhalt'));
}
else
{
$template->assign_vars(array(('CONTENT' => 'inhalt'));
}
}
}
?>
language/de/mods/acp_news.php
Code: Alles auswählen
<?php
/**
* DO NOT CHANGE
*/
if (empty($lang) || !is_array($lang))
{
$lang = array();
}
// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
$lang = array_merge($lang, array(
'news' => 'News',
'News' => 'News',
'NEWS' => 'News',
));
?>
adm/style/acp_news.html
Code: Alles auswählen
<!-- INCLUDE overall_header.html -->
{CONTENT}
<!-- INCLUDE overall_footer.html -->