BBCodes and how to use them
#1
What is BBCode?
BBCode is a special implementation of HTML. Whether you can actually use BBCode in your posts on the forum is determined by the administrator. In addition, you can disable BBCode on a per post basis via the posting form. BBCode itself is similar in style to HTML: tags are enclosed in square braces [ and ] rather than < and > and it offers greater control over what and how something is displayed. Depending on the template you are using you may find adding BBCode to your posts is made much easier through a clickable interface above the message area on the posting form. Even with this you may find the following guide useful.


How to create bold, italic and underlined text
BBCode includes tags to allow you to quickly change the basic style of your text.
This is achieved in the following ways:


To make a piece of text bold enclose it in like this



Code:
[b]Hello[/b]

will become Hello

For underlining use

Code:
[u]Good Morning[/u]


becomes Good Morning

To italicise text use


Code:
[i]This is Great![/i]


would give This is Great!


How to change the text colour or size

To alter the color or size of your text the following tags can be used. Keep in mind that how the output appears will depend on the viewers browser and system:
Changing the colour of text is achieved by wrapping it in



Code:
[color=][/color]


You can specify either a recognised colour name ( red, blue, yellow, etc.) or the hexadecimal triplet alternative, eg. #FFFFFF, #000000.
For example, to create red text you could use:



Code:
[color=red]Hello![/color] or  [color=#FF0000]Hello![/color]

will both output
Hello!

Changing the text size is achieved in a similar way using
Code:
[size=5][/size]
.
This tag is dependent on the template you are using but the recommended format is a numerical value representing the text size in pixels, starting at 1 (so tiny you will not see it) through to 29 (very large).
For example:



Code:
[size=3]SMALL[/size]


will generally be small

whereas:

Code:
[size=7]HUGE![/size]


Like thisHUGE!

Can I combine formatting tags?

Yes, of course you can; for example to get someones attention you may write:



Code:
[b][size=6][color=red][b][/b]LOOK AT ME![b][/b][/color][/size][/b]


this would output[b]LOOK AT ME![/b]

We don't recommend you output lots of text that looks like this, though!
Remember that it is up to you, the poster, to ensure that tags are closed correctly.
For example, the following is incorrect:


Code:
[b][b][u][/b]This is wrong[b][/b][/u][/b]


Adding an image to a post

BBCode incorporates a tag for including images in your posts.
Two very important things to remember when using this tag are: many users do not appreciate lots of images being shown in posts and second, the image you display must already be available on the Internet (it cannot exist only on your computer, for example, unless you run a webserver!).

To display an image, you must surround the URL pointing to the image with


Code:
[img][/img]


tags.

For example:



Code:
[img][/b]http://www.phpbb.com/images/phplogo.gif[/img]


As noted in the URL section above you can wrap an image in a code..

Code:
[url][/url]


tag if you wish, eg.


Code:
[url=http://divxhunt.uhostall.com/Forum/index.php][img]file://localhost/C:/Users/Thhaque/Desktop/Capture.PNG[/img][/url]


Would generate:[Image: Capture.PNG]
Click the image u will be to the chosen site of ur tag....

Additional Information on BBCode is available here:
http://docs.simplemachines.org/index.php?topic=728
http://docs.simplemachines.org/index.php?topic=57
http://docs.simplemachines.org/index.php?topic=735
http://docs.simplemachines.org/index.php?topic=696
http://docs.simplemachines.org/index.php?topic=697
Reply
#2
great thread how do you center text, images etc?

tried "square bracket center square bracket, image link, square bracket slash center square bracket" and this did not work ...
Reply
#3
It's one of the symbols highlighted here:

[Image: qMmBCfI.jpg]

it's the 2nd one along I think, hover your cursor over them and see which one is which.
Reply
#4
you are a legend thanx mate
Reply
#5
Useful for all the MyBB forums.
Reply
#6
(Jul 22, 2016, 17:04 pm)Spud17 Wrote: It's one of the symbols highlighted here:

[Image: qMmBCfI.jpg]

it's the 2nd one along I think, hover your cursor over them and see which one is which.



Thanks Spud, before I forget ... of which I was suppose to do earlier .... I might mention to others here that the "align" function is how the bbcode works here for those that don't know how to center stuff .... other places I just had to do this: [center]some text or image in here or youtube video link etc in here[/center]
and that was it but here one has to do [a l i g n = c e n t e r] some image or text or something [ / c e n t e r]  with no spaces obviously Smile

Food for thought Big Grin
Reply
#7
(Jul 22, 2016, 22:52 pm)5c4lLY349 Wrote: I might mention to others here that the "align" function is how the bbcode works here for those that don't know how to center stuff .... other places I just had to do this:
some text or image in here or youtube video link etc in here
and that was it but here one has to do [a l i g n = c e n t e r] some image or text or something [ / c e n t e r] with no spaces obviously Smile


If you hover over any of the icons, you'll get a little tool tip telling you what they do. The one all the way to the right toggles between rich text and source edit modes so you can see exactly what is happening behind the scenes or enter the codes yourself if that is your preference.
Reply
#8
(Jul 22, 2016, 23:05 pm)Moe Wrote:
(Jul 22, 2016, 22:52 pm)5c4lLY349 Wrote: I might mention to others here that the "align" function is how the bbcode works here for those that don't know how to center stuff .... other places I just had to do this:
some text or image in here or youtube video link etc in here
and that was it but here one has to do [a l i g n = c e n t e r] some image or text or something [ / c e n t e r]  with no spaces obviously Smile


If you hover over any of the icons, you'll get a little tool tip telling you what they do.  The one all the way to the right toggles between rich text and source edit modes so you can see exactly what is happening behind the scenes or enter the codes yourself if that is your preference.

Yea cheers Moe, I missed the quick or full edit differences ... didn't see the menu options for alignment Big Grin  but all good now ... thanks to Spud and yourself Smile
Reply
#9
Hey, um... It's in teh MyBB Docs@

Code:
https://docs.mybb.com/1.6/MyCode/
Reply
#10
I like the ease of referencing this.

May someone please explain the bb code for a spoiler?

EDIT: Spud17 has saved the day and solved my problem.

Code:
[spoiler] [/spoiler] or [spoiler=(title)] [/spoiler]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Use your IRC client to download books ill88eagle 0 24,482 May 31, 2021, 15:51 pm
Last Post: ill88eagle
  Enable Adobe Flash Player for use in the Google Chrome web browser johnny44 0 23,038 May 29, 2017, 19:24 pm
Last Post: johnny44
  [Tutorial]How To Use a Patch/Crack/Serial/KeyGen Dubsteam 0 40,076 May 13, 2014, 04:01 am
Last Post: Dubsteam
  Simple Trick To Use Web Browsers As Text Editor .::Alien::. 4 23,443 May 09, 2014, 22:51 pm
Last Post: anmisto



Users browsing this thread: 2 Guest(s)