Buddypress seo problem with yoast plugin – solved

I was looking long for the solution of my problem, as I am using buddypress for community of Latinos in Paris I have been facing problems with WordPress SEO plugin by Yoast and buddypress it self. Mostly with the titles of the pages of the groups and forums inside the groups. Because all the time when you have been on the page of group and forum of the group the title of the page was Β Β “Group – Latinos Paris”, what was a bit annoying because there were many other interesting titles to put! πŸ™‚

So as I did not find satisfying solution I have decided to modify plugin of WordPress SEO by Yoast by my own! πŸ™‚

There is one file where this plugin prepares the title of the page it is exactly in here :

We have to add two new lines that will verify if we are on the page of group, forum or even topic of the forum. So we have to add this two lines to be happy new users of brand new functionality of the WordPress SEO plugin! πŸ™‚

I hope it will work for you as fine as for me! πŸ™‚