Home arrow FAQ arrow Discussion Forums arrow What is BBCode?

What is BBCode?

Creating Links

phpBB BBCode supports a number of ways of creating URIs, Uniform Resource Indicators better known as URLs.

The first of these uses the [url=][/url] tag; whatever you type after the = sign will cause the contents of that tag to act as a URL. For example, to link to phpBB.com you could use: [url=http://www.phpbb.com/]Visit phpBB![/url]. This would generate the following link, Visit phpBB!.

You will notice the link opens in a new window so the user can continue browsing the forums if they wish.

If you want the URL itself displayed as the link you can do this by simply using: [url]http://www.phpbb.com/[/url]. This would generate the following link: http://www.phpbb.com/

Additionally phpBB features something called Magic Links which will turn any syntatically correct URL into a link without you needing to specify any tags or even the leading http://. For example typing www.phpbb.com into your message will automatically lead to www.phpbb.com being output when you view the message.

The same thing applies equally to email addresses; you can either specify an address explicitly, like: [email] [/email] which will output or you can just type into your message and it will be automatically converted when you view.

As with all the BBCode tags you can wrap URLs around any of the other tags such as [img][/img] (see next entry), [b][/b], etc. As with the formatting tags it is up to you to ensure the correct open and close order is following.

For example: [url=http://www.phpbb.com/][img]http://www.phpbb.com/images/phplogo.gif[/url][/img] is not correct which may lead to your post being deleted so take care.

© 2017 uncharted.ca

0.035442