bbPress Plugin Browser »

BBcode Lite for bbPress (1.0.5)

Download

Version: 1.0.5

Last Updated: 2011-12-24

Requires bbPress Version: 0.8.2 or higher

Compatible up to: 0.9

Author Homepage »

Plugin Homepage »

Donate to this plugin »

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(26)

Your Rating

Author: _ck_

Most bbPress and WordPress plugins for BBcode rely on the Pear PHP class which is HUGE and SLOW. The big problem with that is it has to execute for every single post, every single time a post is displayed, because the post is stored natively in bbPress with the BBcode intact. An active forum can get overloaded.

This version is less than one tenth the size and executes much faster. It also takes into account that bbpress does the rest of the parsing. Users may mix bbcode and html in the same post.

If "Allow Images" is installed, the [img] BBcode will also work.

Tags: ,

  1. thaaank you!!!!

    Posted: 3 years ago #
  2. Great plugin.. thanks :)

    Posted: 3 years ago #
  3. ajvngou_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Member

    g r e a t

    Posted: 3 years ago #
  4. Very useful plugin. Thanks!

    Posted: 3 years ago #
  5. bramruiter

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Member

    I have a question. How can I change the "Allowed Mark-up" beneath the postform. I want to put the list of possibilities between "[" and "]" so they are a bit more understandable.

    And thanks for the plugin, which is just awesome.

    Posted: 3 years ago #
  6. emmegildo

    Member

    i cant activate the plugin..

    when i click activate, it appears -> "Plugin could not be activated; it produced a Fatal Error."

    Posted: 3 years ago #
  7. Anonymous

    Unregistered

    Great plugin! Thanks a lot!

    Posted: 3 years ago #
  8. csseur3

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Member

    Hello,

    there is a problem with ul and li: a BR code is displayed after all the lines, and this broken the validation with the w3c validator.

    for have a correct line, i make:
    [list][*]line1[/*][*]line2[/*][/list]

    in only one line in the editor, not very user friendly, no?

    how to do fix that and erase the BR (the single carriage return) in the lists?

    thanks

    fred

    edit: sorry, the BR code is not displayed when it is in <code

    Posted: 3 years ago #
  9. I've modified 1.0.2 to now strip <br /> before or after li now.
    You can direct download the version here:
    http://plugins-svn.bbpress.org/bbcode-lite/trunk/BBcode-lite.php

    There is a bug in bbPress and not my code where it strips <br /> after lists, making it impossible to put a blank line afterwards. Instead it converts it to <p>. This is related to the "feature" that you cannot have multiple blank lines in bbPress posts and will have to be addressed someday. It can be worked around by using some css to put a bottom margin between </ul> and <p> tags if it bothers anyone.

    Posted: 3 years ago #
  10. meitershaker

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Member

    hi!

    it is possible to add the possibility to add an url or a name of author, in quote tag? like in phpbb :)

    thanks,
    Bye!

    Posted: 3 years ago #
  11. You want the full "quote" plugin, see here:
    http://bbpress.org/plugins/topic/quote/page/2/#post-1022

    Posted: 3 years ago #
  12. bren77

    Member

    I am using your most recent versions of this plugin and BBcode Buttons. Thanks for the great plugins! I do not have the "Allow Images" plugin installed but the [img] tag is still working. Is there a way to disable this? I don't want to allow images to be posted in the forum. Thanks.

    Posted: 3 years ago #
  13. Hmm, I must have thrown IMG in there.
    Find the line that is:

    $complex = array('url' => array('a','href'),'img' => array('img','src'));


    and make it say instead:

    $complex = array('url' => array('a','href'));
    Posted: 3 years ago #
  14. Nice. Good plugin!
    Thanks!

    Posted: 3 years ago #
  15. meitershaker

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Member

    how to add colors?

    Posted: 3 years ago #
  16. I believe I put in the support for colors in there, though it's not documented or listed with bbcode buttons.

    try

    [color=red]testing[/color]

    Posted: 3 years ago #
  17. musnake

    Member

    Works fine on v1.0a2

    Test post:

    [b]Code:[/b]
    
    [code]<?php echo 'woot!' ?> [/code]
    
    Test of backticks to enclose code: <code>use [*] for list element items</code>
    
    [b]Lists:[/b]
    
    Numbered list:
    [list=1][*]First list item [*]second [*]third [/list]
    
    Alphabetically bulleted list:
    [list=a][*]First list item [*]second [*]third [/list]
    
    [b]Links:[/b]
    
    URI [url]http://bbpress.org[/url]  or,
    [url=http://bbpress.org]bbpress[/url]
    
    [b]Color:[/b]
    
    [color=red] using "red"[/color]
    [color=#FF0000]using #FF0000 the hex value for red[/color]
    
     [center]centered text? [/center]
     [u] underlined?[/u]
     [b] bold?[/b]
     [s] strikethrough?[/s] or  [strike]strikethrough? [/strike]
    
    [b]Font Size:[/b]
    [size=4]size = 4[/size]
    [size=+2]size +2[/size]
    [size=-1]size -1[/size]

    Awesome.

    Posted: 3 years ago #
  18. What a fantastic plugin.. great work _ck_, once again!

    Posted: 3 years ago #
  19. Not the cleanest mod :

    foreach($bbcode_lite['simple'] as $bbcode=>$html){
            switch ($bbcode) {
                    case 'quote':
                            $text = preg_replace('/\['.$bbcode.'=["\'](.+?)["\'].+\](.+?)\[\/'.$bbcode.'\]/is','Quote:<'.$html.'><cite>$1 said:</cite> $2</'.$html
    .'>',$text);
                            $text = preg_replace('/\['.$bbcode.'\](.+?)\[\/'.$bbcode.'\]/is','quote:<'.$html.'>$1</'.$html.'>',$text);
                    break;
                    default:
                            $text = preg_replace('/\['.$bbcode.'\](.+?)\[\/'.$bbcode.'\]/is','<'.$html.'>$1</'.$html.'>',$text);
                    break;
            }
    }

    This allows [quote="blah":xxxx] type notation as used in other forum software and can be used in conjunction with my quote mod (http://bbpress.org/plugins/topic/quote/page/2/#post-2486)

    ps- this is not nested quote safe any suggestions on how to fix?

    Posted: 3 years ago #

RSS feed for this topic

Add a Comment »

You must log in to post.