that line allows the result to be filtered
so this should work
add_filter ('bbp_topic_tag_tax_id' , '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
Thanks for the info! Do you do custom code?
We are using akismet but it isn’t very effective. It is only catching a small percentage of the reply spam.
Hello,
I found a bug when using bbrpess
and WOOF (Woocommerce Product Filter)
. Indeed, when bbpress
is activated, when you want to filter products by category
, the WOOF’s widget disappears. With a lot of tests on multiples websites, I found this bug comes from bbpess.php
class on setup_variables()
function when the attribute topic_tag_tax_id
gets apply_filters( 'bbp_topic_tag_tax_id', 'topic-tag' )
value. When you comment this line, the bug is solve.
As I don’t need tags on my Forum, I just need to set $this->topic_tag_tax_id = 0
and hide Topic tags form.
But Here is my final problem : How can I overwrite this class because it’s not a template but the plugin file ?
PS : I tried every possibilities (plugins versions, select another theme, change product database, catch network and files errors), the bug really comes from here as strange as it may seem.
Cheers,
TomCrise
none of this testd, but the actual adding of an image to the post would be something like
add_action('bbp_template_before_single_topic', 'pym_print_featured_image_single_forum', 11);
function pym_print_featured_image_single_forum() {
if (has_post_thumbnail()) {
echo '<div class="pym-bbp-topic-thumbnail">';
echo get_the_post_thumbnail(null, 'thumbnail' );
echo '</div>';
}
}
adding featured topic to the backend would be something like
add_post_type_support('topic', array('thumbnail'));
Code could be written to allow the user to add an image, but that’s a chunk of work !!
1. is doable, but would require custom code beyond free help
2. hmmm… that’s kinda how I do this on this site, but I only have a dozen or so each day. Are you using askimet to help reduce spam?
3. again would depend on what format the list is in, but beyond free hep as site specific.
if you need paid help, contact me via
Contact me
not sure how this is related to bbpress.
I suspect you will need to set something in your theme
dashboard>appearance>customise
this custom css might help if you can’t find where to set the width
#wrapper.boxed #theme-header, #wrapper.boxed .breaking-news, #wrapper.boxed #main-content {
width: 1200px !important;
}
Hello guys. Technically I’m not very good at web stuff. I opened a wordpress based website. I have a licensed “Sahifa” theme. Everything is fine on the site, but my site is very “thin” on desktop platforms. There is no adjustment in the page settings for this. Especially when accessing from high-resolution monitors, the left and right sides of the site are blank. I hope I was able to explain. There is a css code etc about that. is there?
Thanks 🙂
My site: https://www.turkishvibe.com
In the database, I am able to grab all ranks with the following query:
select distinct rank_title from wp_badgeos_ranks
In addition, I also need the criteria for each rank (i.e. Rank Junior is triggered when user posts 10 times, or Rank Senior is triggered when user reaches 5000 points, etc)
Thank you in advance!
Hi ecollart,
you must put in your function.php in your theme folder
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('/fr/', '/', $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 );
and you must modify inside the folder topic of your bbpres plugin the file template.php
from
// Pretty permalinks, previously usedbbp_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 );
}
to
// Pretty permalinks, previously usedbbp_use_pretty_urls()
// https://bbpress.trac.wordpress.org/ticket/3054
if ( false === strpos( $topic_link, ‘?’ ) && strpos($topic_link, ‘/fr/’) == false && strpos($topic_link, ‘/en/’) == 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 );
}
Bye Renzo
Hello,
Sorry for the delay but I finally I tried your add_moderator_by_id and it seems to work but I cannot test mail notification for the moment and I can’t see the moderator added on the forum list.
But I need to say that in that list, the “-” displayed in moderator column is not there for those I tested with your code…
I will do more test probably next week…
Eric Collart
Hi,
I found that the bbpress index is not shown in a Divi page made with the theme builder. While the forums work fine, the index is not. I can insert the shortcode [bbp-forum-index] into the page, but then only the index is shown and nothing else.
After some writing back and forth with ET, I found that a not-given design shows the forum and the index as it should (besides a sidebar that CSS could delete), but the page – of course – is not in the design of the other pages.
Is there another way to implement the forum into a page design? Any ideas?
Every response is highly appreciated!
Best regards
Hi
I am using this plugin and it works well
I have just one problem about links
the same problem as this user : https://wordpress.org/support/topic/links-in-signature-do-not-work/
and i also tried in bbcode but it doesnt convert to a link
but i would prefer html as most users are used to html
of course a visual editor would be great, is that possible ?
Tx a lot !
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