@mercime
You’re welcome !! Many thanks to you for your precious help in debugging the plugin 🙂
For those who want to add css to the [support] on group forums (not site wide forum), please read here and follow the changeset to get the solution. Can be used from BP 1.5.x
https://buddypress.trac.wordpress.org/ticket/4770
thanks @chouf1,
just upgraded the plugin in repo : https://wordpress.org/extend/plugins/buddy-bbpress-support-topic/
once the change set applied, you’ll be able to use this :
`add_filter(‘bp_bbp_st_print_support_type’, ‘dan_style_support_topic’, 10, 2);
function dan_style_support_topic( $topic_status, $support_status ) {
if( $support_status == 2 ) {
return ‘‘ . $topic_status .’‘;
} else if( $support_status == 1 ) {
return ‘‘ . $topic_status .’‘;
} else {
return $topic_status;
}
}`
imath: I’ve just done a code review of your plugin (the version on github, in master), and have left some feedback on Github. We’re keen to use it on BuddyPress.org once the issues are addressed.
Good evening Paul,
that’s a great new !! Working on your review, i’ll let you know when i’m done, this info doubles my motivation 😉
I’ll quickly publish a new version (1.0.2-beta1 on github, 1.0.2 on WP repo) to resolve the sanitization’s bug (i hope tonight).
Then i’ll publish another version to integrate the rest of your review (1.0.3-beta1).
Thanks again for your help and interest in this plugin.
Hi @djpaul , @mercime , @chouf1
Finally, i made 2 versions tonight the 1.0.3-beta1 is taking in account Paul’s review. Then i thought, what about filtering the topic by support status in the backend Topics list ?
So i made 1.1-beta1, here’s an illustration
https://github.com/imath/buddy-bbPress-Support-Topic/blob/master/screenshot-5.png
Master is latest.
https://github.com/imath/buddy-bbPress-Support-Topic
If everything is ok, then i’ll publish 1.1 to WordPress repo.
Good night.
I think i’ve finished.
Just tagged 1.1-beta2 on plugin’s github repo. After the dashboard widget, the sidebar one in order to display statitics on front end. If on a forum’s page, then the Resolved and To resolve become links that allows user to filter the topics of the forum on the desired support status.
You can see a screenshot of it here : https://github.com/imath/buddy-bbPress-Support-Topic/blob/master/screenshot-7.png
😉
@imath thank you. Will check this out tonight.
thanks @mercime
just added a demo of it :