You are here

README.txt in Bbcode 7

Same filename and directory in other branches
  1. 5 README.txt
Drupal bbcode.module README.txt
==============================================================================

The Drupal bbcode.module adds a BBCode filter to Drupal. This allows you
to use HTML-like tags as an alternative to HTML itself for adding markup
to your posts. BBCode is easier to use than HTML and helps to prevent
malicious users from disrupting your site's formatting.

See the help screen of the module (or the code) for information on which
tags and variants are supported. This implementation is not necessarily the
same as the original BBCode implementaion.
 
Note that this filter also recognizes and converts URLs and email addresses
to links automatically.

Installation
------------------------------------------------------------------------------
 
  - Download the BBCode module from http://drupal.org/project/bbcode

  - Create a .../modules/bbcode/ subdirectory and copy the files into it.

  - Enable the module as usual from Drupal's admin pages 
    (Administer » Modules)
 
Configuration
------------------------------------------------------------------------------

  - Before using BBCode you need to enable the BBCode filter in an input
    format (see Administer » Input formats » add input format)

  - You can enable/ disable the following features in the configuration page
    of the input format in which BBCode is enabled:

    * Convert web and email addresses to links
    * Javascript encoding of emails
    * Smart paragraph and line breaks
    * Print debugging info

  - If you've disabled "smart paragraph and line breaks", you need to enable
    Drupal's "Line break converter" with the BBCode filter. Don't use both
    together!

  - If you would like to use BBCode as a replacement for HTML, you could
    enable Drupal's "HTML filter" to remove or escape user entered HTML tags.

  - If you've enabled multiple filters, you may need to rearrange them to
    ensure they execute in the correct order. For example, if HTML filtering 
    is enabled, it is essential that BBCode be sorted AFTER the HTML filter. 
    If not this module will change the BBCode into HTML, and the HTML filter 
    will disallow and remove the code again.

Complementing Modules
------------------------------------------------------------------------------

The following optional modules may be used to enhance your BBCode 
installation:

  - Quicktags - http://drupal.org/project/quicktags
    Adds a BBCode formatting bar above all your textareas. 

  - Smileys module - http://drupal.org/project/smileys

Note: these are independent projects. Please do not report issues with them 
as BBCode problems!

Additional tags:
------------------------------------------------------------------------------

Here are some tags that's not part of the official BBCode implementation. 
You may want to add them to your bbcode-filter.inc file:

  - '#\[move(?::\w+)?\](.*?)\[/move(?::\w+)?\]#si' => '<marquee>\\1</marquee>',
  - '#\[mp3\](.*?)\[/mp3(?::\w+)?\]#si' => '<swf file="\\1">',

Credits / Contacts
------------------------------------------------------------------------------

  - The original author of this module is Alastair Maw, who can be reached at
    drupal-bbcode[at]almaw.com. 

  - Gabor Hojtsy (goba[at]php.net) also contributed to the module.

  - Javascript encoding of emails by László Bácsi (lackac[at]math.bme.hu).

  - Frank Naude converted this module to Drupal 4.7, 5.x and 7.x added several
    BBCode tags, a linebreak converter, quicktags integration, etc.

TODO List
------------------------------------------------------------------------------

 - Translate this module into other languages.

 - Fix non-compliant HTML when "Smart paragraph and line breaks:" is set to 
   "Line and paragraph breaks". If HTML validation is important to you, use 
   one of the other options or submit a patch.

 - Configuration of which BBCode tags are allowed 
   (will require a complete rewrite).

File

README.txt
View source
  1. Drupal bbcode.module README.txt
  2. ==============================================================================
  3. The Drupal bbcode.module adds a BBCode filter to Drupal. This allows you
  4. to use HTML-like tags as an alternative to HTML itself for adding markup
  5. to your posts. BBCode is easier to use than HTML and helps to prevent
  6. malicious users from disrupting your site's formatting.
  7. See the help screen of the module (or the code) for information on which
  8. tags and variants are supported. This implementation is not necessarily the
  9. same as the original BBCode implementaion.
  10. Note that this filter also recognizes and converts URLs and email addresses
  11. to links automatically.
  12. Installation
  13. ------------------------------------------------------------------------------
  14. - Download the BBCode module from http://drupal.org/project/bbcode
  15. - Create a .../modules/bbcode/ subdirectory and copy the files into it.
  16. - Enable the module as usual from Drupal's admin pages
  17. (Administer » Modules)
  18. Configuration
  19. ------------------------------------------------------------------------------
  20. - Before using BBCode you need to enable the BBCode filter in an input
  21. format (see Administer » Input formats » add input format)
  22. - You can enable/ disable the following features in the configuration page
  23. of the input format in which BBCode is enabled:
  24. * Convert web and email addresses to links
  25. * Javascript encoding of emails
  26. * Smart paragraph and line breaks
  27. * Print debugging info
  28. - If you've disabled "smart paragraph and line breaks", you need to enable
  29. Drupal's "Line break converter" with the BBCode filter. Don't use both
  30. together!
  31. - If you would like to use BBCode as a replacement for HTML, you could
  32. enable Drupal's "HTML filter" to remove or escape user entered HTML tags.
  33. - If you've enabled multiple filters, you may need to rearrange them to
  34. ensure they execute in the correct order. For example, if HTML filtering
  35. is enabled, it is essential that BBCode be sorted AFTER the HTML filter.
  36. If not this module will change the BBCode into HTML, and the HTML filter
  37. will disallow and remove the code again.
  38. Complementing Modules
  39. ------------------------------------------------------------------------------
  40. The following optional modules may be used to enhance your BBCode
  41. installation:
  42. - Quicktags - http://drupal.org/project/quicktags
  43. Adds a BBCode formatting bar above all your textareas.
  44. - Smileys module - http://drupal.org/project/smileys
  45. Note: these are independent projects. Please do not report issues with them
  46. as BBCode problems!
  47. Additional tags:
  48. ------------------------------------------------------------------------------
  49. Here are some tags that's not part of the official BBCode implementation.
  50. You may want to add them to your bbcode-filter.inc file:
  51. - '#\[move(?::\w+)?\](.*?)\[/move(?::\w+)?\]#si' => '\\1',
  52. - '#\[mp3\](.*?)\[/mp3(?::\w+)?\]#si' => '',
  53. Credits / Contacts
  54. ------------------------------------------------------------------------------
  55. - The original author of this module is Alastair Maw, who can be reached at
  56. drupal-bbcode[at]almaw.com.
  57. - Gabor Hojtsy (goba[at]php.net) also contributed to the module.
  58. - Javascript encoding of emails by László Bácsi (lackac[at]math.bme.hu).
  59. - Frank Naude converted this module to Drupal 4.7, 5.x and 7.x added several
  60. BBCode tags, a linebreak converter, quicktags integration, etc.
  61. TODO List
  62. ------------------------------------------------------------------------------
  63. - Translate this module into other languages.
  64. - Fix non-compliant HTML when "Smart paragraph and line breaks:" is set to
  65. "Line and paragraph breaks". If HTML validation is important to you, use
  66. one of the other options or submit a patch.
  67. - Configuration of which BBCode tags are allowed
  68. (will require a complete rewrite).