HelpThis is a discussion thread · 0 replies BBCode Contents * Basic * BBCode guide Basic To use show the [ and ] signs in any post use the | sign like so | [ and ] | (without the space between the two symbols) [ -]Strike[/- ] strike hitchhiker Videos Check out these videos BBCode guide http://www.phpbb.com/community/faq.php?mode=bbcode Introduction What is BBCode? BBCodeisa special implementation of HTML. Whether you can actually useBBCode in yourposts on the forum is determined by the administrator.In addition you candisable BBCode on a per post basis via the postingform. BBCode itself is similarin style to HTML, tags are enclosed insquare brackets [ and ] rather than< and > and it offers greatercontrol over what and how something isdisplayed. Depending on thetemplate you are using you may find adding BBCode toyour posts is mademuch easier through a clickable interface above the messagearea on theposting form. Even with this you may find the following guideuseful. Text Formatting How to create bold, italic and underlined text BBCodeincludes tags to allow you to quickly change the basic style of your text. Thisis achieved in the following ways: · To make a piece of text bold enclose it in , e.g. Hello will become Hello · For underlining use , for example: Good Morning becomes Good Morning · To italicise text use , e.g. This is Great! would give This is Great! Top How to change the text colour or size Toalterthe colour or size of your text the following tags can be used.Keep in mindthat how the output appears will depend on the viewersbrowser and system: · Changing the colour of text is achieved by wrapping it in "".Youcan specify either a recognised colour name (eg. red, blue, yellow,etc.) or thehexadecimal triplet alternative, e.g. #FF, #00.For example, to createred text you could use: "Hello!" or "Hello!" Both will output Hello! · Changing the text size is achieved in a similar way using .Thistag is dependent on the template the user has selected but therecommendedformat is a numerical value representing the text size inpercent, starting at20 (very small) through to 200 (very large) bydefault. For example: SMALL will generally be SMALL whereas: HUGE! will be HUGE! Top Can I combine formatting tags? Yes, ofcourse you can, for example to get someones attention you may write: ""LOOK AT ME![/color][/size] this would output LOOK AT ME! Wedon’t recommend you output lots of text that looks like this though!Rememberit is up to you, the poster, to ensure tags are closedcorrectly. For examplethe following is incorrect: This is wrong[/u] Top Quoting and outputtingfixed-width text Quoting text in replies There aretwo ways you can quote text, with a reference or without. · Whenyou utilise the Quote function to reply to a post on the boardyoushould notice that the post text is added to the message windowenclosed in a block. This methodallows you to quotewith a reference to a person or whatever else youchoose to put! For example toquote a piece of text Mr. Blobby wroteyou would enter: The text Mr. Blobby wrote would go hereThe resulting output will automatically add "Mr. Blobby wrote:"before the actual text. Remember you must include the quotation marks"" around the name you are quoting, they are not optional. · The second method allows you to blindly quote something. To utilise thisenclose the text in tags. When you view the messageit will simply show the text within a quotation block. Top Outputting code or fixed width data Ifyouwant to output a piece of code or in fact anything that requires afixed width,e.g. Courier type font you should enclose the text in [code][/code]tags, e.g. [code]echo "This is some code";[/code] All formatting used within [code][/code] tags is retained when youlater view it. PHP syntax highlighting can be enabled using [code=php][/code]and is recommended when posting PHP code samples as it improves readability. Top Generating lists Creating an Unordered list BBCodesupportstwo types of lists, unordered and ordered. They areessentially the same astheir HTML equivalents. An unordered listoutputs each item in your listsequentially one after the otherindenting each with a bullet character. Tocreate an unordered list youuse and define each itemwithin the list using [*]. For example to list your favourite coloursyou could use: [*]Red [*]Blue [*]Yellow This would generate the following list: · Red · Blue · Yellow Top Creating an Ordered list Thesecondtype of list, an ordered list, gives you control over what isoutput before eachitem. To create an ordered list you use to create anumbered list or alternatively for an alphabeticallist. As with the unordered list, items are specified using [*]. Forexample: [*]Go to the shops [*]Buy a new computer [*]Swear at computer when it crashes will generate the following: 1. Go to theshops 2. Buy a newcomputer 3. Swear atcomputer when it crashes Whereasfor an alphabetical list you would use: [*]The first possible answer [*]The second possible answer [*]The third possible answer giving a. The firstpossible answer b. Thesecond possible answer c. The thirdpossible answer Top Creating Links Linking to another site phpBBCode supports a number of ways of creating URIs (Uniform Resource Indicators)better known as URLs. · The first of these uses the tag, whatever youtype after the = sign will cause the contents of thattag to act as a URL. Forexample to link to phpBB.com you could use: Visit phpBB! This would generate the following link, Visit phpBB! Please notice that the link opens inthe same window or a new window depending on the users browser preferences. · If you want the URL itself displayed as the link you can do this bysimply using: This would generate the following link, http://www.phpbb.com/ / · Additionally, phpBB features something called Magic Links,thiswill turn any syntactically correct URL into a link without youneeding tospecify any tags or even the leading http://. For exampletyping www.phpbb.cominto your message will automatically lead to www.phpbb.com being output when you view themessage. · The same thing applies equally to e-mail addresses, you can eitherspecify an address explicitly for example: Email Removed which will output no.one@domain.adror you can just type no.one@domain.adr into your message and it will beautomatically converted when you view. As withall the BBCode tags you can wrap URLs around any of the other tags such as (see next entry), [/b], etc. As with the formatting tags it is upto you to ensure the correct open and close order is following, for example: [url=http://www.google.com /] [/img]is not correct which may lead to your post being deleted so take care. Top Showing images in posts Adding an image to a post phpBBCodeincorporates a tag for including images in your posts. Two veryimportant thingsto remember when using this tag are: many users do notappreciate lots of imagesbeing shown in posts and secondly the imageyou display must already beavailable on the internet (it cannot existonly on your computer for example,unless you run a webserver!). Todisplay an image you must surround the URLpointing to the image with tags. For example: ![]() As noted in the URL section above you can wrap an image in a tag if you wish, e.g. [url= /] [/url]would generate: | |



