Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Navigation
Latest Addons
AD Gallery 55
SyntaxHighlighte... 51
Newsletters v4.03 112
Facebook Like Box 127
Newsletters v4.02 58
Metro 164
Facebook Connect 171
Shoutbox Panel 128
Redactor for PHP... 106
MI Floating Side... 109
Facebook Login/R... 154
Avatar Studio v2.03 179
Relationship Sta... 98
Sexual Orientati... 116
Fisherman 143
Popular Addons
iTheme2 5803
Arise 5791
User Control v1.23 4620
Event Calendar 4050
Photowidget panel 3888
Radio-Theme red2... 3357
Highslide Gallery 3315
CSS/JavaScript D... 3231
Facebook Connect... 2986
Dynamic Menu 2893
Slideshow Lightb... 2721
L-AMANT 2659
Enigma 2636
2Dark 2606
Black 2579
Book List Table of Contents Jump to Chapter:  Print
PHP-Fusion Manual

BB CODES

What are BB Codes ?

BBCode or Bulletin Board Code tags are a lightweight markup language used to format the posts in the forums. For example:
To write text as Bold in the post, we use the Bold BBCode to make it bold.
Example:
[b]bolded text[/b] - to make the text bold
It will be parsed as bolded text when posted.

[i]italic text[/i] - to make the text italic
It will be parsed as italic text when posted.

Below is a Nice preview of BB Codes usage in the Forum while posting replies to a Thread :

Below is the Preview, How this Text will be parsed :

Similarly, we use some other BBCodes too for formatting the Post. [img], [u] and [url] are some common examples.

Enable/Disable BB Codes

There are many BB Codes embedded in PHP-Fusion which can be Enabled/Disabled anytime easily. To manage BB Codes, just Login as Administrator and go to Admin Panel → System Admin → BB Codes

Below is a Preview that How BB Codes Administration Panel will look like :

The section titled Enabled BB Codes shows the list of BB Codes which are enabled on your Website and the section titled Disabled BB Codes shows the list of additional BB Codes which can be enabled to use in your Website.

As you can see in the Preview above, there are some Details given with the BB Codes, i.e, Name, Icon, Description, Usage and Order.
  • Name is the name given to the BB Code by its Author.
  • Icon is the Icon image which will be shown as the BB Code button while posting.
  • Description is the detail about the BB Code explaining its features.
  • Usage is the pattern/syntax for using the BB Code in the post.
  • Order is the arrangement order of the BB Codes. BB Codes buttons are shown one after another by this order.

The BB Codes can be Enabled/Disabled anytime by clicking the Enable or Disable Link given on the Right of the BB Code.

Uploading Custom BB Code Addons

There are many custom BB Code Addons made by Developers which are available at PHP-Fusion Addon Database for free to install on your Website.

To Install a Custom BB Code, follow the given steps :
  • Download the BB Code Addon Archive from PHP-Fusion Addon Database
  • Extract the files from the archive and the folder structure will look like this :

    You can also read the extracted file readme-en.txt for quick reference.
  • Use a FTP Program or File Manager to connect to your website's root folder. Upload the files mybbcode_include.php and mybbcode_include_var.php to the folder /includes/bbcodes/. Upload the file mybbcode.php into /locale/English/bbcodes/. Remember, if you are using any other locale, say German, then you have to upload the file mybbcode.php into /locale/German/bbcodes/
  • Now Login as Administrator and go to Admin Panel → System Admin → BB Codes
  • Now you can see the new custom BB Code in the Disabled BB Codes List as shown below :

    Click the Enable link on the Right of this BB Code to enable it.

Test BB Codes

This is the place where you can Test out your installed BB Codes. You can find the Link for Test BB Codes on the same BB Codes Administration page. Below is the image highlighting the Link :

After going to Test BB Codes, you can write some Text in the Box, apply some BB Codes to the text and Test them to see How it looks. Below is a Preview testing BB Codes :

Below is the Preview that How the BB Codes Test Output will look like :

Order of BB Codes

Order of BB Codes is the arrangement order by which they will be shown on a page.
For Example, by default, Smiley BB Code is above all BB Codes. See the image below :

So, let us Move the Bold BB Code above the Smiley BB Code. See the image below :

Now, after moving, let us see that How the BB Codes will be shown as. See the image below to see :


That is it. This was all about using BB Codes in PHP-Fusion.
Tags: bbcode  bb codes  code  [Top]
Search Tags

© PHP-Fusion 2011
Book List Table of Contents Jump to Chapter:  Print
Official Home of PHP-Fusion uses cookies. Some may already have been set. Read more about our Cookies here.
Please click the button I Consent Cookies to hide this bar and accept our cookies. If you continue to use the site with no action taken, we'll assume that you consent our cookies anyway.
Cookiebar Panel byVenue
Shoutbox
You must login to post a message.

23-05-2013 14:07
hmmm weird. A conversation in the shoutbox. I think I've been told not to do that.... As I've been told STOP

23-05-2013 13:51
Sorry, but it sounds like some bull$hit marketing. Everyone must use clouds, bootstrap, kickstarter etc. only because it is modern and fashionable. Why everybody think that such way absolutely better, safer and so on for everyone?

23-05-2013 07:21
Exactly, what Domi said, but the sooner one starts using Github, the better and safer for all.

23-05-2013 06:15
Thanks for clarifying this.

22-05-2013 23:45
It´s nothing that have been set in stone. Just a tip. Since Github is new, not everyone know where it heads yet. You can still use the locales forum if you prefer.

22-05-2013 22:20
Wouldn't it be appropriate to inform the translators? You've got a list! Disappointed I have to learn about this through the shoutbox. Angry

22-05-2013 21:55
Keeping locales on GH makes it easier for everyone, you can update, maintain and publish them much faster and users don't have to search on Google, NSS sites or SourceForge (I'm sure many don't even know that locales can be found at SF)

22-05-2013 20:18
I maintain the Dutch locale. So you say I have to upload it to Github in the future?

22-05-2013 16:03
Since you develop a locale for PHP-Fusion, I recommend you to use Github, since all released locales are there.

22-05-2013 04:59
Good

Last Seens
Last Seen > Admins
[A] PolarFox 01:55:40
[A] Kamillo 02:26:53
[SA] Richard... 02:35:51
[A] jikaka 03:02:32
[A] JoiNNN 04:02:03


Last Seen > Members
[M] Tyler < 5 mins
[M] Halisson... 00:09:15
[M] kot2007 00:17:43
[M] tiido 01:36:42
[M] killua008 01:42:23