OZONE Asylum
FAQ
Serious bracket bug
This page's ID:
4943
Search
QuickChanges
Forums
FAQ
Archives
Register
You are editing "Serious bracket bug"
Who can edit an FAQ?
Anyone registered may edit an FAQ.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Go to this page [url=http://faq.ozoneasylum.com/FaqWiki/shownode.php?id=481]http://faq.ozoneasylum.com/FaqWiki/shownode.php?id=481[/url] and click 'edit'. Note how the brackets have been changed to character entities without semi-colons. Don't save your edit or you'll have a heckuva time changing the brackets back. I've already done it once and some of the UBB code has turned into actual text. Slime, I've no clue what you're talking about. Ok, I added those ;, they were causing problems earlier, but that should have been fixed. But where was the problem actually? Opera and IE handled them just fine without the ; at the end... just curious, --[internallink=4643]Tyberius Prime[/internallink] btw, you know you can make links around here just using [ id ] ? like [internallink=5031]How do I get rid of that rectangle when I click on a link?[/internallink]... [small][i](Edited by: [url=http://www.ozoneasylum.com/cgi-bin/ubbmisc.cgi?action=getbio&UserName=Tyberius+Prime]Tyberius Prime [/url] on Sun 26-May-2002)[/i][/small] [internallink=4826]Slime[/internallink]: Oh, I know the [ id ] trick, I just find it easier to cut and paste URLs sometimes. Anyway, the problem is still there. Notice that in the linked node, there is the text "document.links[i].onclick". Now, if you click "edit this page", and look in the text box, that part now says "document.links[ i &##93;.onclick". (edit: i had to insert spaces around the i in that text, because it considered it UBB code. Which is ridiculous, since the actual thing I see there in this text box is "& a m p ; # 9 1 ; i & a m p ; # # 9 3 ;" without the spaces. Something with ampersands is just really messed up.) Before, when there was no semi-colon there, after editing the page it would be replaced with document.links&##91i&##93.onclick, which is obviously a problem. Notice that some UBB code that Emperor had initially put in that node, a link to Mr. Max's page, is now in the text verbatim, instead of being a link. [i]Hey, it's inside a code tag, so the [ are replaced by & 93; ... just how it should be, so that the later ubb code doesn't pick them up...[/i] __________________ [internallink=4626]Emperor[/internallink]: TP I did quite a bit if editing on that page as it kept doing all sorts of funny things changing the [ to their special charcters and then changing the & to its special character - it all seems to working OK now though so whatever you did seems to have worked. Yeah, I can see having problems with multiple edits within code tags, because the replacment code get's called every time it's edited, and it replaces the & with & amp; ... nightmare, really... maybe I could convert all & 93;s and so back to [ before calling that code... or maybe someone can point me to a regexp that basically says all [tag]text[/tag] that is not surrounded by a [code] tag... is something like that possible? [small][i](Edited by: [url=http://www.ozoneasylum.com/cgi-bin/ubbmisc.cgi?action=getbio&UserName=Tyberius+Prime]Tyberius Prime [/url] on Mon 27-May-2002)[/i][/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »