Language: 
To browser these website, it's necessary to store cookies on your computer.
The cookies contain no personal information, they are required for program control.
  the storage of cookies while browsing this website, on Login and Register.

Author Topic:  Short guide to using BBCode to markup your forum posts  (Read 7776 times)

0 Members and 0 Guests are viewing this topic.

smacky

« on: 25, January 2006, 17:58:36 »
What is BBCode and why should I care?

BBCode is a very basic markup language used to add stylistic and structural information to forum posts. It is quite similar to a cut down version of HTML 3.2, an old version of the markup language used to create web pages.

BBCode works by enclosing the text to be marked up between two tags. When the message is posted the tags are invisible. What is seen is the content, marked up in the way specified. In this way you can make text bold or italic, and change its colour or
size, include clickable links and images (example below) in your post, and so on.

Tags can be combined to produce multiple effects,
like this.

How do I use it?

Note that this is a brief and basic guide. If you really want more detail, try the PNphpBB2 Users Guide.

BBCode tags are delimited by square brackets. That is, they start with '[' and end with ']'. In addition, the close tag (not the delimiter) begins with forward slash ('/').

See the end of this post for examples.


I posted but now I want to say more. What do I do?

At the bottom right of your posts is an edit icon (). Clicking this allows you to add to, or otherwise change, your post.

I posted but now I wish I hadn't. What do I do?

At the bottom right of your posts is an edit icon (). Click this to edit your post. On the new page, below the input window, are five options. The fifth one is 'Delete this post.' Simply check this option and click 'Submit.'

An even quicker method of self-censorship is to click the delete post icon (), also found at the bottom right of your posts.


Ooh! I am so ready to post... aren't I?

Not quite. Remember, posting is power. Like all power it must be exercised responsibly. If you don't do so, without wanting to sound too threatening, there are people more powerful than you, if you get the hint.

Anyway, watch the public information film Posting And You (external link, requires Flash).

Now, read on...


BBCode examples

Quoting

This is probably the most important bit of markup to understand, as it's often necessary to quote what someone else wrote in a previous post.

Code: [Select]
[quote]Smacky is great![/quote]
Produces:
Quote
Smacky is great!

Code: [Select]
[quote="Smacky"]Thanks, very kind of you to say so.[/quote]
Produces:
Quote from: Smacky
Thanks, very kind of you to say so.

Note that as a shortcut you can click on the quote icon () at the bottom right of any post to quote that post and attribute it to the original author.[/size]

Emphasis, text colour, and size

Code: [Select]
[b]Bold text[/b]
Produces: Bold text.

Code: [Select]
[i]Italicised text[/i]
Produces: Italicised text.

Code: [Select]
[u]Underlined text[/u]
Produces: Underlined text.

Code: [Select]
[color=red]Red text[/color] and [color=#ff0000]Red text[/color]
Produces: Red text

Code: [Select]
[size=18]Bigger text[/size] or [size=8]smaller text[/size]
Produces: [/size]Bigger text or smaller text

Lists

Code: [Select]
Daimonin knows four melee weapon types:
[list]
[*]Cleave;
[*]Impact;
[*]Pierce; and
[*]Slash.
[/list]

Produces: Daimonin knows four melee weapon types:
  • Cleave;
  • Impact;
  • Pierce; and
  • Slash.

Note that you can specify a numbered list (1, 2, 3) with:

Code: [Select]
[list=1] ...
and a lettered list (a, b, c) with:

Code: [Select]
[list=a] ...[/size]

Links

Code: [Select]
[url=http://www.daimonin.net/]Daimonin[/url]
Produces: Daimonin

Code: [Select]
[url]http://www.daimonin.net/[/url]
Produces: http://www.daimonin.net/.

Code: [Select]
[email]fake@email.address[/email]
Produces: fake@email.address.[/size]

Images

The image needs to be in .png, .jpeg or .jfif (or .jpg), or .gif format and must be hosted on some webspace somewhere; you can't upload images directly to the forums.

Code: [Select]
[img]http://www.daimonin.net/themes/Daimonin/images/daimonin.gif[/img]
Produces: [/size]

Code examples

Code: [Select]
[code]static int is_username_valid(const char *name)
{
    int i;

    for(i=0; i< (int)strlen(name); i++)
    {
        if (name[i]!= '_' && !(((name[i] <= 90) && (name[i]>=65))||((name[i] >= 97) && (name[i]<=122))))
            return 0;
    }
    return 1;
}
[/code]

Produces: well, itself![/size]

Spoilers

Given that Daimonin is a game of exploration and discovery a possible the spoiler tag is useful. Use this to hiidehints and information which may spoil parts of the game  for some players. For example:

Code: [Select]
[spoiler]
Type secret message here
[/spoiler]

Produces:
(click to show/hide)
« Last Edit: 16, April 2009, 11:03:17 by smacky »

Falciron

« Reply #1 on: 26, February 2008, 21:32:51 »
-Currently working on renovating this for the new forum.-
"Chain-mail isn't much defense against an arrow. It certainly isn't when the arrow is being aimed between your eyes." -Terry Pratchett

smacky

« Reply #2 on: 26, February 2008, 21:39:38 »
Thanks Falciron, but this is probably unnecessary now as SMF has it's own decent help: http://www.daimonin.com/index.php?action=help;page=post#tags

Note though that I turned off the hyper-annoying move/marquee tag on this forum as it breaks XHTML validation. Seems the help is not dynamicallly generated though...

Falciron

« Reply #3 on: 26, February 2008, 21:52:12 »
True, but concerning the "invisible ink" and similar items, there have been some changes. C3B8D0 is the new name of the color, not white-though we'd all love it to be as simple as that.

Would you like me to create a new thread with the extra information by itself?
"Chain-mail isn't much defense against an arrow. It certainly isn't when the arrow is being aimed between your eyes." -Terry Pratchett

smacky

« Reply #4 on: 26, February 2008, 22:29:07 »
Good point. Modify this one as you see fit I think.

Slash_Wraith

« Reply #5 on: 13, March 2008, 20:48:58 »
How informative and useful. Now I know how to use BBcode.

Thank you Smacky. This is great.
You have read something interesting/funny. It was a good signature. That's all you need to know.
Mysteria's husband. Don't touch. I'm her property.

doomknight

« Reply #6 on: 01, September 2008, 19:04:46 »
Thanks for the usefull post :)

Tags:
 

Related Topics

  Subject / Started by Replies Last post
2 Replies
2391 Views
Last post 21, July 2005, 10:05:14
by kyleball2
1 Replies
973 Views
Last post 07, February 2006, 18:06:56
by smacky
1 Replies
858 Views
Last post 31, July 2007, 08:59:17
by subaru
6 Replies
3937 Views
Last post 13, March 2008, 22:43:14
by Mysteria
9 Replies
2933 Views
Last post 02, January 2009, 13:58:35
by Nite_Star