I’d be happy to add BuddyPress support, but I don’t know the filter names (for pre-save, the content filter, etc.).
Erm, so the fact that there seems to be a fix and all is awesome but, allow me to introduce myself: Hi, I’m Erlend, and I’m an average WordPress user =P
Alex, could you be so kind as to update your plugin with this latest addition? Alternatively you could maybe publish a BuddyPress-specific add-on. Promise there’s a free beer in it for you!
As I clearly stated above, I plan on adding BuddyPress support to my plugin. However I write this plugin in my spare time, something which I have very little of.
If you aren’t happy with it, then feel free to use something else or implement it yourself.
Sorry, I must have come off in a way I didn’t intend for. A donation should tick in shortly 🙂
By the way, maybe the BP plugin (or added BP code, whichever way you’ll approach this) should include a way to opt for <> tags instead of [] tags? It just makes more sense particularly when posting on a forum, since brackets aren’t the convention there in the case of bbPress.
My plugin uses the shortcode API which only supports [].
Ah I see. Aw well, code tags with pointy brackets will just have to remain as an acceptable fallback for the uninformed on our forum then ;D
Nope.
I plan on adding it in v3 though, I just haven’t had time to work on this plugin.
For all who dont want to wait, extending this plugin to buddypress forum posts is as easy as adding the following line to syntaxhighlighter.php:
add_filter( 'bp_get_the_topic_post_content', array(&$this, 'parse_shortcodes'), 7 );
I suggest adding it after // Register generic hooks.
Cheers,
Normen
Thanks. I’ve added that code to my todo list for when I find time to work on v3.