@mglasser The specifics of the cause are outlined in my post above
Oops! That page can’t be found on Sub Forums with WordPress 4.4
I upgraded to 4.4 and then reverted back to 4.3.1 and I think this caused my problem.
Try resaving the forum status, i.e. switch it to public, then back to private
Was this new logic in a new php file or a change to an existing file? Or did the upgrade make some change in the database?
See my link above also
I have learned that my host WPEngine does a non-destructive restore, so when I restored to revert back to 4.3.1 it did not remove the wp_termmeta table nor any new files that were added. But it should have reverted back any changes to existing files which would be calling this new code. My site is working now, but I am still curious how this happened so I can better understand how I should revert back to previous versions.
You should probably raise those concerns with WPEngine, there would be pros and cons of removing the wp_termmeta table but I’d say it isn’t removed because its a “non destructive” restore, and yes the files reverted back would fix the issue, WPEngine should be able to confirm all of this for you.
your theme thinks it’s opening up a blog page – when you click genera discussion you’ll see that in menu blog is selected.
Have you followed
Step by step guide to setting up a bbPress forum – Part 1
and looked at no. 8
Just curious what specifically changed to cause this problem. I upgraded to 4.4 and then reverted back to 4.3.1 and I think this caused my problem. Was this new logic in a new php file or a change to an existing file? Or did the upgrade make some change in the database? I have learned that my host WPEngine does a non-destructive restore, so when I restored to revert back to 4.3.1 it did not remove the wp_termmeta table nor any new files that were added. But it should have reverted back any changes to existing files which would be calling this new code. My site is working now, but I am still curious how this happened so I can better understand how I should revert back to previous versions.
Here a solution that worked perfectly for me, from ‘Tylersoden’
If anyone stumbles upon this thread and is interested in a css solution, here is the code I use. It goes in the ‘Appearance’ -> ‘Editor’ section on the wordpress control panel or in ‘~/<your theme folder>/style.css’:
.bbp-template-notice.info { display: none; }
Robin wrote…
As far as I know for those that are affected (and that’s only a subset who have hidden/private sub forums I believe
This is correct
Robin wrote…
But this doesn’t seem to work for everyone or
It should work for everyone, if it doesn’t work for you please add a note to this thread letting me know it doesn’t please 🙂
————————————————————
The root cause of the issue is hierarchal post URL’s with custom post statuses, so in bbPress case if we have a “private” forum that uses a custom post status “private”, as such when we expect our URL to be e.g.: https://example.com/forums/forum/my-private-or-hidden-category/my-forum
If the forum or category my-private-or-hidden-category is private or hidden then the URL generated for the my-forum excludes the my-private-or-hidden-category part of the URL and the resulting url is https://example.com/forums/forum/my-forum which is incorrect, bad and makes us sad 🙁
As far as I know for those that are affected (and that’s only a subset who have hidden/private sub forums I believe – although let me know if different, the it is either
a. If you are staying with 4.4 then implement the following
open wp-includes/post.php, scroll to about line 4300 to find function get_page_uri( $page )
In that function replace
if ( 'publish' === $parent->post_status ) {
with
if ( ! in_array( $parent->post_status, get_post_stati( array( 'internal' => true ) ) ) ){
But this doesn’t seem to work for everyone or
b. Revert to 4.3 and then for each forum affected change the status from private/hidden to public, save and then change back to how you want it and save. That should be all you need to do. The private groups toggle is a red herring as far as I can work out
Hello,
I’m pretty new to wordpress+bbpress (been working with it for a few days now). In the past I have used other forum boards, but since I’m using wordpress now I figured while the hell not try out bbpress ?
So far I like it, I’m still working things out but I managed to do what i wanted using google when I was hitting a wall.
Now, what i’d like to do is change bbpress layout from this :

to something like this :

Even with some research I don’t know what/how to modify this. I have read the “Layout and functionality – Examples you can use” in the codex (and actually used one to get the forum list to be block instead of inline) but it doesn’t mention this kind of modification.
My html/css/php knowledge is really basic, and obviously not enough to do this on my own.
If someone could point me in the right direction I’d gladly appreciate it. Thanks !
Wordpress version : 4.4
bbpress version : 2.5.8-5815
theme used : vantage
Could be a theme, plugin, or WordPress/bbPress issue. You can try the plugin and theme troubleshooting listed below to see if it is only your currently active theme having the issue present. After the troubleshooting come back with some results.
Troubleshooting
What I did at a certain moment was create a new page and use the [bbp-forum-index] shortcode (https://codex.bbpress.org/features/shortcodes/)
Then in my Appearance/Theme Settings, I have set the homepage to this created page.
Not sure if this is what you want…
Pascal.
Hi,
I would say to start from https://codex.bbpress.org/themes/ and read the subpages there to see if you get something out of them.
Pascal.
Hi!
bbP has bbp_get_topic_close_link function (defined in bbpress/includes/topics/template.php file) that outputs an anchor tag (<a>). However customizing the anchor tag proved difficult so we ended up using a bit of custom code to output the link:
<?php if( is_singular( 'topic' ) && current_user_can( 'moderate' ) ) : ?>
<div class="post-note">
<?php
$topic = bbp_get_topic( bbp_get_topic_id() );
if( bbp_is_topic_open( $topic->ID ) ) {
$uri = add_query_arg( array( 'action' => 'bbp_toggle_topic_close', 'topic_id' => $topic->ID ) );
$uri = wp_nonce_url( $uri, 'close-topic_' . $topic->ID );
echo '<a href="' . esc_url( $uri ) . '" class="bbp-topic-close-link button green">Close Thread</a>';
}
?>
</div>
<?php endif; ?>
You already tried something like this in CSS:
.bbp-breadcrumb:nth-of-type(1)
{
display:none;
}
Pascal.
Hi,
Have a look at the code I used for my bbP Manage Subscriptions plugin (https://wordpress.org/plugins/bbp-manage-subscriptions/). Maybe you find in there what you need.
Bulk actions are next on the list (hopefully by mid January), but feel free to take part of the code for your own project now.
Pascal.
Private forum, was looking at the css but can’t figure it out as the source goes like this:
<div id="bbpress-forums">
<div class="bbp-breadcrumb">
for the [bbp-forum-index] then further down:
<div id="bbpress-forums">
<div class="bbp-breadcrumb">
for [bbp-topic-index] so hiding <div class=”bbp-breadcrumb”> would hide both?
Hi,
Is it a public forum ? If so, can you share the URL ?
There is probably not much that can be done for it from the bbPress side as you use the shortcodes, but maybe in CSS something can be done.
Pascal.
Hello, can I change “search” text on the search widget? Possible custom css code please?
Been asked years ago but never answered, how is it I remove/filter out the breadcrumbs from this shortcode as using [bbp-forum-index] then [bbp-topic-index] gives you two sets of breadcrumbs on the same page?
Hi,
This is a known one. Please refer to the information in the codex: https://codex.bbpress.org/bbp_setup_current_user/was-called-incorrectly/
Pascal.
I’ve also set it up so adding a button AND plugin for “code” are hooked in, but still no luck.
Good idea to try some other plugins/buttons to try and debug this…
ok, so as far as I can work out.
If you are staying with 4.4 then implement the following
open wp-includes/post.php, scroll to about line 4300 to find function get_page_uri( $page )
In that function replace
if ( 'publish' === $parent->post_status ) {
with
if ( ! in_array( $parent->post_status, get_post_stati( array( 'internal' => true ) ) ) ){
If you revert to 4.3.x, then the upgrade will have altered the database, so you need to go into each forum and toggle visibility public/private status , saving in between. So if private, toggle to public and save and then toggle back and save again. If public, do the reverse.
Not sure of you need to do that if you stay with 4.4
Should all be fixed in 4.4.1.
If anyone thinks different, please come back – would be good to have a single definitive post saying what users should do
If anyone has different exper
hmmm, can you try
function fx_tinymce_paste_plain_text( $plugins = array() ) {
array_push($plugins,"paste","code");
print_r($plugins);
return $plugins;
}
Pascal.
I’m trying to create a php script to check if each bbpress topic is newer than certain date, so if its true, subscribe the author of that topic to that forum (I only have 1 bbpress forum so there is no need to check the id of that forum).
This is the code at this point:
<?php
$args = array(
'post_type' => 'topic',
);
$post = get_posts( $args );
$compare_date = strtotime( "2015-07-14" );
foreach($post->ID as $topic){
$post_date = strtotime( $post->post_date );
$post_author_id = get_post_field( 'post_author', $topic );
if ( $compare_date < $post_date ) {
bbp_add_user_forum_subscription($post_author_id ,1687);
}
}
?>
where 1687 is the id of the forum i want them to suscribe.
Any idea why is not working?
Thanks 🙂
Thank you for the response. I tried that as well, since I’m adding the “paste” plugin with the following code (with an array print for debugging):
add_filter( 'bbp_get_tiny_mce_plugins', 'fx_tinymce_paste_plain_text' );
function fx_tinymce_paste_plain_text( $plugins = array() ) {
$plugins[] = 'paste';
$plugins[] = 'code';
print_r($plugins);
return $plugins;
}
But what I get is the following — no buttons. (you can see the $plugins array contents):

If I remove the “$plugins[] = code;” line — I get the buttons back:

I’m not seeing any errors in php.log — so I must be doing something wrong. I’m curious if it is because a code button can’t be there without the dropdown menu. Or maybe I need to show the quicktags part of the visual editor