BuddyPress Group Tags fix for custom group slug
March 11, 2012 in Buddypress
Whilst in the process of updating my site and having chosen to use Dwenaus’s Buddypress Group Tags plugin, I found that the plugin did not accept my custom group slug ( Plugin ) and decided to update the plugin.
As of Buddypress 1.5 - BP_GROUPS_SLUG was depreciated and replaced with bp_get_groups_slug. Its quite a simple fix. All you have to do it open up bp-group-tags.php in a editor and replace all instances of BP_GROUPS_SLUG with bp_get_groups_slug. That’s all there is to it.
Also noticed that there was something wrong with the tags results page. When you click on a tag, the reults are returned via AJAX though there is no padding on the below so it’s kind of hidden..
Results for tag: example tag
Simply open up bp-group-tags.php again and on line 88 replace the line with the following. All we are doing is adding padding to the bottom of the element. You can adjust the padding to suit your needs.
echo '<div id="gtags-results" style="padding-bottom: 25px;">'.__('Results for tag', 'gtags').': <b>' . stripslashes( $tag ) . '</b></div>';Enjoy!