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
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.
#bbpress-forums
is the ID for forums – suggest you ask here on how to hide breadcrumb
https://wordpress.org/support/plugin/breadcrumb-navxt/
Put this in your child theme’s function file –
ie wp-content/themes/%your-theme-name%/functions.php
where %your-theme-name% is the name of your theme
or use
Code Snippets
add_filter('bbp_has_replies_query', 'rew_modify_replies_query');
function rew_modify_replies_query($bbp_r) {
$bbp_r['order'] = 'DESC';
return $bbp_r;
}
add_filter('bbp_show_lead_topic', 'rew_show_lead_topic');
function rew_show_lead_topic () {
return true ;
}
bbp style pack
once activated go to
dashboard>settings>bbp style pack>topic order
I would like to know how to make bbpress show the username on the posts instead of the Users First and Last name.
Wordpress 5.5 with bbpress 2.6.5
if you want anyone to be able to register for the forums, yes you do, and if you do then yes anyone can register, wordpress and bbpress use the same userdatabase.
Otherwise, you are looking at a manual registration system, which is quite easy to do, just use one of the many form plugins available – contact form 7 (and add the flamingo plugin) is very popular, and add users.
or if it is bots registering, use one of the many anti bot plugins available eg captcha to prevent bots registering.
Does the “anyone Can Register” option in WordPress Settings need to be enabled/checked in order for someone to sign up for the forums on my site? I have been leaving that enabled but now I have like 10,000 subscribers on my site! If people can register for the Forums without my having to enable that, it would help.
Thanks!
topics can be ‘sticky’ or ‘super-sticky’
sticky posts go at the top of their forum
Super sticky posts go at the top of every forum
sounds like your topics are becoming super sticky
you can look at these in then backend
dashboard>topics>edit topics and select topic > topic attributes on top right hand side> Type
they can also be set in front end
where in the topic they show in admin as
stick (to front)
if you click the ‘stick’ then it is sticky, if you click the ‘(to front)’ it becomes super-sticky which is very easy to do by mistake.
on relationships, bbpress uses wordpress ‘post-parent’
so a reply has a post parent of the topic it belongs to
a topic has a post parent of the forum it belongs to
and a forum has a post parent of a forum if it is a sub forum, or a category if it belongs to a category
These relationships are also stored in the post_meta table
details on ‘children’ are not kept – for instance displaying topics is done by a function called bbp_has_topics which selects topics where the post_parent is the forum concerned. bbp_has_relies has a similar serach for replies where the post_parent is the topic concerned.
Hi @fl3xtra,
If I understand correctly the problem you’re having, it’s a bug:
https://bbpress.trac.wordpress.org/ticket/3356
I’ve tried this patch on one of my sites and it appears to work. Bear in mind that I am NOT an expert on this.
Here’s the thread where I found out about the patch:
Several questions regarding freshness
if you have not got it already, you might also consider installing
bbPress – Moderation Tools
whilst it is old it still works, and tells the user that their post is being held, so that they don’t keep trying to repost it
This report already exists in the bbpress track.
7 months ago I posted this bug.
https://bbpress.trac.wordpress.org/ticket/3311
sorry, that’s how it works, and how all plugins that I have known use custom fields work. As far as I can see that’s how it worked under 2.5.x – no code change I can see.
I’m just a user who helps out here, so if you really feel strongly about it, I suggest you log a bug at
https://bbpress.trac.wordpress.org/
if you update to bbp-style-pack 4.5.9 and then
Put this in your child theme’s function file –
ie wp-content/themes/%your-theme-name%/functions.php
where %your-theme-name% is the name of your theme
or use
Code Snippets
add_action ('bsp_form_topic_login' , 'rew_redirect' ) ;
add_action ('bsp_form_reply_login' , 'rew_redirect' ) ;
function rew_redirect () {
if ( ! is_user_logged_in() ) {
echo '<ul><li><a href="http://www.mysite.com/login">Click here to log in</a></li></ul>' ;
}
}
amending the url to what you want, and amend the text as well if you want to
Then how do I make it when the user clicks “log in” on the text: “You must log in to create a new topic” he redirected to my login page, not login deafult wordpress?
Hello,
I have 0 knowledge about making website and such… but please help!
I want to make it like this –
1. Forum name clicked
2. Goes to Single Forum Layout page with corresponding forum ID (Edited with Elementor).
3. When posted Topic is clicked, It’ll show the post, reply threads and reply form.
–
I’m using Elementor’s bbpress widget and has bbp Style Pack (My WordPress theme is twenty-ninteen).
First, I made a page with Forum Index, and created a Forum. I created a Forum from WordPress dashboard “Forum”.
Second, When I click this Title of the Forum, it takes me to a WordPress Theme without “Edit with Elementor” gives me Content missing error. I’m having a trouble with this too, it seems like I have to add: the_content (); code or <?php the_content(); ?> on somewhere in the Theme Edit on dashboard. None of the Google search matched what I see on my css and php code list.
Third, I created 3 different sub-pages to Forum Index page to put in Elementor’s Bbpress widget, changed layout to Single Forum and input ID of the forum that I found from the Dashboard’s Forum section.
Problem is here, I can’t connect when the Forum name is clicked, direct to the Single Forum page.
I noticed that Breadcrumb of the Single Forum page is Home > Forums > Forum > Videos.
“Home” is Home, I don’t have a page name “Forums”-where is this coming from?
The name of the page with Bbpress widget (Forum Index) is “Forum”.
From seeing this error, It seems like I have to edit directly onto the Dashboard’s Forums section. but with these Forum page I don’t have access to Edit with Elementor.
–
I appreciate anyone’s suggestions and help! If you need any more information or need to clarify anything, please let me know.
Thank you.
the bbpress displays are built using templates.
I’d start with looking at this
bbp style pack
which will let you do many things.
to put your stats at the bottom, you’d need to look at creating a page for your forums and using
[bbp-forum-index]
then you can use gutenburg blocks or whatever editor you have to add the stats widget at the bottom
this may be what you need to change the default template
bbPress WP Tweaks
given that you don’t understand code, then the best I can offer is to remove the bbpress login from the topic and reply forms.
This can be done by installing
bbp style pack
once activated go to
dashboard>settings>bbp style pack>Topic/Reply Form and activate item 15
sorry, bbpress uses the standard wordpress login api, so it is code if you want to do something different