Skip to:
Content
Pages
Categories
Search
Top
Bottom

how can i add buttons like this post area?


  • Unsal Korkmaz
    Participant

    @unsalkorkmaz

    how can i add buttons like this post area?

    i really seached both here and bbpress.org but couldnt find.

    (that B I Link UL OL LI IMG buttons etc)

    wpmu 2.8.1 bbpress 1.0.1

Viewing 7 replies - 1 through 7 (of 7 total)
  • For the forums, it’s Comment Quicktags

    For the blog, there are a lot more options.

    There isn’t one, yet, that works with all components (groups, wire, etc).

    Using Comment Form Quicktags (which puts it for the blog), I was able to tweak a little and get it to work by manually editing files.

    For the Wire, I edited my theme’s membertheme/wire/post-forum.php from

    <textarea name="wire-post-textarea" id="wire-post-textarea"></textarea>

    to

    <script type="text/javascript">edToolbar();</script>
    <textarea name="wire-post-textarea" id="wire-post-textarea"></textarea>
    <script type="text/javascript">var edCanvas = document.getElementById('wire-post-textarea');</script>

    In theory the plugin should be hackable, but adding this:

    add_action('wire-post-textarea', array(&$this, 'detect_end'));

    to

    /**
    * Start to detect <textarea>.
    */
    function detect_start($file) {
    ob_start(array(&$this, 'add_tags'));
    $this->ended = false;
    add_action('comment_form', array(&$this, 'detect_end'));
    add_action('wp_footer', array(&$this, 'detect_end'));

    return $file;
    }

    didn’t work so I’ll have to keep poking around.


    Korhan Ekinci
    Participant

    @korhanekinci

    Comment Quicktags does not work with bbpress 1.0.1, nor CK’s bbcode-buttons.

    How is it done here? Maybe, Andy can tell us :)


    r-a-y
    Keymaster

    @r-a-y

    It works for me… I’m using bbPress 1.0.1 as well.

    FYI, I’m using _ck_’s BBcode Lite and BBcode Buttons Toolbar plugins.


    Korhan Ekinci
    Participant

    @korhanekinci

    Interesting, I use looks-like-buddypress theme and tried several times activating BBcode lite and BBcode buttons and nothing appeared in the post area!

    Then I read ck’s post in the forum saying that, these plugins are not compatible with 1.0.x version and that he will work on the plugins towards the end of the year… And gave up on it!

    Did you hack it r-a-y?


    r-a-y
    Keymaster

    @r-a-y

    _ck_ says that her plugins are not compatible with 1.0+, but most of them are.

    Most of them haven’t been tested with 1.0+, which is what she means so she can’t guarantee any faults on the 1.0 branch.

    I didn’t hack it.


    Korhan Ekinci
    Participant

    @korhanekinci

    thanks again r-a-y, It worked when I moved the bbcode-buttons toolbar plugin from “my-plugins folder” to “bb-plugins folder”!

    I have bbcode-lite lying in “my-plugins folder” and bbcode-buttons doing the job in “bb-plugins folder” :)))

    Interesting that, i had the similar problem with lookslike buddypress theme, when I had it in my-templates folder it would not activate, but activated when I moved it to bb-templates!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘how can i add buttons like this post area?’ is closed to new replies.
Skip to toolbar