This Planet is a Tedious Place...

13/03/10 Automatic preview for the people!

Some of my avid blog readers were a bit confused when adding comments - it's not obvious how to format urls, images, etc.

So - the first step was to add a live preview! It should at least show you what your comment will look like before you post it.

The next step will be to add some buttons to insert the codes for you - around any selection. For now though, the supported UBB codes are:

[b][/b] - bold, [i][/i] - italics, [u][/u] - underline
[list][/list] - for lists, which must surround [*][*/] list items
[center][/center] - to center align
[url=][/url] or [url][/url] - hyperlinks
[img][/img] - to link images
[code][/code] - for preformatted source code
[quote][/quote] - for quotations

I haven't tried all of these, so feedback is welcome (Will).

posted by Gruntfuggly # 19:14 4 comments

OK - I've added some buttons.

Gruntfuggly # 16/03/10 14:01

Testing:All seems to be working to me.This is my rifle! There are many like it, but this one is mine! My rifle is my best friend. It is my life. I must master it, like I master my life. Without me, my rifle is useless. Without my rifle, I am useless. I must fire my rifle true! I must shoot straighter than my enemy who is trying to kill me. I must shoot him before he shoots me![code]int main(){ return 0

Will # 21/03/10 22:43

Two more points...i) All seemed to be formatted correctly in preview but not displaying correctly when posted.ii) Seemed to fail posting comment (just displayed preview again) but appears to have posted on the multiple times that I attempted it.

Will # 21/03/10 22:47

Another point.I'm sure I only hit add comment once the last time.

Will # 21/03/10 22:47

Somebody # 18/01/19 14:20


Add Comment