
Ich habe ein Problem mit der API Funktion submit_post. Und zwar will ich formatierten Text, also Farbe grösse etc..., speichern.
ein kleines Beispiel:
Code: Alles auswählen
define('IN_PHPBB',true);
$phpEx = substr(strrchr(__FILE__,'.'),1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/functions_posting.' . $phpEx);
$message = utf8_normalize_nfc(request_var('post_message','Default Post',true));
$subject = utf8_normalize_nfc(request_var('post_subject','Default Subject',true));
$post_name = utf8_normalize_nfc(request_var('post_name','Default Name',true));
$poll = $uid = $bitfield = $options = '';
generate_text_for_storage($message,$uid,$bitfield,$options,true,true,true);
generate_text_for_storage($subject,$uid,$bitfield,$options,false,false,false);
$data = array(
'forum_id' => $post_forumid,
'icon_id' => false,
'enable_bbcode' => true,
'enable_smilies' => true,
'enable_urls' => true,
'enable_sig' => true,
'message' => $message,
'message_md5' => md5($message),
'bbcode_bitfield' => $bitfield,
'bbcode_uid' => $uid,
'bbcode_options' => $options,
'post_edit_locked' => 0,
'topic_title' => $subject,
'notify_set' => false,
'notify' => false,
'post_time' => 0,
'forum_name' => '',
'enable_indexing' => true,
);
$user->session_begin();
$auth->acl($user->data);
$user->setup();
$auth->login($post_username,$post_userpw);
$post_url = submit_post('post',$subject,$post_name,POST_NORMAL,$poll,$data);
Aber im Post kommt dann der BBCode ausgeschrieben und wird nicht formatiert

Hat einer einen Typ was ich falsch mache?