Hello everyone.
I'm trying to create a page external to phpbb 3.3.14, to update via forms. However, I'm having no success.
The following error has been returned:
The result of the var dump and:
BBCODE Original´My functionSEE THAT I USE CUSTOM BBCODE
I'm trying to create a page external to phpbb 3.3.14, to update via forms. However, I'm having no success.
The following error has been returned:
Code:
Fatal error: Uncaught Exception: Serialization of 'SimpleXMLElement' is not allowed in C:\laragon\www\phpBB3\phpbb\textformatter\s9e\parser.php:239 Stack trace: #0 [internal function]: serialize(Array) #1 C:\laragon\www\phpBB3\phpbb\textformatter\s9e\parser.php(239): array_map('serialize', Array) #2 C:\laragon\www\phpBB3\includes\message_parser.php(1277): phpbb\textformatter\s9e\parser->get_errors() #3 C:\laragon\www\phpBB3\includes\functions_content.php(742): parse_message->parse(true, true, true, true, true, true, true, true, 'post') #4 C:\laragon\www\postador\include\funcoes.php(216): generate_text_for_storage('[dl][dd][center...', '', '', 7, true, true, true) #5 C:\laragon\www\postador\include\funcoes.php(150): update_est(156, 105, '26', '[Http] kjnlkjlj...') #6 C:\laragon\www\postador\include\postar.php(6): create_post('[Http] kjnlkjlj...', '[dl][dd][center...', '26') #7 C:\laragon\www\postador\cont\p_ret.php(49): require_once('C:\laragon\www\...') #8 C:\laragon\www\postador\tpl\conteudo.php(62): require_once('C:\\laragon\\www\\...') #9 C:\laragon\www\postador\index.php(47): require_once('C:\\laragon\\www\\...') #10 {main} thrown in C:\laragon\www\phpBB3\phpbb\textformatter\s9e\parser.php on line 239
Code:
[dl][dd][center][b:8ns5][size=150:8ns5]kjnlkjlj[/size:8ns5][/b:8ns5][/center][/dd][dt2]POSTER[/dt2][dt2]DES CREATION[/dt2][dd2][poster]jl[/poster][/dd2][dd2]jlkjn[/dd2][dt]SCREENSHOTS[/dt][dd][center][shot]kjlk[/shot] [shot]lkj[/shot] [shot]jlk[/shot] [shot]nl[/shot] [/center][/dd][dt2]PROGRAM DATA[/dt2][dt2]CONFIGURATION MINIMUM[/dt2][dd2][list:8ns5][*:8ns5][b:8ns5]Version:[/b:8ns5]lkj[/*:m:8ns5][*:8ns5][b:8ns5]Function:[/b:8ns5] jlkj[/*:m:8ns5][*:8ns5][b:8ns5]Language:[/b:8ns5] Portuguese[/*:m:8ns5][*:8ns5][b:8ns5]Size:[/b:8ns5] kljnlk[/*:m:8ns5][*:8ns5][b:8ns5]Manufacturer:[/b:8ns5] jlkn[/*:m:8ns5][*:8ns5][b:8ns5]Operating System:[/b:8ns5] Windows[/*:m:8ns5][/list:u:8ns5][code:8ns5]Serial: nklj[/code:8ns5][/dd2][dd2]klj[/dd2][dt]Other Information[/dt][dd]klj[/dd][dt]Download[/dt][dd][center]lkjnln[/center][/dd][dt]IMPORTANT[/dt][dd][center][color=#006400:8ns5][b:8ns5]Don't be a vampire anymore. Collaborate, Thank and Encourage the Uploader. DO YOUR PART![/b:8ns5][/color:8ns5][/center][/dd][/dl]
Code:
[dl][dd][center][b][size=150]kjnlkjlj[/size][/b][/center][/dd][dt2]POSTER[/dt2][dt2]DESCRIPTION[/dt 2][dd2][poster]jl[/poster][/dd2][dd2]jlkjn[/dd2][dt]SCREENSHOTS[/dt][dd][center][shot]kjlk[/shot] [shot]lkj[/shot] [shot]jlk[/shot] [shot]nl[/shot] [/center][/dd][dt2]PROGRAM DATA[/dt2][dt2]MINIMUM CONFIGURATION[/dt2 ][dd2][list][*][b]Version:[/b] lkj[*][b]Function:[/b] jlkj[*][b]Language:[/b] Portuguese[*][b]Size:[/b] kljnlk[*][b]Manufacturer:[/ b] jlkn[*][b]Operating System:[/b] Windows[/list]Serial: nklj[/dd2][dd2]klj[/dd2][dt]Other Information[/ dt][dd]klj[/dd][dt]Download[/dt][dd][center]lkjnln[/center][/dd][dt]IMPORTANT[/dt][dd][center][color= #006400][b]Don't be a vampire anymore. Collaborate, Thank and Encourage the Uploader. DO YOUR PART![/b][/color][/center][/dd][/dl]
Code:
// Update BBCODE$sql = 'SELECT post_id, post_text, bbcode_uid, bbcode_bitfield, enable_bbcode, enable_smilies, enable_magic_urlFROM ' . POSTS_TABLE . 'WHERE topic_id = ' . (int) $tid;$result = $db->sql_query($sql);while ($row = $db->sql_fetchrow($result)) {$post_id = (int) $row['post_id'];$text = $row['post_text'];$uid = $row['bbcode_uid'];$bitfield = $row['bbcode_bitfield'];$allow_bbcode = (bool) $row['enable_bbcode'];$allow_smilies = (bool) $row['enable_smilies'];$allow_urls = (bool) $row['enable_magic_url'];var_dump($text);// Recompiles the BBCodes correctlygenerate_text_for_storage($text, $uid, $bitfield, $options, $allow_bbcode, $allow_smilies, $allow_urls);// Updates the post in the database$sql_update = 'UPDATE ' . POSTS_TABLE . ' SET post_text = "' . $db->sql_escape($text) . '", bbcode_uid = "' . $db->sql_escape($uid) . '", bbcode_bitfield = "' . $db->sql_escape($bitfield) . '" WHERE post_id = ' . $post_id;$db->sql_query($sql_update);}$db->sql_freeresult($result);}
Statistics: Posted by henrique.seven2011 — Mon Feb 03, 2025 7:11 pm