Wedge
Public area => The Pub => Off-topic => Topic started by: xrunner on June 6th, 2013, 02:53 AM
-
When replying to another post today, I got a nice notice message that I forgot a
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:
[quote]test line 1[/quote][quote]test line 2
What was I seeing before and how do I duplicate it?
-
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. :/
-
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: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: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 ... ::)
-
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
-
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 ;)
-
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 ...
-
See, Pete? I told you we DO have features that make people go HOLY SHIT... :P
I don't remember the last time I saw it though :-/
-
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.
-
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. :)
-
Got it playing in my test thread!
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
Now I can sleep well tonight. :P