Latest Register Log In

+ Advanced Search

BB Codes

BB Codes
By
25/09/03 (Edited 30/01/14)

BB Codes (formerly called WSN Codes) allow you to replace what would normally be done with HTML with a safer alternative. Allowing users to post HTML presents dangers, as the design of your page could easily be messed up by malicious users. However you may still want to let your users do simple text formating. The solution is BB Codes.

At Admin Panel -> Settings -> Switches, make sure BB codes are switched on. Then go to Admin -> Customizations -> BB Codes to customize them. To create a code, you need to type the opening and closing tags and the HTML it's supposed to simulate. If you want [strike]some text[[/strike] to put text in strikethrrough, for example, supply [[strike] as the opening tag and [[/strike] as the closing tag according to the instructions written on that page. For the HTML equivilant use <[strike> to open and <[/strike> to close.

Sometimes you want a more complex code, to allow a parameter to be passed. For example, perhaps you want to allow people to choose their own font. To do this you would make the opening tag . The closing tag is , the opening HTML version is <font face={PARAM}> and the closing HTML is </font>.

The WYSIWYG editor offers an alternative to BB Codes, in which everything is edited through a GUI. Although BB codes do work in the WYSIWYG mode, they're normally only used by those using the plain text editor.




Description Creating replacements for HTML. Note: formerly known as WSN Codes.
Rating
Views 3082 views. Averaging 1 view per day.