Seite 1 von 1

[gelöst] Mod nach anleitung aber syntax error

Verfasst: 09.07.2008 04:03
von newlin
Hallo zusammen,

Ich bräuchte mal ein wenig Hilfe, ich habe mal nach der anleitung von phpbb.com das acp modul mit den Beispiel code gemacht. Wenn ich das modul nun einfüge bekomme ich immer eine Fehler Meldung obwohl ich nichts in der Datei geändert habe.

Code: Alles auswählen

Parse error: syntax error, unexpected ')' in /opt/lampp/htdocs/vaevic/includes/functions_module.php(328) : eval()'d code on line 1

Parse error: syntax error, unexpected ')' in /opt/lampp/htdocs/vaevic/includes/functions_module.php(328) : eval()'d code on line 1
[phpBB Debug] PHP Notice: in file /adm/index.php on line 151: Cannot modify header information - headers already sent by (output started at /includes/functions_module.php(328) : eval()'d code:1)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 153: Cannot modify header information - headers already sent by (output started at /includes/functions_module.php(328) : eval()'d code:1)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 154: Cannot modify header information - headers already sent by (output started at /includes/functions_module.php(328) : eval()'d code:1)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 155: Cannot modify header information - headers already sent by (output started at /includes/functions_module.php(328) : eval()'d code:1)
Woran könnte es liegen? danke schon mal im voraus.

Verfasst: 09.07.2008 17:14
von nickvergessen
Zeig mal die .html-Datei zu deinem Modul.

Verfasst: 10.07.2008 09:20
von newlin
hier mal die .html

ich versuch halt für das mod aoc characters ein acp zu bauen...:)

Verfasst: 10.07.2008 11:55
von Dr.Death
In einer Modul Datei ist irgendwo eine runde, schliessende Klammer zuviel.

Das, was nickvergessen dachte, ist eine falsch schliessender Switch ( http://olympuswiki.naderman.de/Template_errors )

Verfasst: 11.07.2008 19:37
von newlin
hui hat jetzt etwas gedauert, weil mein englisch nicht so gut ist und irgendwie zig tausend mal google an geschmissen :) aber es war in der info-file.

Code: Alles auswählen

   'index'        => array('title' => 'ACP_FOO_INDEX_TITLE', 'auth' => 'acp_foo_auth', 'cat' => array('')),
durch

Code: Alles auswählen

'index'        => array('title' => 'ACP_FOO_INDEX_TITLE', 'auth' => 'acl_a_user', 'cat' => array('')),
ersetzen.
aber hier nochmal der link wo ich es her habe. danke für eure hilfe :)