@lmolenje,
click click click ! But what should this button do ? Usually, a topic relates to a forum, and a BuddyPress forum is the bbPres plugin.
Give better details, please ! 😉
It is essentially a link that I want to add to every forum. Many plugins have this but they only apply to posts and pages. The link will connect to a third party app. I have some custom code that I can embed into the php so that I can link wont take me off my site. However, I am unable to find the forum.php for buddy press in my installation.
I am looking for it in:
/apps/wordpress/htdocs/wp-content/themes/buddy
I’m not really sure what button you are looking. Is it something like this kind of plugin?
https://wordpress.org/plugins/buddyforms-posts-to-posts-integration/
@lmolenje,
BuddyPress works together with the bbPress plugin when you use a forum.
If you want to add an extra button or a link or whatever, you simply check for the hook you want to use in one of the bbPress template files (bbpress/templates/default/bbpress/…) and attach a custom function to it.
As example of use, this snippet will add some text above the topic editor. You add it into your child theme functions.php or into bp-custom.php
function my_test_insert() {
echo '<strong>My awesome <a href="#">link</a> to third party app</strong>';
}
add_action( 'bbp_template_notices', 'my_test_insert' );
If you don’t understand what’s going on on this topic, here’s a brief tutorial about hooks and filters.
Thanks, that write is great. Do you have a similar one for creating a child template?
Thanks again!
Do you have a similar one for creating a child template?
No comprendo ?!!! Do you mean a tutorial for creating a child theme ?
https://codex.wordpress.org/Child_Themes
http://code.tutsplus.com/tutorials/child-themes-basics-and-creating-child-themes-in-wordpress–wp-27475
Did you read both Codex articles ?
Do you know that search engines exist ?
Yes that is what I meant sorry. Thanks!