• Resolved zeaks

    (@zeaks)


    This plugin has been working great for everything but my forums. With some code posts it doesn’t display the code properly. I know this isn’t meant to work with bbPress but I thought there might be a simple fix.

    This is an example of code that was posted on my forums the other day http://pastebin.com/5QzKi9B6

    Here is what it looks like
    http://postimg.org/image/f6zjuizpn/

    It works fine if I add the same code to a post or page, just not the forums. Any idea why? This is one of the few lightweight highlighter plugins that are able to work with bbPress.

    https://wordpress.org/plugins/mivhak/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Askupa Software

    (@askupa-software)

    Hi zeaks,
    Please add the following code to app/Mivhak.php after line 32 (before the closing curly bracket) and tell me if it works. The code was not tested, but in the worst case it simply won’t do anything.

    add_filter('bbp_get_topic_content', array( __CLASS__, 'format' ), 0 );
    add_filter('bbp_get_reply_content', array( __CLASS__, 'format' ), 0 );

    If it works, I will add it to the next release.

    Thread Starter zeaks

    (@zeaks)

    That worked, it’s displaying find in bbPress now.

    The only issue I see which doesn’t bother me because I usually have it turned off is, on the forums the toolbar buttons are displayed along the side. instead of at the top. I played around in FireBug but couldn’t figure it out, it’s probably a bbPress style conflicting with it.

    If you want to have a look I’ve left the toolbar turned on http://zeaks.org/forums/topic/author-and-date-just-under-the-title#post-12838

    Thanks again for the quick reply and fix!

    Plugin Author Askupa Software

    (@askupa-software)

    Not a problem!
    As for the other issue, you have a bbPress CSS rule that is conflicting with it. add this code to your stylesheet:

    pre.prettyprint .meta .control a, xhr.prettyprint .meta .control a {display: inline-block !important}

    P.S. If you liked the plugin, please rate it. it would help us a lot. Thanks!

    Thread Starter zeaks

    (@zeaks)

    Great, thanks! And I rated it back in December. I’ll probably write a review on my site in the near future, I love how lightweight it is. Thanks again

    Plugin Author Askupa Software

    (@askupa-software)

    Oh, that’s right… Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘bbPress issue’ is closed to new replies.