Using this Extension
Form Maker/Creator: viewtopic.php?t=2400921
Not sure if this is the correct location to ask for this since this Mod is marked as ABD
Error Message Issues I am having is these:
ISSUE 1 - When on a topic and User Hits REPLY to a Topic it gives the Error Message
ISSUE 2 - When Creating a New Post when One hits PREVIEW button if the text field is empty it also gives the Error MessageSo I was looking around and I found this fix that checks for if ($mode <>'reply') That fixed ISSUE 1 for the Topic REPLY issue. However ISSUE 2 when creating a New Topic Post and the Writing Field is empty it still gives the errorChanging the if ($mode <>'reply') to if ($mode <>'post') FIXES ISSUE 2 but than it recreates ISSUE 1
So it is basically between Choosing One fix over the other.
I tried using an ELSE IF statement but if try this than both stop working.
So
Form Maker/Creator: viewtopic.php?t=2400921
Not sure if this is the correct location to ask for this since this Mod is marked as ABD
Error Message Issues I am having is these:
ISSUE 1 - When on a topic and User Hits REPLY to a Topic it gives the Error Message
ISSUE 2 - When Creating a New Post when One hits PREVIEW button if the text field is empty it also gives the Error Message
Code:
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/s9e/text-formatter/src/Renderer.php on line 41: DOMDocument::loadXML(): Empty string supplied as input
Code:
if ($message === ''){if ($mode <>'reply') //mod{$message = $this->grab_form_data($forum_id);foreach ($files as $key => $name){$message_parser->parse_attachments($key, $mode, $forum_id, $submit, $preview, $refresh);}$message_parser->message = $message;$post_data = $message_parser->message;}}
Code:
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/s9e/text-formatter/src/Renderer.php on line 41: DOMDocument::loadXML(): Empty string supplied as input
So it is basically between Choosing One fix over the other.
Code:
if ($mode <>'post')
I tried using an ELSE IF statement but if try this than both stop working.
So
Code:
if ($message === ''){if ($mode <>'reply') //mod{$message = $this->grab_form_data($forum_id);foreach ($files as $key => $name){$message_parser->parse_attachments($key, $mode, $forum_id, $submit, $preview, $refresh);}$message_parser->message = $message;$post_data = $message_parser->message;}elseif ($mode <>'post') //mod{$message = $this->grab_form_data($forum_id);foreach ($files as $key => $name){$message_parser->parse_attachments($key, $mode, $forum_id, $submit, $preview, $refresh);}$message_parser->message = $message;$post_data = $message_parser->message;}}
Statistics: Posted by Dead Man — Wed Jul 10, 2024 3:55 pm