bbPress

Simple, fast, elegant

bbPress Plugin Browser »

BBcode Buttons (0.0.9)

Download

Version: 0.0.9

Last Updated: 2009-1-10

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
(17)

Your Rating

Author: _ck_

Tags: ,

  1. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    mrsmiley, go to your ?new=1 page (new post) and do a "view source" and please copy that onto http://www.pastebin.com for me to look at.

    Posted: 1 year ago #
  2. that was an insanely fast reply! luckily, i actually figured it out. it was just a dopey slip up in the footer.php code. it's all good now! great mod. :)

    Posted: 1 year ago #
  3. a quick FYI: the list buttons generate the "[li]" code, even though the "[list]" code is what's supported your BBcodeLite plugin. (so li does nothing when someone uses it)

    Posted: 1 year ago #
  4. hm this buttons doesn't work in Opera, but in Internet Explorer all right! Can you fix this problem???

    Posted: 1 year ago #
  5. csseur3

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Member

    hello,

    the [li] doesn't work. i use firefox3.

    i have: [li]test[/li] when i see the source page

    Fred

    Posted: 1 year ago #
  6. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    Oh wait, I see what you are saying, bbcode lite uses [*] but bbcode buttons inserts [li] - I'll have to fix that.

    update: okay download the newest bbcode-buttons and bbcode-lite, they will now handle both [*] and [li] (with both closed and unclosed codes)

    Posted: 1 year ago #
  7. It seems to work in Alpha 1.0, just confirming.

    Posted: 1 year ago #
  8. myu

    Member

    hi, I'm still testing on MAMP.. (yes, another one on mac..)
    Works in Safari, but not on Firefox.
    Script seemed to have loaded, though. "View Page Source" shows the function BBcodeButtons_init(){....} down the bottom.

    <?php do_action('bb_foot', ''); ?> line is left in footer.php (custom template) but I can't even find <?php do_action('bb_head', ''); ?> in kakumei header.php. Was it supposed to be there and I somehow deleted it, maybe?

    Any ideas, please?

    Posted: 1 year ago #
  9. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    bb_head should be in the header.php but bbcode-buttons does not use bb_head (anymore) only bb_foot

    If it works on Safari on your Mac it should work on Firefox on the Mac, especially since Firefox is nearly identical on all platforms.

    Open the Firefox error console (under Tools) and reload the page and see if any warning or errors occur. If another script makes an error, there is a chance javascript could be left in a bad state and the buttons code will not run.

    Posted: 1 year ago #
  10. myu

    Member

    Thanks for reply! :)

    Error: [Exception... "Node cannot be inserted at the specified point in the hierarchy" code: "3" nsresult: "0x80530003 (NS_ERROR_DOM_HIERARCHY_REQUEST_ERR)" location: "<<installation path>> /my-plugins/bbcode-buttons/BBcode-buttons.js?0.0.4 Line:19"

    is what error console says, which I can not understand...
    all others are warning for CSS value either firefox didn't understand or I made mistakes, which I don't think will break java script.

    found bb_head(). It wasn't surrounded by do_action() was all..

    Posted: 1 year ago #
  11. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    Interesting, apparently it's a stylesheet insert bug.
    It thinks there are no stylesheets on that page and won't insert.

    I'll try to make a workaround.

    Any chance it fixed after you fixed bb_head ?

    Posted: 1 year ago #
  12. myu

    Member

    Thank you for reply.

    Strange, because it does load the css. Even showed errors about some properties it couldn't recognize. (one of them might be my mistake, but all the other ones from kakumei css.)

    bb_head() was there originally. I didn't find it because I was looking for do_action(bb_head());
    So that's not the suspect...

    Posted: 1 year ago #
  13. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    The css error is not the regular main (kakumei's) CSS, but the supplimental CSS added by the plugin. I try to insert it before the other CSS, and somehow your Firefox is trying to insert it at 0-1 = -1 which it can't do.

    I'll have to figure out why and try another way.

    That's Firefox 2 on a Mac?

    Posted: 1 year ago #
  14. myu

    Member

    ohh, strange..
    is document.styleSheets.length supposed to count the css linked to the page? Then it should at least have one, though..

    If I change the line19 of js file to
    var stylesheet = document.styleSheets[document.styleSheets.length];
    I get error message:
    Error: stylesheet is undefined

    Firefox is 3.0.1

    Posted: 1 year ago #
  15. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    It's probably because your particular browser on your particular OS is not seeing the main stylesheet until the entire window loads. I call it in the footer which is at the end of the html body but it may have to be added to the window.onload

    Posted: 1 year ago #
  16. myu

    Member

    interesting.. and that would make sense. :)

    Posted: 1 year ago #
  17. Hi great plugin, I was just wondering if you could help me get the bbcode buttons above the smileys, I've tried fiddling around with the css but it doesn't seem to do what I want it to.
    heres what it looks like :( http://alexrogahn.com/public-img/bbpress1.png

    Posted: 1 year ago #
  18. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    You'll need to add a clear:both to #bbcode_buttons in your css

    ie.
    #bbcode_buttons {clear:both;}

    or add a clear:both to the smilies.
    I'm not quite sure what's going on there.

    Posted: 1 year ago #
  19. myu

    Member

    Couldn't work out how to call it from windows.load, so.....

    Added .ed_button {} in my css with all the attributes you had in js file, commented out line 15 - 19 of js, and it works with Safari and Firefox. yay :)
    (except the background color of buttons are not showing up etc, but at least they loaded and function works.)
    But then again, it's not as neat as how you made it all automatic. :(

    Thanks for helps, ck.

    Posted: 1 year ago #
  20. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    myu, it shouldn't be necessary to modify it at all, something else is going on with your page or browser...

    Does the default plugin work with kakumei on your browser?

    Posted: 1 year ago #

RSS feed for this topic

Add a Comment »

You must log in to post.

Code is Poetry.