I made a Post Toolbar for bbPress 2.0
-
I’ve just made a post toolbar that works with bbPress 2.0, and extends a bit of kses in WP (adds
<span style="">
and image posting support).Link to zip: http://dump.master5o1.com/files/bbpress-post-toolbar.zip
The toolbar looks like this with the Link panel open:
http://dump.master5o1.com/files/images/toolbar.png
(the Bold button in the screenshot has the :hover css applied)
Under help, one can reach an ‘About bbPress Post Toolbar’ panel which states the version of the and that I made it (but no link).
The extending of kses to allow <span style=””> in the allowable tags is necessary for the font sizing, colouring, underlining, strike-through, and text alignment.
The options page in WP Admin has the following:
Use customised smilies?
Yes No (default)
Allow embedding of Youtube videos?
Yes (default) No
Allow text-alignment buttons?
Yes No(default)
Allow images to be posted?
Yes No(default)
Link to zip: http://dump.master5o1.com/files/bbpress-post-toolbar.zip
I have requested plugin hosting for WordPress Plugin Directory and I’m waiting for it to be approved, etc.
In the mean time, any comments and feedback from testing, etc would be help.
-
Nice!
thank you for this plugin! i’ve installed it to test (on my very slightly modified twenty ten them) and the one problem i have is that the tool bar shows up at the top of the page and not just in the add topic/reply box.
Yeah, I need to figure out some stuff about that. It’s because I’ve hooked it into this:
add_action( 'bbp_template_notices' , array('bbp_5o1_toolbar', 'post_form_toolbar_bar') );
I then delete it using javascript if the bbp-reply-form or bbp-topic-form textarea elements aren’t on the page.
I’ll look for a way to fix it in a moment.
Ok, I’ve enhanced the extra-bar deletion JS so that it finds them all and deletes all except the last one. Because, assuming that the post form is at the bottom and such….
But it’s still dependant on the above action.
Not sure how to get past that yet without more code reading…
(The whole JS thing is really just a hack until I do find out where to hook it into properly).
Will update the zip file in a moment.
http://dump.master5o1.com/files/bbpress-post-toolbar.zip
Ok, updated the zip.
- You must be logged in to reply to this topic.