BBCode là các mã bổ sung cho HTML chỉ sử dụng trong các bài gửi trên Diễn Đàn (nếu BQT cho hiệu lực chức năng này). Dạng thức cùa BBCode cũng tương tự như các thẻ Tag của HTML nhưng dùng ký hiệu [ ] thay vì < > (xem các thí dụ dưới đây).
Để xác lập màu chữ, bạn có thể dùng thẻ với các tên màu như: red, blue, yellow... hay với mã màu như: #FFFFFF, #000000. Thí dụ:
Xin chào
Hay
Xin chào
Sẽ trở thành Xin chào
Thay đổi kích thước chữ bằng cách dùng thẻ [size=][/size] với các số thể hiện giá trị tính theo pixel, từ 1 (nhỏ đến mức không nhìn thấy) đến 29 (rất lớn). Thí dụ:
Các bạn nên chú ý đến thứ tự của thẻ mở phải ngược với thẻ đóng (thẻ nào mở đầu tiên phải được đóng sau cùng và ngược lại). Thí dụ dưới đây các thẻ không hợp lệ vì sai thứ tự:
Bạn tạo danh sách có đánh số thứ tự cho mỗi mục con bằng cách dùng thẻ , nếu muốn tạo danh sách theo thứ tự abc, bạn dùng thẻ với các thẻ con [*] cho mỗi mục. Thí dụ:
Go to the shops Buy a new computer Swear at computer when it crashes
Sẽ trở thành:
Go to the shops
Buy a new computer
Swear at computer when it crashes
Hay
The first possible answer The second possible answer The third possible answer
Hay khi bạn gõ địa chỉ liên kết, phpBB2 sẽ tự động chuyển thành liên kết. Thí dụ: Bạn gõ dòng www.phpbb.com vào thông điệp, khi hiển thị phpbb2 sẽ tự động chuyển thành www.phpbb.com.
The BBCode to place a table in a message is identical to the tags used in HTML. To create a table, you need to start by creating a tag 'table' then insert a 'tr' row. This row can contain one or several cells 'td', and a table can contain several 'tr' rows.
For an example, to create a two rows and three columns in a table, type the following:
You can also add styles to in the BBcode 'table'. These are identical to those used for HTML. You can for an exemple add a border to the table above thanks to the 'border' attribute.
Tables need to be used with caution, please pay attention to the tag opening and closure. If an opening or closure error is made, you may not obtain the effect that you want.
Four BBcodes producing effects on your messages are at your disposal. Although, this codes are only compatible under Internet Explorer with a phpBB2 forum.
The first is a vertical mirror effect (Vertical symmetry) on the text :
Code:
[flipv]Vertical mirror effect[/flipv]
Result : Vertical mirror effect
The second is a horizontal mirror effect (horizontal symmetry) on the text :
Code:
[fliph]horizontal mirror effect[/fliph]
Result : horizontal mirror effect
If you wish a blur effect in your text, you can use this BBcode :