Hi
Those 2 select are not necessary as you already have options to stick and status topics in the first post of each topic
here is the css :
/*HIDE TWO SELECT STICK AND STATUS BELOW FORM (ALREADY OPTION ON FIRST POST OF EACH TOPIC)*/
label[for=bbp_stick_topic] {
display: none!important;
}
select#bbp_stick_topic_select {
display: none!important;
}
label[for=bbp_topic_status] {
display: none!important;
}
select#bbp_topic_status_select {
display: none!important;
}
nit knowing what your ‘ecommerce theme profiles’ does code wise, I cannot guarantee, but suspect it should be ok, this plugin affects what is displayed, not how it looks
Hi Robin
This plugin has been closed from WordPress plugins on 11 february
Any other plugin to moderate topics ?
i was hoping that the feature for comments :
Before a comment appears
1) Before a comment appears Comment must be manually approved
2) Comment author must have a previously approved comment
would also work for bbpress
but i tested and it doesnt work…
Apparently only the 2 settings comment moderation blacklist are working :
– number of links
– stopwords
but the problem is there is no warning message showing if someone adds 2 links for instance and then submits, nothing tells him his post is pending moderation (same test for stop words)
Also the admin doesnt have any notification of pending post, no mail, nothing on dashboard, i had to go directly to admin topics to see the pending topics
Best moderation would be to always moderate the first post for any user, how could i do that ?
i just found this other moderation plugin that does exactly what im describing but it’s 8 years old without update, does it still work ?
Thanks a lot !
untested (as I am on holiday without test server access), but try
add_filter ('bbp_get_reply_author_link' , 'rew_return_null' ) ;
add_filter ('bbp_get_topic_author_link' , 'rew_return_null' ) ;
add_filter ('bbp_get_author_link' , 'rew_return_null' ) ;
function rew_return_null () {
return ;
}
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
sorry I’m just a bbpress user who helps out here and I have limited time to try stuff.
you could look at
https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum/ item 3 method 2
unless you want to learn coding, then another plugin is the only way. Using a plugin or putting the code in your theme functions file has exactly the same impact on performance – typically nothing that is noticeable other than by using a stopwatch !!
bbP Signature
Hi
How to show the number of posts just under the avatar on every messages ?
php function or shortcode in template ? (i would like to avoid a new plugin)
thank you 🙂
Hi
I noticed users have a bio in their profile settings
How can i show this bio as a signature at the end of all their messages ? (with clickable links)
what is the php (or shortcode) i can use on template file ?
thank you (i would like to avoid another plugin)
Hello, same problem, installed Template Library and Redux Framework Version 4.3.10 + bbpress, when opening the forum page in the role Participant i get an error:
Error thrown
Call to a member function get_users_for_object() on null
please help, how can i fix it?
to hide
#bbpress-forums fieldset.bbp-form label {
display: none;
}
put this in the custom css of your theme or the custom css of my style pack
Hi, I am working on a Forums site which uses bbpress, but the topics created doesnt show up in the forums, unless you run the repair tool from Admin Panel. Is there any way of doing it automatically, through code?
My idea is to run repair tool in CronJob, so I dont have to manually run the Repair tool every single time!
I finally fixed my forum with another workaround.
I change template.php in topics folder, from
// Pretty permalinks, previously used
bbp_use_pretty_urls()`
// https://bbpress.trac.wordpress.org/ticket/3054
if ( false === strpos( $topic_link, ‘?’ ) ) {
$url = trailingslashit( $topic_link ) . bbp_get_edit_slug();
$url = user_trailingslashit( $url );
// Unpretty permalinks
} else {
$url = add_query_arg( array(
bbp_get_topic_post_type() => $topic->post_name,
bbp_get_edit_rewrite_id() => ‘1’
), $topic_link );
}`
I disable permalinks for edit of the topic when It’s Italian
// Pretty permalinks, previously used
bbp_use_pretty_urls()`
// https://bbpress.trac.wordpress.org/ticket/3054
if ( false === strpos( $topic_link, ‘?’ ) && strpos($topic_link, ‘/it/’) == false ) {
$url = trailingslashit( $topic_link ) . bbp_get_edit_slug();
$url = user_trailingslashit( $url );
// Unpretty permalinks
} else {
$url = add_query_arg( array(
bbp_get_topic_post_type() => $topic->post_name,
bbp_get_edit_rewrite_id() => ‘1’
), $topic_link );
}`
I hope this helps.
You can check the behavior on http://www.mischianti.org
Bye Renzo
Hi again,
I did some progress.
With this code
function filter_pll_check_canonical_url( $redirect_url, $language ) {
if(strpos($redirect_url, '/edit/') !== false && strpos($redirect_url, '/forums/') !== false && strpos($redirect_url, '/reply/') !== false) {
$redirect_url = str_replace('/it/', '/', $redirect_url);
$redirect_url = str_replace('/en/', '/', $redirect_url);
}
return $redirect_url;
}
add_filter( 'pll_check_canonical_url', 'filter_pll_check_canonical_url', 10, 2 );
reply works correctly, but if I remove the “reply” filter I had an issue with topics, the forum ID of the Italian language is not present on the selection in editor.
The solution can be not to use “pretty” edit links like
http://localhost:82/it/forums/topic/moved-reply-to-prova-manipolazione-url/edit/
but the link in a query string, like when the topic isn’t approved.
http://localhost:82/it/?post_type=topic&p=18604&topic=moved-reply-to-prova-manipolazione-url&edit=1&view=all
there is a way to enable this kind of link as default for edit and the other topic action?
Thanks Renzo
@viridw,
I may misunderstand what you’re asking. But assuming you’re enabling the WP visual editor by doing something like this:
function bbp_enable_visual_editor( $args = array() ) {
$args['tinymce'] = true;
return $args;
}
add_filter('bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor');
I used to do that, but new WP releases seemed to break it in various ways. And there were other problems primarily with mobile devices. I decided it wasn’t worth the trouble and got rid of it.
Just sharing my experience. Your milage may vary 🙂
Add added the JS code and it helped.
I tried bbp style pack, but it’s too comprehensive and complex for my needs.
Thank you.
ok, so if my solution above does not work, your issue is site specific, so without visiting your site and an example I cannot give you code – in essence I can look at what the browser is receiving and see the correct code needed. You can contact me via my website
Contact me
and give me some access details, and I will try and help further.
However alternately if you know how to use FTP, you could try this
find
wp-content/plugins/bbpress/templates/default/bbpress/user-profile.php
transfer this to your pc and edit
you will see that line 16 says
<h2 class="entry-title">@<?php bbp_displayed_user_field( 'user_nicename' ); ?></h2>
delete this line and save
then create a directory on your theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpress
where %your-theme-name% is the name of your theme
Then transfer the file you saved above and put in in the directory called bbpress that you created above, so you end up with
wp-content/themes/%your-theme-name%/bbpress/loop-single-reply.php
bbPress will now use this template instead of the original
this is a known bug.
either
if( !function_exists( 'bbpress_browser_supports_js' ) ){
function bbpress_browser_supports_js() {
echo '<script>document.body.classList.remove("no-js");</script>';
}
add_action( 'wp_footer', 'bbpress_browser_supports_js' );
}
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
or
install
bbp style pack
which has the fix built in
Hi. Nice one! this is also my exact concern, I’m very thankful to see this in the forum. It is also a big help for me, I successfully fixed and corrected my codes. Thanks again.
it may be a load order issue, try
#bbpress-forums #bbp-user-wrapper h2.entry-title {
display: none !important;
}
I would like to add a title banner to all my forum pages so that it is consistent with the rest of the website.
This page is an example of what I would like it to look like – wbc1.otiscreative.co.uk/forum-home/ – this is created with Divi though with shortcodes which doesn’t work so this is just for visual representation.
So, I think I am after a way to inject this title banner into the forum pages, perhaps using the functions.php file, I am not entirely sure but would really appreciate some guidance on how to crack this.
This is my current forum layout – wbc1.otiscreative.co.uk/forums/
Thanks so much,
Ollie
PS. I am using latest version of WP and bbPress.
Hi there,
I hope someone can help. I have an issue with these two bbPress pages.
See here example: wbc1.otiscreative.co.uk/forums/users/ollie-tubb/
It picks up the divi default formatting rather than the structure of the other pages, see example here: wbc1.otiscreative.co.uk/advice/finance/
It needs to sit in the same style template but I don’t know how to do this. I am using Divi theme but i am using the bbPress default set-up (not shortcodes).
Help would be very much appreciated.
Many thanks,
Ollie
PS. I am using latest version of WP and bbPress.
The changelog page https://codex.bbpress.org/releases/ is not mentioning version 2.6.8 nor 2.6.9. and links to blog are not working.
Would be handy if that would be accurate.
The blog is ok though.
Thanks.
not in native bbpress, hence why I was asking how they were doing this – might be a buddypreess thing, or code added.