Topic Like Button for bbPress

plugin banner

Defines two functions: bbp_topic_like_button() and get_bbp_topic_like_button(). Use these in your bbPress topic template
file to add an ajax powered l …

Author:Felix Eve (profile at wordpress.org)
WordPress version required:4.7
WordPress version tested:4.9.25
Plugin version:1.0
Added to WordPress repository:25-10-2018
Last updated:25-10-2018
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:
Total downloads:1 277
Active installs:10+
plugin download
Click to start download

Once the function bbp_topic_like_button() is placed in your bbPress topic template file it creates a div placeholder.
This is the same for every user so the initial page build can be globally cached.
Once the document is ready an ajax request checks if the current user has liked the current topic and then
displays a like or unlike button.
Upon clicking the button a ajax request is sent to save the updated topic likes.
Topic likes are stored as post meta attached to the topic.

Additional Info

The plugin cannot be activated without bbPress first being activated.
If bbPress is deactivated then this plugin will deactivate itself.

Credits

Thanks to elhardoum author of bbp-messages for inspiration for the CheckReady class.


FAQ
ChangeLog