from a read through all looks ok except
add_filter( 'bbp_get_teeny_mce_buttons', 'rew_remove_image_button_in_bbpress' );
should read
add_filter( 'bbp_get_teeny_mce_buttons', 'wppa_remove_image_button_in_bbpress' );
From a read through looks ok to me, but just change
add_filter( ‘bbp_get_teeny_mce_buttons’, ‘rew_remove_image_button_in_bbpress’) ;
to
add_filter( ‘bbp_get_teeny_mce_buttons’, ‘wppa_remove_image_button_in_bbpress’) ;
to run your amended function
Quick update: Tested a bit more. I’ve renamed the file that it is mistakenly using several times but it doesn’t help, bbPress uses that same file no matter what. Could it be something in the file itself that telling bbPress to use it?
Sorry for the basic questions. I thought this would be relatively simple – just rename the template I wanted to use to bbpress.php and move it to the correct folder. Not sure what to do! Thanks for the help
Hi all,
Any help would be appreciated, as I’m a serious beginner. I’m creating my own theme and adding bbPress compatability (as per instructions from bbPress here).
I’ve created a bbpress.php file and bbPress is using this template for individual forum pages, but for the forum ‘home page’ bbPress is seemingly pulling a random file titled blog.php – which isn’t an option in their template hierarchy.
Why is bbPress using this php file? I’m sure it’s something I just don’t know yet. I’m using bbPress Version 2.5.14 and the newest WP as well. Any help would be greatly appreciated! Thank you!
I have bbpress and Ultimate Member/Subscriptions. When a user cancels their subscription, they are removed from ultimate member but not from bbpress and they are still receiving notifications. I have searched through this forum and found similar issues.
I think I can fix it with AutomateWoo and a custom function. AutomateWoo can trigger the function. I just don’t know how to write a function that has a userid as an argument and then loops through unsubscribing this user.
Can anyone help? I am sure this might help others as well.
Thank you in advance.
I think i ggot it:
Filters ‘bbp_get_topic_content’ and ‘bbp_get_reply_content’. They MUST run after wpautop, so i gave them priority 1000.
All of my code to get my plugin compatible with bbpress looks now:
/* We use bbPress */
// editor bbpress in tinymce mode
function wppa_enable_visual_editor_in_bbpress( $args = array() ) {
if ( wppa_switch( 'photo_on_bbpress' ) ) {
$args['tinymce'] = true;
$args['teeny'] = false;
}
return $args;
}
add_filter( 'bbp_after_get_the_content_parse_args', 'wppa_enable_visual_editor_in_bbpress' );
// remove insert wp image button
function wppa_remove_image_button_in_bbpress( $buttons ) {
if ( wppa_switch( 'photo_on_bbpress' ) ) {
if ( ( $key = array_search( 'image', $buttons ) ) !== false ) {
unset( $buttons[$key] );
}
}
return $buttons ;
}
add_filter( 'bbp_get_teeny_mce_buttons', 'rew_remove_image_button_in_bbpress' );
// enable processing shortcodes
function wppa_enable_shortcodes_in_bbpress( $content ) {
if ( wppa_switch( 'photo_on_bbpress' ) ) {
$content = do_shortcode( $content );
}
return $content;
}
add_filter( 'bbp_get_topic_content', 'wppa_enable_shortcodes_in_bbpress', 1000 );
add_filter( 'bbp_get_reply_content', 'wppa_enable_shortcodes_in_bbpress', 1000 );
Pleas be so kind to review this to see if i did it right or did oversee something.
Yes, in the content of the topic/reply. It makes from [photo 123]
the html to display photo with id=123 from plugin wp-photo-album-plus – instead of a photo from the wp media library – according to the settings in the settings page of that plugin; e.g link to lightbox, subtitle and possible social media buttons to share the image.
The button that opens the dialog to select the photo, and optionally upload a new one, is now working without mods to bbpress, but it shows ‘[photo 123]’ instead of the picture. If the content would be filtered by the standard wp content filters, it would display the image, like it does in a wp native page or post.
@robin-w For some reason I have the same problem with the bbpress forum index. It does not work.
Here is the site link. But at the Forums level, no index.
The [bbp-forum-index] code is on the Forum created.
Any help would be great.
Hello,
I am trying to develop a forum in my wordpress site and I have installed bbPress…
My forum will have nested “categories” (down to level 3…)
let me explain better:
Forum category 1
—-> forum sub categity 1.1
———-> forum 1.1.1
———-> forum 1.1.2
———-> forum 1.1.3
—-> forum sub categity 1.2
———-> forum 1.2.1
———-> forum 1.2.2
—-> forum sub categity 1.3
———-> forum 1.3.1
Forum category 2
—-> forum sub categity 2.1
———-> forum 2.1.1
———-> forum 2.1.2
I don’t know if it is my theme or if it is a bbPress configuration, but I cannot see more than level 2
Forum category 1
—-> forum sub categity 1.1
—-> forum sub categity 1.2
—-> forum sub categity 1.3
Forum category 2
—-> forum sub categity 2.1
and to see level 3 I need to clock on level 2 categories….
on top of this I cannot see any breadcrumb navigation for the forum….. is there an option for that?
Many thanks
Regards
Hi thanks for your reply, that’s a big undertaking for my site given the amount of plugins, and combinations of plugins that may be conflicting with bbpress. I tried another theme, that seemed to work a little better, so am guessing it could be a theme conflict with bbpress.
I was more after guidelines of things that could go wrong to look out for, am guessing it uses a tags with an id to jump to the relevant post?
I think I’ll wait until I get a staging setup done, so I can test things on a non live site.
In basic bbpress, if you subscribe to a forum, then you should receive an email when a new topic is posted. If you subsequently subscribe to that topic, you should receive emails when a reply is posted.
As for the symbols, since you’re using the buddyboss theme, then I suspect that this is part of that, and as a paid product, you should check the documentation and/or raise a support ticket with them.
thanks for the post
bbpress includes a version of the wordpress ‘after..parse_args’ which will let you do this so for
•File …/wp-content/plugins/bbpress/includes/common/template.php line 1735:
change ‘tinymce’ => false, into ‘tinymce’ => true,
•File …/wp-content/plugins/bbpress/includes/common/template.php line 1736:
change ‘teeny’ => true, into ‘teeny’ => false,
you could put this code into a functions file or plugin
//editor bbpress
function rew_enable_visual_editor( $args = array() ) {
$args['tinymce'] = true;
$args['teeny'] = false;
return $args;
}
add_filter( 'bbp_after_get_the_content_parse_args', 'rew_enable_visual_editor' );
and the ability to filter functions so for
•File …/wp-content/plugins/bbpress/includes/common/template.php line 1858:
Remove array_push( $buttons, ‘image’ ); to remove the ‘standard’ image insert button that asks for a full url to an image, since we are replacing this by the [photo] shortcode generator.
use this code in your functions file or plugin
function rew_remove_image_button ($buttons) {
if (($key = array_search('image', $buttons)) !== false) {
unset($buttons[$key]);
}
return $buttons ;
}
add_filter( 'bbp_get_teeny_mce_buttons', 'rew_remove_image_button' );
The you don’t need to alter bbpress files
Let me know if I can help further
hmm, apart from the standard elimination tests below, I can’t think of anything obvious
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.
@heero I know this thread is old but it still shows up 1st page when I search bbPress themes. So I thought it would be worth providing an upto date answer for future viewers.
The 1st stop I would recommend is checking out wordpress.org/themes where you can find thousands of themes.
However, if you don’t want to spend all day looking through their directory then check out Softwarefindr a platform were forum owners using bbPress give a shortlist of their recommended bbPress themes.
Hi,
I have setup bbpress on admin.site.com and i currently already have site.com setup with user authentication. I’m currently looking into making the login from site.com auto detected in bbpress forum.
Looking in bbpress.php it seems that i might have to modify current_user to be set from the session that i currently set after the user logs in to site.php but not sure how to set the user for bbpress to be able to detect the login.
Any help is appreciated.
Thanks.
It could be a theme or plugin issue
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.
Then come back
Driving me a bit crazy this, I have BBpress widgets showing. When I click on them it puts me past the actual forum thread, so I have to scroll back up to read it. I tried the last reply plugin, doesn’t work.
Even clicking on the forum links doesn’t take me to the post, but to somewhere past it.
Can you give me some pointers on how to fix this basic functionality?
ok, put it into the child theme and remove form the parent theme – that way it doesn’t get lost on updates
so you have a bbpress specific sidebar as per
Layout and functionality – Examples you can use
yes ?
If so then in your new bbpress.php replace
line 49 ish
<?php get_sidebar(); ?>
with
<?php dynamic_sidebar( 'bbp-sidebar'); ?>
ok, much of this will be your theme or standard bbpress
add this plugin and use it to style
bbp style pack
on registration, bbpress uses wordpress registration, so looks like that needs troubleshooting
Yes, now the only plugin available is a wordpress plugin.
But some times ago Tapatalk relased an official and supported bbPress plugin.
That was it!
So… filters need to be passed a variable which gets returned in order to function properly?
Good to know, definitely not clear in the bbpress codex.
Thanks, Robin. Means alot!
-Dave
Hello,
I got few problems with BBpress. I asked the support of Boldgrin, after investigation they told me to contact BBpress support.
First, when users try to register, they dont receive the confirmation email. (support confirmed than nothing was sent).
Second, the font text of the forum is very small, is it possible to edit that?
Third, the font of the title of the registration page is too big, plus the Button “validate” on the bottom right is way too small. Also possible to edit that?
Fourth, at the bottom of this very same page (registration)there is “Website comming soon” shows up?! How to delete this!
I know that was a lot but Im a newbie, any advice will help!
Thanks in advance!
Yohan
@robin-w,
That worked.
It’s showing the page sidebar, as opposed to the blog sidebar.
I added the bbpress.php copied file in the parent theme. I am using a child-theme but haven’t tried it yet, but it would be better to get this working there.
And also next…. how do we create and show a bbPress specific sidebar?
Thank you.
ok, the following assumes you know how to use FTP, if not come back
You need to find
wp-content/themes/salient/page-sidebar.php
copy this and rename it to
wp-content/themes/salient/bbpress.php
so that you end up with both ie
wp-content/themes/salient/page-sidebar.php
wp-content/themes/salient/bbpress.php
bbpress will now use this for all forums, so you should see a sidebar on all forum pages
then see which sidebar is appearing, and we can amend it if needed.
We do need to talk about child themes at a later stage