1 (edited by vnpenguin 2005-04-11 17:14)

Topic: The BBCode syntax in the message is incorrect. Missing end tag

Hi,
I'm using 1.2.5. When I post a code which was between code and /code but punBB shows me always the following error message:

The BBCode syntax in the message is incorrect. Missing end tag for code.

For old messages, which contain already the code, the display is correct.

Any ideas for help ?

Thanks

PS: Sorry, I can't produce [ and ] on my post above

[no signature]

2 (edited by vnpenguin 2005-04-11 17:35)

Re: The BBCode syntax in the message is incorrect. Missing end tag

In parser.php I tried to add a debug code like:

            if ($tmp === false || ($tmp2 !== false && $tmp2 < $tmp))
            {
                $error = $lang_common['BBCode error'].' '.$lang_common['BBCode error 2'];
                $error .= "<p><hr><pre>$text</pre><hr>";
                return;
            }
            else
                $text = substr($text, $tmp+7);

            $cur_index += $tmp+7;
        }

So you can see the image:
http://vnoss.org/pub/punbb-bbcode.png

The string $text has opening and closing tag CODE, but punbb shows always error sad

[no signature]

Re: The BBCode syntax in the message is incorrect. Missing end tag

heres the fix http://punbb.org/forums/viewtopic.php?pid=39852#p39852

Re: The BBCode syntax in the message is incorrect. Missing end tag

Thank you, it's fixed now smile

The search function of this forum gives me nothing with searching key "BBCode error" sad

[no signature]

5

Re: The BBCode syntax in the message is incorrect. Missing end tag

The search return nothing for BBCode error, BBCode, bbcode, code. Can that be right?

Re: The BBCode syntax in the message is incorrect. Missing end tag

I'll look into it.

"Programming is like sex: one mistake and you have to support it for the rest of your life."