So weit war ich auch schon.

- Aber werde es mir nochmal anschauen.
Mit templates muss ich nix machen, oder?
EDIT:
Ich bekomme folgenden Fehler:
The file ./styles//template/bbcode.html is missing.
wenn ich dieses Skript hier ausführe:
Code: Alles auswählen
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/functions_posting.' . $phpEx);
include($phpbb_root_path . 'includes/bbcode.' . $phpEx);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
include($phpbb_root_path . 'includes/message_parser.' . $phpEx);
$parser = new parse_message("testtext :) [b]fett[/b]");
$parser->format_display(true,true,true);
echo $text;
Dieses File befindet sich am gleichen Ort, wie index.php, posting.php usw.
Ich nehme einmal an, dass da noch Einstellungen machen muss, damit er in das Richtige styles Verzeichniss wechselt.. Ideen, wo ich da ansetzen soll?
EDIT:
OK, ich habs.
Ich musste noch den user initialisieren und zuerst noch parsen.
Code: Alles auswählen
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
$parser = new parse_message($_GET['text']);
$parser->parse(true,true,true);
$message = $parser->format_display(true,true,true,false);