Hi there,
I am currently setting up a bbpress forum. This is why I post a view threads atm because I have questions. Hopefully, it’s not perceived as spam.
I know that this is not a bbpress issue, more of a wordpress thing in general. However, I guess that most bbpress developers/admins have solved this issue – therefore I ask it here.
I want to disable access to wordpress admin dashboard for all normal forum participants (role: subscriber/participant).
I have done some searching and found that it could be achieved through the following custom php.
disable wp-admin:
// redirect back to homepage and not allow access to wp backend for subscribers
function rkk_redirect_admin(){
if ( ! wp_doing_ajax() && ! current_user_can( 'edit_posts' ) ) {
wp_redirect( site_url() );
exit;
}
}
add_action( 'admin_init', 'rkk_redirect_admin' );
disable wp admin toolbar:
// disable wp toolbar on the frontend of website for subscribers
function rkk_disable_admin_bar() {
if( ! current_user_can('edit_posts') )
add_filter('show_admin_bar', '__return_false');
}
add_action( 'after_setup_theme', 'rkk_disable_admin_bar' );
I included that code in functions.php of childtheme. However, it does not seem to have an effect. Subscriber can still access wp-admin and can see the wp toolbar in the front end.
Anybody have a good solution for this? I don’t want to use an extra plugin for that.
thank you for helping. best regards, peter
Hi there,
I am currently setting up a bbpress forum. This is why I post a view threads atm because I have questions. Hopefully, it’s not perceived as spam
I noticed that new users are automatically assigned to the forum role administrator, eventhough automatic role assignment as forum admin for new users is not checked under settings > forum > user settings for forum.
Why is this? Am I missing something?
New users should just get the wordpress default role subscriber and forum role participant.
Hopefully you can help. best regards, peter
Hi Guys
I have just added my first plugin to the WordPress Plugin Directory:
Add AutoSave | Fullscreen to TinyMCE
I wonder if it can be added to the list here on the site (or maybe in bbp style pack list)?
If you have the TinyMCE toolbar activated in your bbPress forum then it should hopefully show the extra two toolbar icons as details in the description for the plugin.
It works for me – has done so for many months. I just decided to make it available to the community and updated it to use the officially supported TinyMCE as was released with WordPress 5.5.
I am no plugin guru by any means, if it it helps anyone then it will have served it’s purpose.
Have a good day.
Andrew
Hi,
I want to display a forum specific sidebar on all bbp pages. For this I include the desired widgets in design > widgets > Forum. The sidebar is correctly shown on many bbpress pages, but not all. For example the forum index page and the bbpress profile page (‘/forum/user-base/username/’) does not have the sidebar.
How can I have the sidebar (named ‘Forum’) display on those pages as well? I am looking for a little php function which I can include in the child theme functions.php. I am using the Enfold theme which generally seems to work very well with bbpress.
I had the same problem when I was experimenting with buddypress (I decided to not use buddypress though). To have the sidebar displayed on all buddypress pages we came up with the following working function:
//custom forum sidebar on buddypress pages
add_filter('avf_custom_sidebar','avf_custom_sidebar_mod');
function avf_custom_sidebar_mod($sidebar) {
if ( bp_current_component() ) {
$sidebar = "Forum";
}
return $sidebar;
}
Can this function be adjusted to work with bbpress? I thought maybe just change the if condition to if ( bbp_loaded() ). But it does not seem to work.
Any help would be greatly appreciated. Best regards, peter
Hi
I saw in my forum title it says “archive”
Why and how to get rid of it?
Thank you very much
I want image to be displayed in left of forum title. Any code that I can add to snippet?
I am trying since long to change colors but the change is not getting reflected to website. What should I do? I even tried doing other changes. It causing problem.
We are building a mobile app that connects to the bbPress forum on our site. We have been told that bbPress does not have its own API. Can WP REST API handle the following:
1) Create a new topic
2) Reply to a topic
3) pull out topics and replies by a specific user
4) pull out profile info of a user who created a topic or replied to a topic
5) subscribe / unsubscribe to a topic.
Are there any limitations?
Where can we find the documentation?
Thank you so much!
Jing
Whenever I activate bbpress on my site, my theme breaks…
This started happening with the WordPress 5.5 Upgrade yesterday.
If I deactivate the bbPress, then make my theme changes. Then reactivate it, all works. But I am not allowed to do ANY searchs in addplugins (Stalls) no deletes or theme page changes.
Hello,
I would like to select with CSS selector for BBpress forum pages to hide Breadcrumb NavXT.
Is there a CSS code ?
THanks for your help.