Not logged in. · Lost password · Register
Forum: Support Bug reports and troubleshooting RSS
ABBC parser bug
Syntax error when parsing links inside formatting codes
Reply
Avatar
Reply · Quote Saxtus #1
Member since Jan 2007 · 84 posts · Location: Athens, Greece
Group memberships: Members
Show profile · Link to this post
Subject: ABBC parser bug
ABBC parser has difficult time trying to parse the following for example:
[b]http://www.unclassified.de/[/b]

I know that I can including it in url tags at the first place thus skipping the URL parsing but the real problem is that there are some "export to forum" programs that don't see that coming and confuse UNB and it's parser.

I do something wrong or is it really a bug?
The Answer to Life, the Universe, and Everything = 42
Reply · Quote jense #2
Member since Nov 2006 · 327 posts · Location: Dortmund
Group memberships: Members
Show profile · Link to this post
Strange, indeed.  BTW, putting white-space around the URI helps: http://www.unclassified.de/ - that's the way it's supposed to work, I guess...
Alala, Alala, Gimme three wishes - CSS
Avatar
Reply · Quote Saxtus #3
Member since Jan 2007 · 84 posts · Location: Athens, Greece
Group memberships: Members
Show profile · Link to this post
Still there is a problem with programs that built to export text with forum tags because they will work without spaces at all other forum systems.
The Answer to Life, the Universe, and Everything = 42
Reply · Quote jense #4
Member since Nov 2006 · 327 posts · Location: Dortmund
Group memberships: Members
Show profile · Link to this post
FWIW, the trailing slash is the source of the problem: http://www.unclassified.de gives no error.  The need for spaces in order to auto-detect URIs is documented somewhere (the same holds true for smilies). Since the auto-detection is a feature of but not a requirement for BC code, your export programs seem to be broken...
Alala, Alala, Gimme three wishes - CSS
Avatar
Reply · Quote Saxtus #5
Member since Jan 2007 · 84 posts · Location: Athens, Greece
Group memberships: Members
Show profile · Link to this post
Don't count on it...

The following still can't be parsed:
[b]http://www.unclassified.de/forum[/b]

:cool:
The Answer to Life, the Universe, and Everything = 42
Reply · Quote jense #6
Member since Nov 2006 · 327 posts · Location: Dortmund
Group memberships: Members
Show profile · Link to this post
Weird... - Are you aware of any forum software where the link is auto-detected?  In phpBB it isn't...
Alala, Alala, Gimme three wishes - CSS
Avatar
Reply · Quote Saxtus #7
Member since Jan 2007 · 84 posts · Location: Athens, Greece
Group memberships: Members
Show profile · Link to this post
Really my problem isn't if it is detected or not.
The problem is that it doesn't let the post to be done unattended.
The Answer to Life, the Universe, and Everything = 42
Avatar
Reply · Quote Yves (Administrator) #8
User title: UNB developer & webmaster
Member since Jan 2004 · 3740 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
In reply to post #1
Thank you for the report. I have now fixed it and by the way also fixed another problem that bugged me from a while but which I couldn't locate. I'm going to upload a new version today. It's getting time for 1.6.4... :)

PS: You'll understand that the URL isn't auto-linked because the characters around it just don't make the impression as if they were something like punctuation. And [ and ] are somewhat special characters that must be handled with care. So it's safer to not accept them. If you want to be sure that something will end up as a link, use the [url] tags, that's what they're for.

PPS: For the record, to those who are curious, the original problem was that automatic URL linking worked buggy and detected parts of the URL after the [b] tag has been found already. The closing [/b] tag wasn't accepted as the end of the URL so the automatically inserted [url] tags went one within both [b] tags and the other one outside of them. So the tag nesting was incorrect and the posting was rejected due to ABBC syntax errors, with both [b] tags marked as invalid. I have now tweaked the automatic URL detection which helped avoiding that situation. The example code above will render the URL in bold but not clickable.
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
This post was edited on 2007-05-22, 21:14 by Yves.
Avatar
Reply · Quote Saxtus #9
Member since Jan 2007 · 84 posts · Location: Athens, Greece
Group memberships: Members
Show profile · Link to this post
Yay! For a better UNB!
Now if only we had automatic updates, would be cool :rolleyes:
The Answer to Life, the Universe, and Everything = 42
Reply · Quote nicoduck #10
Member since May 2007 · 8 posts
Group memberships: Members
Show profile · Link to this post
iI think an half-auto-update would be better.
The notificatioon is a great idea, but it would be better with an "Update" button.
So i have to start the autoupdate (is better on bigger forums), not an completely automated update.
Avatar
Reply · Quote Draghmar #11
Member since Dec 2006 · 57 posts
Group memberships: Members
Show profile · Link to this post
Auto Update has one big disadvantage - when you've done something with code then your work will be lost.
"I have come up with a plan so cunning you could stick a tail on it and call it a weasel."
Reply · Quote nicoduck #12
Member since May 2007 · 8 posts
Group memberships: Members
Show profile · Link to this post
and for that reason, i would suggest the "half auto" methot, because you can choose wheather you want to update or not.
i case of some modifications, you can still do it yourself
Avatar
Reply · Quote Yves (Administrator) #13
User title: UNB developer & webmaster
Member since Jan 2004 · 3740 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
In reply to post #11
Of course, auto-update would only install patches (if compatible) or check the original file integrity with checksums or so. But that's a totally different topic actually. Installing an update shouldn't be too hard, get the file from the linked page, unpack it, upload it as usual and only if indicated run the installer for an upgrade. Just like in the documentation.
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please note the verification code from the picture into the text field next to it.
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Reply
Go to forum
This board is powered by the Unclassified NewsBoard software, 20100516-dev, © 2003-10 by Yves Goergen
Page created in 328 ms (284 ms) · 121 database queries in 236 ms
Current time: 2010-07-30, 10:49:23 (UTC +02:00)