/[drupal]/contributions/modules/bbcode/README.txt
ViewVC logotype

Contents of /contributions/modules/bbcode/README.txt

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


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

  ViewVC Help
Powered by ViewVC 1.1.2