Below are the popular custom BBCodes that are frequently asked for on this board. All in one place with descriptions and screenshots for your convenience
To use any of the following custom BBCodes, navigate to the Posting => BBCodes section of the phpBB3 administration panel and click the "Add a new BBCode" button. Enter the respective code from below into the "BBCode usage" and "HTML replacement" boxes.
Index Youtube (embed video in post)
- Using the full URI
- Description: Allows you to embed Youtube videos in your posts using the full URI of the video.
Demo:
BBCode usage:HTML Replacement:Code: Select all
[youtube]http://www.youtube.com/watch?v={SIMPLETEXT}[/youtube]
Code: Select all
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{SIMPLETEXT}"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{SIMPLETEXT}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>
- Description: Allows you to embed Youtube videos in your posts using only the video id.
Demo:
BBCode usage:HTML Replacement:Code: Select all
[youtube]{SIMPLETEXT}[/youtube]
Code: Select all
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{SIMPLETEXT}"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{SIMPLETEXT}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>
- Description: Allows you to embed Youtube videos in your posts using the full URI of the video.
- Using the full URI
- Description: Allows you to embed Google videos in your posts using the full URI of the video.
Demo:
BBCode usage:HTML Replacement:Code: Select all
[googlevid]http://video.google.com/videoplay?docid=-{NUMBER}[/googlevid]
Code: Select all
<embed style="width:400px; height:326px;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId={NUMBER}&hl=en" flashvars=""></embed>
- Description: Allows you to embed Google videos in your posts using only the video id.
Demo:
BBCode usage:HTML Replacement:Code: Select all
[googlevid]{NUMBER}[/googlevid]
Code: Select all
<embed style="width:400px; height:326px;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId={NUMBER}&hl=en" flashvars=""></embed>
- Description: Allows you to embed Google videos in your posts using the full URI of the video.
- Description: Allows you to align text/images to the left/right/center.
Demo:
Center- BBCode usage:
HTML Replacement:
Code: Select all
[center]{TEXT}[/center]
Code: Select all
<div align="center">{TEXT}</div>
- BBCode usage:
HTML Replacement:
Code: Select all
[right]{TEXT}[/right]
Code: Select all
<div align="right">{TEXT}</div>
- BBCode usage:
HTML Replacement:
Code: Select all
[left]{TEXT}[/left]
Hint: Unless you use a RTL (right to left) language, everything will align to the left by default anyway.Code: Select all
<div align="left">{TEXT}</div>
- BBCode usage:
- Description: Inserts a horizontal rule (line) into a post.
Demo:
BBCode usage:HTML Replacement:Code: Select all
[hr]{IDENTIFIER}[/hr]
Code: Select all
<hr title="{IDENTIFIER}" />
- Description: Adds a black background color to the text between the tags, making it unreadable unless higlighted. Unlike the other methods of going about this, this code does not use Javascript (which some users disable) and is therefore, at least in my opinion, the best way to do it.
Demo:
BBCode usage:HTML Replacement:Code: Select all
[spoiler]{TEXT}[/spoiler]
Code: Select all
<span style="background:#000000">{TEXT}</span>
- background color
- <strike>
- <sub>
- <sup>
- rtl text
- font
- etc.
If you have any suggestions or find an error in the above article, please do not hesitate to PM me.
For more BBCodes see this knowledge base article: Adding Custom BBCodes in phpBB3