Added some code to the end of script.js, and styles necessary for it to look good to style.css, for displaying a list of 'editor' buttons for bb-code to the right of the textarea on BBS and prod pages. This code is based on the 'Pouet bb-codeizer for winnars!' user script but refactored for slightly cleaner code, and formatting that better matches what already exists in script.js. It does not include the automatic 'by line' insertion code and other non-editor-essential code from the user script.
Updated the textarea-finding code to be more specific so it is more assured to only activate for the bbs new post and prod new post forms as not all textareas may be for things accepting bb-code. The code could do a dynamic check for the 'BB Code is allowed here' note, but that would be potentially fragile.
Updated the editor bar buttons for making links. Text that appear to be a URL when using the regular link button but are missing a protocol are 'upgraded' to a link-with-text so the fixed URL ('http://' + text) becomes the argument, and the originally written text is the text content. When using the link-with-text button, since the original text is only used for the URL argument it just prepends 'http://'. Otherwise it works the same as before.
Added support for the bbcode toolbar on the bbs thread listing page so it can be used when creating a new thread.
Fixes to the auto-URL detection to check only at the start of the input (ignoring leading spaces) so text with embedded URLs don't qualify. This prevents some ugly output and makes it a bit more friendly to doing things like selecting an [img] bb-code then clicking the 'link with text' button to wrap it with a link.
Updated the bb-code editor toolbar to sit below the textarea, next to the 'BB-Code is supported here' note. All items are text and appear as links. No icons. They still have the same auto-magic behavior as the user script it was based on. The e-mail item is also removed, for lack of support in Pouet (it just displays as [email]foobar[/email] regardless of the contents) and items can now be tagged with 'more' to indicate they should appear in the menu at the end.
Updated the bb-code editor styles to not be float right but inline with a margin-left. The prod pages can have a wider main content area than that used by the bbs input comment/thread textarea box due to comments with long parapgrahs and the end of the editor list would appear relatively far away from the textarea. Now it should always be almost completely under the textarea and still not wrap, with the current set of visible links. If those change it should probably be updated, so that for the new thread and new post in a thread (not prod) the set of text is lined up to the right of the default textarea size and further away from the 'BB Code is allowed here' message.
Merge pull request #13 from AMcBain/master

Add a bb-code "editor" toolbar next to the textareas on the bbs thread and prod pages