Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 2,676 through 2,700 (of 14,293 total)
  • In reply to: Similar topics bbpress

    @robin-w

    Moderator

    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

    In reply to: Similar topics bbpress

    @robin-w

    Moderator

    add_action( 'bbp_template_after_single_topic', 'rew_other_topics' );

    In reply to: Similar topics bbpress

    @robin-w

    Moderator

    but latest 5 if you have style pack installed would be

    add_action( 'bbp_template_after_replies_loop', 'rew_other_topics' );
    
    function rew_other_topics () {
    	 $topic_id = bbp_get_topic_id() ;
    	 $forum_id = bbp_get_topic_forum_id($topic_id) ;
    		echo do_shortcode("[bsp-display-topic-index show='5' forum =".$forum_id." template = 'list']") ;
    }

    though this would show the topic again if it were in the latest 5!

    In reply to: Similar topics bbpress

    @robin-w

    Moderator

    Is there a way to show similar topics at the end of a topic ?

    where – after the reply forum or before?

    similar topics

    The issue here would be to define how similar topics are identified?

    @robin-w

    Moderator

    bbpress just uses the .body font from the wp-content.css file.

    You could style it using

    .mce-content-body p {
    	font-size: 25px;
    }

    but this will not save to the post, it will just be what is shown in the form

    @robin-w

    Moderator

    ok, you suspect the theme, but need to prove that, so standard fault finding applies ie

    it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentytwenty, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    Then come back

    @robin-w

    Moderator

    form-topic.php and form-reply.php

    @robin-w

    Moderator

    loop-single-topic.php

    @robin-w

    Moderator
    add_action( 'bbp_theme_after_topic_started_by' , 'rew_add_date' ); 
    
    function rew_add_date () {
    	echo ' on ' ;
    	bbp_topic_post_date() ;
    }

    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

    @robin-w

    Moderator

    dashboard>settings>discussion>comment moderation

    @robin-w

    Moderator

    🙂

    @robin-w

    Moderator
    add_filter(  'gettext',  'rew_bbpress_translate', 20 , 3  );
    
    function rew_bbpress_translate( $translated, $text, $domain ) {
    	if ($domain == 'bbpress') {
         $words = array(
                            
                            'Forums' => 'Forum'						
                 );
         $translated = str_replace(  array_keys($words),  $words,  $translated );
    	}
         return $translated;
    }

    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

    @robin-w

    Moderator

    No restriction in forum size – this site uses bbpress with 130,000 odd topics. Server capability is of course key to any response time.

    Bbpress just uses wordpress login, so you will need to look at how that is done with wordpress.

    @robin-w

    Moderator

    I can only suggest you try it, but in essence yes, bbpress has categories, forums, sub forums, topics and replies.

    @robin-w

    Moderator

    not sure that will help – as I stated in the fix, this is neither bbpress or elementor problem – just 2
    plugins that try and help wordpress but don’t totally work together.

    @robin-w

    Moderator

    the core of bbpress is stable enough that I suspect this version will hold for a good while yet.

    @robin-w

    Moderator

    I had the last version and have put it here

    bbpress moderation tools

    @robin-w

    Moderator

    hmmm… ok, not sure what else I can suggest, given that others found it worked

    @robin-w

    Moderator

    Does not help anything

    ok, for clarity can you confirm that the problem you have is the error in search functionality listed at the top of this thread?

    @robin-w

    Moderator

    ok so let’s try the standard fault finding

    it could be a theme or plugin issue

    Plugins

    deactivate all plugins apart from bbpress and my fix plugin and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    Then come back

    @robin-w

    Moderator

    so presume you have the hello theme?

    @robin-w

    Moderator

    so have you tried

    add_filter ('bbp_topic_tag_tax_id' , 'rew_return_null') ;
    
    function rew_return_null () {
    return 0 ;
    }

    or

    add_filter ('bbp_topic_tag_tax_id' , 'rew_return_null') ;
    
    function rew_return_null () {
    return false ;
    }

    or indeed

    add_filter ('bbp_topic_tag_tax_id' , 'rew_return_null') ;
    
    function rew_return_null () {
    return 'hello' ;
    }

    it would appear to be a known issue

    https://pluginus.net/support/topic/first-filter-disappears-when-set/

    otherwise suggest you raise with woof

    @robin-w

    Moderator

    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

    @robin-w

    Moderator

    Do you do custom code?

    yes

    @robin-w

    Moderator

    a function is beyond free help – sorry

Viewing 25 replies - 2,676 through 2,700 (of 14,293 total)