A nice Wedge notice that I cannot duplicate

xrunner

  • Posts: 192
A nice Wedge notice that I cannot duplicate
« on June 6th, 2013, 02:53 AM »
When replying to another post today, I got a nice notice message that I forgot a

Code: [Select]
[/quote]

I thought, wow, that's a very nice alert message! :cool:

I didn't copy the notice (it appeared at the top of the screen, as far as I can remember), but I thought it was pretty cool that it was incorporated into this forum.

But when I tested it, I could not duplicate the notice:

Code: [Select]
[quote]test line 1[/quote][quote]test line 2

What was I seeing before and how do I duplicate it?

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: A nice Wedge notice that I cannot duplicate
« Reply #1, on June 6th, 2013, 02:55 AM »
Yes, there is a feature to attempt to find missing bbcode tags and warn the user about it. In theory any mismatch of tags should prompt it except it doesn't always work as intended.

Quotes in particular are actually a bit fecked, as they are in SMF itself incidentally. There is all kinds of hidden logic buried deep in the parser about fixing improperly nested tags and there's actually bugs in SMF filed years ago as to the various problems it can cause, especially when it tries to fix table tags.

As far as the bbc parser is actually concerned your example above is quite legal because it will be silently fixed. :/
When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial

xrunner

  • Posts: 192
Re: A nice Wedge notice that I cannot duplicate
« Reply #2, on June 6th, 2013, 03:00 AM »
Quote from Arantor on June 6th, 2013, 02:55 AM
Yes, there is a feature to attempt to find missing bbcode tags and warn the user about it. In theory any mismatch of tags should prompt it except it doesn't always work as intended.
Oh, well I thought it was pretty cool, so that's why I wanted to go back and see the message again. :) But I was brought down because I couldn't. :hmm:
Quote
Quotes in particular are actually a bit fecked, as they are in SMF itself incidentally. There is all kinds of hidden logic buried deep in the parser about fixing improperly nested tags and there's actually bugs in SMF filed years ago as to the various problems it can cause, especially when it tries to fix table tags.
Hidden logic. I love hidden logic, it's my favorite. Some people think I have hidden logic, which is why I work so hard to prove otherwise. :rotfl:
Quote
As far as the bbc parser is actually concerned your example above is quite legal because it will be silently fixed. :/
Well I'll be ... ::)

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: A nice Wedge notice that I cannot duplicate
« Reply #3, on June 6th, 2013, 03:03 AM »
A more thorough going over of the bbc parser and preparser will be needed at some point - you know, taking it out back, bending it over and giving it a good going-over... will help it a lot. :P

Nao

  • Dadman with a boy
  • Posts: 16,061
Re: A nice Wedge notice that I cannot duplicate
« Reply #4, on June 6th, 2013, 12:08 PM »
See, Pete? I told you we DO have features that make people go HOLY SHIT... :P

Ah, yes, regarding reproducing the 'notice', you'll have to do more than what Wedge/SMF can fix, and small trivia for you: it also works in quick edit mode, although I think it doesn't tell you what tag is wrong IIRC, but it still kindly warns you of a problem ;)

xrunner

  • Posts: 192
Re: A nice Wedge notice that I cannot duplicate
« Reply #5, on June 6th, 2013, 02:15 PM »
Quote from Nao on June 6th, 2013, 12:08 PM
Ah, yes, regarding reproducing the 'notice', you'll have to do more than what Wedge/SMF can fix, and small trivia for you: it also works in quick edit mode, although I think it doesn't tell you what tag is wrong IIRC, but it still kindly warns you of a problem ;)
Well I just tried a test and I made a lot of quoting mistakes and made a big mess and I never could get the notice. When I got the notice yesterday I only forgot one quote ending tag. Oh well ...

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278

Nao

  • Dadman with a boy
  • Posts: 16,061
Re: A nice Wedge notice that I cannot duplicate
« Reply #7, on June 6th, 2013, 02:30 PM »
Quote from xrunner on June 6th, 2013, 02:15 PM
Well I just tried a test and I made a lot of quoting mistakes and made a big mess and I never could get the notice. When I got the notice yesterday I only forgot one quote ending tag. Oh well ...
Really, it only triggers if Wedge can't fix the tags by itself.

xrunner

  • Posts: 192
Re: A nice Wedge notice that I cannot duplicate
« Reply #8, on June 6th, 2013, 11:58 PM »
Quote from Nao on June 6th, 2013, 02:30 PM
Really, it only triggers if Wedge can't fix the tags by itself.
I went back to the post I thought was giving me the notice before I fixed what it told me to fix. I took out what I thought it was that caused the notice to appear, but I can't get it to appear again. I may not be duplicating it the same way. I'll play with it some more, because it interests me. :)
Re: A nice Wedge notice that I cannot duplicate
« Reply #9, on June 7th, 2013, 01:16 AM »
Got it playing in my test thread!

Code: [Select]
The following error or errors occurred while posting this message:

    A mismatched BBCode tag was found as shown below; please fix it manually.[quote]test 1[/quote]test 2[/quote][quote]test 3 test 4

It got upset about the second
Code: [Select]
[/quote]

Now I can sleep well tonight. :P