Mahz, may I ask why you decided to remove BBCode tabs? Was there some pesky bug that you didn't want to make the entire BBCode system wait for, or something?
I was looking forward to using them, but if they were causing a problem somehow then that's fine.
Good work, I'll try to track down my error (again) later today, once I have some spare time.
EDIT: Also, when you highlight text, add a BBCode tag to it (was pleasantly surprised that it automatically wrapped the tags around the selection) and then Ctrl+Z, it highlights the entire post. Completely random and not really worth worrying about, but thought I might as well note it.
EDIT 2: When you preview your post, you lose the ability to undo/redo - the editor seems to forget all previous actions. Again, not very important, but noteworthy.
- The tabs had some basic issues that aren't hard to solve, but I just wanted to reduce the surface area of the first release.
- I actually started playing with my editor buttons to see if I could support native browser Undo/Redo, but the naive implementation had browser inconsistency issues. Not an impossible feat, but more effort than I'm willing to stop the world for.
- Can't reproduce the Preview mode messing with native undo. The BBCode editor buttons themselves mess with undo because they don't trigger "InsertText" events. So interleaving manual writing with BBCode buttons will hose the undo system.
Yeah, I was just trying to arrange them into a sensible palette. Like this:
Anyways, I'm moving on to notifications.
Update: Made the color-picker appear above the editor instead of to the right of the button.
Here's my attempt to put together a color palette using only colors that have names in the html/css spec:
http://jsfiddle.net/danneu/284p9qp9/1/
Unfortunately the color names are kinda unwieldy:
I like the simplicity of just using hex values and named colors as they appear in html/css.
But another idea is to allow hex values but come up with my own color names: red1, red2, red3, orange1, orange2, orange3, aqua1, aqua2, aqua3. You'd be able to make sense of the colors. And I could map them to hex values instead of approximating a palette with named colors (slim pickings).
A third option is to stop obsessing over colors as a form of procrastination.
it eats them when the space is like this:
Texthere
Texthere
and not like this:
Text here
Just look at the raw code.
I see that the problem is that I modified the parser to trim all prefix/suffix whitespace from the contents of tags. (Source)
It turns out that trimming whitespace makes sense 99% of the time.
When someone writes this:
[quote]
hello
[/quote]
They generally mean this:
[quote]hello[/quote]
Rather than this:
[quote]<br>
<br>
hello<br>
<br>
[/quote]
After writing this out, I think the solution is to trim prefix/suffix line-breaks as usual, but rather than trimming prefix/suffix spaces, just collapse them into one space if they exist.
Maybe that will work. I'll let you know when I deploy a fix.
I like that the Color Picker stays up so I can highlight and re-color another piece of text. Any thoughts about adjusting the hover so it doesn't obscure the text box (how about making it hover above the editor)?
Error checker is subtle and nice. I didn't notice it until I tried to purposely screw up a tag.
Quoting the right way.
Can I quote Mahz?
What about a quote with a link? Will it auto-link the text?
Apparently not. I wonder if it'd be possible to add a linking function to quote, such as [quote name=Mahz link=2345802] to link directly to the post in question. Quotes are easy to modify on your own (especially if quoting across topics) and sometimes the original context is useful.
- I used to have the color-picker on top but ran into a few minor issues. I'll put it back on top and just tackle the issues now that I have time to deal with them. Don't remember what the issues were.
- I'm going to modify the color-picker to drop in the color's name instead of the color's hex value. It's nicer to see color=Goldenrod and color=Tan instead of color=daa520 and color=d2b48c. Especially since we don't have a WYSIWYG editor. People will even have a shot at memorizing colors that they like to use.
- The error system is weak and is barely out of proof-of-concept phase, but I think I see a route to hacking in some line+column numbers which would set the stage for error highlighting (like underlining the problem). I have a proof of concept working by just counting newlines in a post-process step. But man, this bbcode parser file is getting nasty.
- I do want to extend quotes to include more optional metadata like [quote=Captain Jordan post=391823]...[/quote]. In that case, as you'd expect, it'd link to the origin post.
I'll have a better sense of priorities once Sunday picks up and I see what people are struggling with.
Maybe I can put a dent in the notification system today.
Think I fixed the smilies-not-wrapping issue in Firefox. At least, it now wraps in my Firefox.
I'll check out the space-eating [color] tags.
And yeah, I need to remove the color-picker when Save or Cancel are clicked. Thanks.
Oh my, I'll fix it right now. Thanks for the screenshot.
Noticed one missing code from guild v2.
using [img=http://student.umb.no/~henrgj/Relics/Angie] won't work now.
oh, and if there's a broken BBcode inside another, it won't parse right.
Yeah, [img=...] is strictly wrong now. Must be changed to [img]...[/img].
you can wrap BBCode in [noparse]...[/noparse] to tell the parser to skip over it.
Bad BBCode is pretty infectious. If someone writes bad BBCode, it even breaks the [quote] if you try to quote them.
I've only implemented an error system for the [color=...] tag so far, but I'll start implementing validation errors for other tags as well. Hopefully it will help people catch basic BBCode errors until I can hack on the parser some more.
Launched the experimental BBCode system.
- All new posts/PMs are rendered with BBCode.
- You can now edit old QQCode posts.
- Any posts you made since the relaunch a few weeks ago are rendered with Markdown until you edit them.
- Any time you edit a QQCode or Markdown post and click save, the forum assumes you converted it to BBCode. In other words, if you edit a post made before this server update, you also have to convert it to BBCode.
Here are the main conversions you may have to do:
> Okay so I tried resetting my phone and cache and nothing, also if I go to a part of the page, say messages, and it'll tell me I'm not logged in, whatever I had tried to go to wont load, it'll say "Not Found" for a good few minutes
Dang. I have a few shots in the dark I can take to see if they help you tomorrow.
> Hi. I don't know if this has been mentioned before, but everytime I try to send a PM to more then one person, I get "Internal Error" and this continues to happen until I close my browser down and restart it for any Guild Page after this occurs.
Wow, thanks. I'll hunt this down right now.
Edit: Found a bug that I'll fix right now. In the meantime, make sure that you're separating usernames by commas, not semicolons.
Edit2: Fixed the code but it won't be fixed on the server til a few hours from now. You just helped me uncover a massive bug. :)
Some favorite links I find while scrolling around.
[h3]BBCode[/h3]
- [@Roach]: Advanced BBCode Hacks ([url=https://www.roleplayerguild.com/topics/182719-strong-and-s-table-advanced-bbcode-hacks-2/ooc]Part 2[/url], [url=https://www.roleplayerguild.com/topics/182102-sup-erstars-advanced-bbcode-hacks-1/ooc]Part 1[/url])
- [@Exit]: [url=https://www.roleplayerguild.com/topics/169640-c-o-n-c-e-p-t-s/ooc]C O N C E P T S ᵇʸ ᴱˣᴵᵗ[/url] – Amazing experiments in BBCode design.
[h3]Articles[/h3]
- [@BangoSkank]: [url=https://www.roleplayerguild.com/topics/184596-rping-aint-always-easy-a-collaborative-guide-to-the-stuff-that-makes-t/ooc]RPing Ain't Always Easy : A Collaborative Guide to the Stuff that Makes This Hobby Less Fun Sometimes And How to Make It More Betterer[/url]
[h3]Bios I love[/h3]
- [@Roach]
- [@Exit]
<div style="white-space:pre-wrap;">Some favorite links I find while scrolling around.<br><br><div class="bb-h3">BBCode</div><br>- <a class="bb-mention" href="/users/roach">@Roach</a>: Advanced BBCode Hacks (<a href="https://www.roleplayerguild.com/topics/182719-strong-and-s-table-advanced-bbcode-hacks-2/ooc">Part 2</a>, <a href="https://www.roleplayerguild.com/topics/182102-sup-erstars-advanced-bbcode-hacks-1/ooc">Part 1</a>)<br>- <a class="bb-mention" href="/users/exit">@Exit</a>: <a href="https://www.roleplayerguild.com/topics/169640-c-o-n-c-e-p-t-s/ooc">C O N C E P T S ᵇʸ ᴱˣᴵᵗ</a> – Amazing experiments in BBCode design.<br><div class="bb-h3">Articles</div><br>- <a class="bb-mention" href="/users/bangoskank">@BangoSkank</a>: <a href="https://www.roleplayerguild.com/topics/184596-rping-aint-always-easy-a-collaborative-guide-to-the-stuff-that-makes-t/ooc">RPing Ain't Always Easy : A Collaborative Guide to the Stuff that Makes This Hobby Less Fun Sometimes And How to Make It More Betterer</a><br><div class="bb-h3">Bios I love</div><br>- <a class="bb-mention" href="/users/roach">@Roach</a><br>- <a class="bb-mention" href="/users/exit">@Exit</a><br></div>