I can open https://airat.biz/forums/ after delete [] in /plugins/bbpress/includes/forums/functions.php on lines 1800, 1818, 1832
Old: $post_stati[]
New: $post_stati
And line 1854:
Old: $meta_query[]
New: $meta_query
Can you check it out?
I think this issue with php7 support
Now i have a warning:
[Thu Mar 02 20:46:15.572617 2017] [php7:warn] [pid 23849] [client ip] PHP Warning: array_unique() expects parameter 1 to be array, null given in /site_path/wp-content/plugins/bbpress/includes/forums/functions.php on line 1836
I have the same problem.
I can’t open page https://airat.biz/forums/ and https://airat.biz/wp-admin/edit.php?post_type=forum
Error 500
I saved Permalinks, reinstalled plugin, but pages still don’t working.
bbPress tools also don’t help
/wp-admin/tools.php?page=bbp-repair
Error log:
[Thu Mar 02 20:33:57.235075 2017] [php7:error] [pid 16265] [client ip] PHP Fatal error: Uncaught Error: [] operator not supported for strings in /site_path/wp-content/plugins/bbpress/includes/forums/functions.php:1800\nStack trace:\n#0 /site_path/wp-includes/class-wp-hook.php(298): bbp_pre_get_posts_normalize_forum_visibility(Object(WP_Query))\n#1 /site_path/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array)\n#2 /site_path/wp-includes/plugin.php(515): WP_Hook->do_action(Array)\n#3 /site_path/wp-includes/class-wp-query.php(1681): do_action_ref_array('pre_get_posts', Array)\n#4 /site_path/wp-includes/class-wp-query.php(3238): WP_Query->get_posts()\n#5 /site_path/wp-includes/class-wp.php(617): WP_Query->query(Array)\n#6 /site_path/wp-includes/class-wp.php(735): WP->query_posts()\n#7 /site_path/wp-includes/functions.php(955): WP->main('')\n#8 /home/a in /site_path/wp-content/plugins/bbpress/includes/forums/functions.php on line 1800
bbPress 2.5.12
BuddyPress 2.8.1
WordPress 4.7.2
PHP 7.1.2-3+deb.sury.org~xenial+1
I am not sure I understand what it is you are asking
wp-query is a wordpress function
https://codex.wordpress.org/Class_Reference/WP_Query
In loop-replies.php, I want to change WP_Query.
But ‘bbp_repliesisbbpress()->reply_query->have_posts();` ,so I don’t know how to change some of WP_Query.
Please someone teach me how to.
Wordpress version 4.7.2
bbPress version 2.5.12
try this – it should work but is untested
Please come back and let us know if it does or doesn’t
add_filter ('kal_get_user_role_map()' , 'bbp_get_user_role_map()' ) ;
function kal_get_user_role_map() {
// Get the default role once here
$default_role = bbp_get_default_role();
return (array) apply_filters( 'kal_get_user_role_map', array (
'administrator' => bbp_get_keymaster_role(),
'editor' => $default_role,
'author' => bbp_get_spectator_role(),
'contributor' => $default_role,
'subscriber' => $default_role
) );
}
This goes in your function file
I simply want to edit the wording in the (Pale Blue), fields in the ‘Edit Profile’ section. an example: to change “Your password should be at least ten characters long. Use upper and lower case letters, numbers, and symbols to make it even stronger.” to “eight characters long”. Also the (Pale Blue), name field is empty, just a ‘period’. Where is the code/file located? I’ve searched high and low!?
WP 4.7.2 bbpres 2.5.12 newsite.hampsteadbowmen.com
Any help will be very much appreciated.
Hi bbPress,
From the edit page, I used this shortcode [bbp-forum-index].
Then set full template with no sidebars and from the bottom sidebar I chosen NONE. The page still showing the sidebar?
The main question is, is there anyway making NOT to show the sidebar on the page?
Please advise help, thanks
Hi Dominik,
It’s great that you’re digging around the code to figure out what functions to use! Can you describe a bit about what you’d like to accomplish? Once we know the end result, we can help you work towards it, step by step.
Use the bbp_get_user_role_map filter, to map WordPress roles to bbPress roles.
Hi,
I use Private status to protect some forums and I would like to have a login page instead of 404 on private posts because it’s very inconvenient for people who have subscribed to a topic and click on the link to read new replies, to see a 404 if they are not logged in. (bbPress Private groups doesn’t work for this too.)
I tried a lot of things, but I was never able to catch status of topic’s forum with a single function.
bbp_is_forum_private doesn’t work here (there’s no ID).
get_queried_object() is empty.
I can have topic slug ($wp_query->query['topic']) but strangely, get_page_by_path doesn’t work.
Finaly, I have to make a SQL request to find ID and post_parent (so, forum) from slug, then use bbp_is_forum_private (to post_parent because it doesn’t work witk ID and ancestor)! It’s a little bit… heavy.
Do you have a best method?
Same error here, this happens because of this code
$post_stati = $posts_query->get( 'post_status' );
// Default to public status
if ( empty( $post_stati ) ) {
$post_stati[] = bbp_get_public_status_id();
in \includes\forums\functions.php on line 1800
Hi there,
while waiting for the github by @casiepa to be updated, I managed to take some time to (partially) clean what I had written so far.
I published it on a repo, just in case anybody were interested in taking a look and opening a discussion about desirable ways to approach the problem and to structure the code.
Here it is:
https://github.com/mapofemergence/BB-REST
cheers,
s t e
Hey guys,
I have set up my bbpress forum, create a page for it with the name forum, in the description box, I added some description, and featured image for the page. I also added some forums to get started with, but when I share my forum page on social networks, which is https://mydomain.org/forums/ it does not display any featured image, not even the one I added at the page. And again, the description it displayed is that of a forum I created.
Please, how do I force the page to display the featured image and the description I added to it when shared on social networks.
Hello,
I need one extra Field where I can put “New Message” with this function:
<a href="<?php echo fep_query_url('newmessage', array('to' => USER ) ); ?>">Send Message</a>
CAn anybody help me how and where I must out it in, please.
Thank you
It’s nice to see some activity in this thread.
Having to choose between dynamic reply forms (our reply.js) and a modern input method (TinyMCE) in 2017 just doesn’t seem right.
I’ve tried to research potential solutions, but the code is a bit over my head.
It’s known that the TinyMCE editor doesn’t like being moved around the DOM. Has anyone tried removing it, then re-adding it?
A couple people in this thread said that worked for them.
Hello from Germany 🙂
I have an WordPress Role called “Autor”. This Role are on my Site “Premium User” and “Abonnents” are Standard User. Capabilyties for the bbpress are the same. Now I want to under the names in the Forum who is a Premium User and who is a standard User.
The bbPress Role for both is “participants” so the differents are only in the WordPress Role.
With this Code I can change the name, but only for participants…
##Name ändern Participant in User Standard User
function my_custom_roles( $role, $user_id ) {
if( $role == ‘Participants’ )
return ‘Standard User’;
return $role;
Hope anybody understand 🙂 me and can help me
regards
I have the same problem. Double quotes are converted into " and saved in the DB in this way.
If, for example, I create a post using the WordPress admin panel,
its columns ‘post_content’ and ‘post_title’ in the table ‘wp_posts’ are saved like this:
"Post title" and "Post content"
If I create a topic on a BBPress topic page, its data saved in the DB like this:
"Topic title" and "Topic content"
So the issue mentioned by @jakubmarian is not resolved yet 🙁
How can we please resolve it?
Hi Robin !
LOL !
I talk too much, but as I want to give as many detail as possible…
Your code is working for the pages of the site.
Your code is NOT working for ALL the forum pages of the site
Your code is applied for all the pages, that’s it takes almost 100% of the page, but site pages are not concerned by my problem.
Your code doesn’t make any difference when applied to the forum pages.
I was just adding in my previous post that I have the same problem for my second issue with the background gradient that is not applied either, unless the code is not correct, but I don’t think so !
Thinking about all this yesterday, I’ve got the feeling that in fact, what is desperately keeping void corresponds to the place that should be occupied by the sidebar, even though I told you that I have no sidebar on all the site pages as well as the forum pages.
But there’s a section dedicated to its management in this new theme and version of WordPress 4.7.2 !
I removed all the widgets initially present in this sidebar but maybe the code keeps holding the place !?
It’s as if this part of the code keeps applying in the end, prevailing on the child theme css code !
Hope this is clear now ! 😉
Regards,
Philippe
Alright, when I block links with: remove_filter( ‘bbp_get_reply_content’, ‘bbp_make_clickable’, 4 );remove_filter( ‘bbp_get_topic_content’, ‘bbp_make_clickable’, 4 );
it seems to work BUT admins can’t post links either even with the code you have sent me.
Secondly, the links doesn’t work wich is good BUT site that doesn’t provide a “www” can still be clickable so when someone type:” https://bbpress.org ” this link is clickable and both admins and user can do that, and if you type: “www.google.ca” then both admins and user can do that and it WONT be clickable.
I would like the admins to be able to send link, AND be able to block non www links too.
Thanks you.
Yes,
If your remember, I have a page dedicated to Members and protected by a password (with or without it doesn’t make any difference either, of course), and the 3 following pages on the which I simply pasted the relevant short codes:
– “Forum” which is the default bbpress root page, I simply added a shortcode for the connection widget thanks to a plugin otherwise I couldn’t have done it on this specific page (but my VM doesn’t have it and again it makes no difference)
– “Registration”
– “Reset password”
Regards,
Philippe
ok, try
$user_id = wp_get_current_user()->ID;
if ( !bbp_is_user_keymaster($user_id )) {
remove_filter( 'bbp_get_reply_content', 'bbp_make_clickable', 4 );
remove_filter( 'bbp_get_topic_content', 'bbp_make_clickable', 4 );
}
Your code for the page width is still working on ALL pages as expected, therefore the CSS is bieng applied, BUT the code doesn’t apply to the “page.php” template used by the forums !
Do you have a page set up for forums? ier one that is using [bbp-forum-index] ?
no one can post links, wich is good, but the code : !bbp_is_user_keymaster, did not let keymaster be able to do so.
oh and by the way, bbpress links still works on my forum wich is normal I suppose?
Hello Robin,
Yep, always, and this is a copy of the original one where I just changed as advised in one of the forums I mentioned previously, to change the DIV that way :
<div class=”wrap page-full-width“>
<div id=”primary” class=”content-area-wide“>
<main id=”main” class=”site-main” role=”main”>
Actually, both child theme folders (the real site and my VM) contains those files :
– bbpress.php
– functions.php
– page-full-width.php
– screenshot.jpg
– style.css
This latter currently contains only your code as well as the code for background gradient as the page-full-width does the job for the page width, I mean, only for the site pages except forum ones !
The rest is similar.
Regards,
Philippe