Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 201 through 225 (of 11,508 total)
  • Author
    Search Results
  • #236932
    Robin W
    Moderator

    you’re close !!

    Untested, but try

    add_filter('bbp_topic_admin_links', 'rew_no_trash_topic_except_own', 10, 2);
    add_filter('bbp_reply_admin_links', 'rew_no_trash_reply_except_own', 10, 2);
    
    function rew_no_trash_topic_except_own ($links, $topic_id) {
        if (!bbp_is_user_keymaster() && get_current_user_id() != bbp_get_topic_author_id( $topic_id )) {
    			unset($links['trash']);
    		} 
    	
        return $links;
    }
    
    function rew_no_trash_reply_except_own ($links, $reply_id) {
        if (!bbp_is_user_keymaster() && get_current_user_id() != bbp_get_reply_author_id( $reply_id )) {
    			unset($links['trash']);
    		} 
    	
        return $links;
    }
    #236931
    enkoes
    Participant

    Today tried testing this very ‘rough’ piece of code, failed hopelessly with my very limited knowledge of coding:

    add_filter('bbp_topic_admin_links', 'rew_no_trash_except_own', 10, 2);
    add_filter('bbp_reply_admin_links', 'rew_no_trash_except_own', 10, 2);
    
    function rew_no_trash_except_own ($links, $topic_id) {
        if (!bbp_is_user_keymaster() && !bbp_is_topic_author(get_current_user_id(), $topic_id)) {
            unset($links['trash']);
        }
        return $links;
    }

    I think the direction is somewhat correct. Hope to get expert guide on this issue.

    Regards.

    #236924
    Robin W
    Moderator

    hmmm… that’s interesting, I fully believe you, but am struggling to see why it should either slow the site or cause other issues.

    I would suggest you undo the content-search.php change you made above and see if that affects anything.

    Beyond that, If that doesn’t work, also deactivate all plugins apart from bbpress and elementor plugin and my elementor fix and see if this sppeeds it up. 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

    #236898

    In reply to: Is bbpress dead?

    Robin W
    Moderator

    I am just a moderator here, and not a bbpress author.

    The authors tend to release updates every few years, rather than more frequently.

    My personal view is that you should consider bbpress to be a ‘mature’ product, ie any releases will be to fix issues rather than add functionality.

    bbpress is written really well, and has loads of hooks. There are no show stopper bugs in it, it may throw a few deprecation notices (and these are very few at the moment), but WordPress recommends that you should not show error messages in live sites.

    I currently have my test site running WordPress 6.3 and php 8.1 with no issues.

    The only major issue with bbpress at the moment is that it does not work well with FSE themes.

    However my bbp style pack plugin has fixes for this

    bbp style pack

    as well as block versions of the widgets and a ton of styling and functionality add-ons.

    All plugins are subject to the authors commitment, and bbpress is no different.

    The main WordPress support forums use bbpress, and it would be mega work to move those over to some other product.

    But with open software you make your choices….

    #236749
    Robin W
    Moderator

    on holiday at the moment, so untested solution !!

    But try

    add_filter( 'bbp_topic_admin_links' , 'rew_no_close', 10 , 1) ;
    
    function rew_no_close ($r) {
    	if (!bbp_is_user_keymaster() && bbp_is_topic_open()) {
    		unset ($r['close']) ;
    	}
    return $r ;
    }

    This should ensure that only keymasters can close topics (assumes moderators have no backend access)

    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

    #236632
    itsmifred
    Participant

    Yes Robin, this is working.

    So : I tried again you first add and it is working fine !

    the html space code is still visible in TEXTE mode but not in the email.

    I am very sorry because of still in the TEXTE mode visible I didn’t even tried first time to send a test subject and make you loosing time !

    thank you for your perseverance and kindness.

    I tried on the staging clone but I am going to use it on the production one. Thanks again.

    Fred

    #236629
    Robin W
    Moderator

    ok, just tried that in my test site and the code above seems to work.

    1. can you give me a exactly what you have put into your functions file, with a few lines above and below

    2. are you using any other bbpress related plugins?

    3. are you using any mail related plugins?

    #236609
    Robin W
    Moderator

    ok, not sure how to help further, maybe try

    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

    #236594
    enkoes
    Participant

    Thanks for the code! I tested and it basically works well.


    @ph59
    if you found not working, try change
    ('12345,34567,78945')
    to
    ('12345','34567','78945')

    Regards.

    #236592
    Robin W
    Moderator

    If the tests above proved nothing, then I can only suggest you have some form of corruption on either database or more likely software.

    But can you confirm that this does not happen every time, and if so how often (eg 1 in 3 posts, 1 in 10, 1 in 100)?

    Are you able to clone your site?

    #236573
    Robin W
    Moderator

    ok, again untested but this

    add_filter ('bbp_topic_admin_links' , 'surpress_moderator_links', 10 , 2) ;
    add_filter ('bbp_reply_admin_links' , 'surpress_moderator_links', 10 , 2) ;
    
    function surpress_moderator_links ($links , $id) {
    	
    	if (bbp_is_topic( $id)) $forum = bbp_get_topic_forum_id( $id ) ;
    	if (bbp_is_reply( $id)) $forum = bbp_get_reply_forum_id( $id) ;
    	if (!in_array($forum, array ('12345','34567','78945'))) return $links ;
    	//if user is moderator but not a keymaster...
    	$user_id = wp_get_current_user()->ID ;
    	if (bbp_is_user_keymaster($user_id)) return $links ;
    	if (current_user_can( 'moderate')) {
    		//check if the topic/reply is posted by another moderator, and if so unset the links
    		if (bbp_is_topic( $id)) $author_id = bbp_get_topic_author_id( $id ) ;
    		if (bbp_is_reply( $id)) $author_id = bbp_get_reply_author_id( $id ) ;
    		if (bbp_get_user_role( $author_id)  == 'bbp_moderator') {
    			 unset ( $links ['approve'] );
    			 unset ( $links ['spam'] );
    			 unset ( $links ['trash'] );
    			 unset ( $links ['move'] );
    			 unset ( $links ['split'] );
    			 unset ( $links ['edit'] );
    			 unset ( $links ['move'] );
    			unset ( $links ['merge'] );
    			unset ( $links ['close'] );
    			unset ( $links ['stick'] );
    		
    		}
    	}
    return $links ;
    }

    just change ‘array (‘12345′,’34567′,’78945′))’ to have a list of the forum ID’s you want to check against

    #236567
    Robin W
    Moderator

    maybe …not one the bbpress authors allowed for 🙂

    anyway, totally untested as I need to be doing other things, but this might do it
    revised code below

    of course if moderators are allowed into the backend, then this becomes pointless, but I would argue that only admins should be backend access 🙂

    #236556
    Robin W
    Moderator

    probably – maybe set up a test moderator and try

    Robin W
    Moderator

    hmmmm… not sure it would be that, as bbpress is loading ok.

    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

    Ronny Kreuzberg
    Participant

    Hello, i am using this code Part to show latest Topics in certain Forums. It is giving the correct Topic ids but wont show them except of original Language even if i opened it in a different language first.

    <section class=”topics”>

    <div id=”bbpress-forums” class=”bbpress-wrapper”>

    <h3><?php echo __(‘Recent Topics’, ‘WordPress’); ?></h3>

    <?php

    $topic_parents = array();

    foreach ($match_parent_ids as $match_parent_id) {

    $match_ids = get_children(array(
    ‘post_parent’ => $match_parent_id,
    ‘post_type’ => ‘forum’,
    ‘fields’ => ‘ids’,
    ));

    foreach ($match_ids as $match_id) {

    $topic_ids = get_children(array(
    ‘post_parent’ => $match_id,
    ‘post_type’ => ‘topic’,
    ‘fields’ =>’ids’,
    ));

    foreach ($topic_ids as $topic_id) {
    echo $topic_id;
    }

    $topic_parents = array_merge($topic_parents, $topic_ids);

    }

    }

    $args3 = array(
    ‘post__in’ => $topic_parents,
    ‘post_type’ => ‘topic’,
    ‘post_status’ => bbp_get_public_status_id(),
    ‘posts_per_page’ => 10,
    ‘orderby’ => ‘freshness’,
    ‘order’ => ‘DESC’,
    );

    if (bbp_has_topics($args3)) :

    bbp_get_template_part(‘loop’, ‘topics’);

    else :

    bbp_get_template_part( ‘feedback’, ‘no-topics’ );

    endif;?>

    </div>

    </section>

    Thanks for helping

    #236489
    ibnat
    Participant

    I am testing the WPMobile app plugin and am finding it pretty hard going to be honest. It does now seem obligatory to have this as 80 percent of my visitors are now on mobile and hardly anyone goes home and turns on the desktop anymore.

    Has anyone here used this plugin? I would love to see some examples of any BBPress forums using it.

    Thanks in advance

    #236482
    fearless359
    Participant

    There is a css setting, if-no-js, that is setting display none before the button bar. This stops the button bar to no display. How do I cause the “no js” test to be false to allow the button bar to display?

    #236427
    Darryl
    Participant

    Hey Robin, while the best answer would have been “There’s a new fancy version about to be released” 🙂 I truly appreciate your response.
    You make a lot of sense.
    I’m setting up a test site right now and I’m going to try bbPress again with your plugin.
    thanks bud.

    #236419
    Robin W
    Moderator

    I am just a moderator here, and not a bbpress author.

    The authors tend to release updates every few years, rather than more frequently.

    My personal view is that you should consider bbpress to be a ‘mature’ product, ie any releases will be to fix issues rather than add functionality.

    bbpress is written really well, and has loads of hooks. There are no show stopper bugs in it, it may throw a few deprecation notices (and these are very few at the moment), but WordPress recommends that you should not show error messages in live sites.

    I currently have my test site running 8.1 with no issues.

    The only major issue with bbpress at the moment is that it does not work well with FSE themes.

    However my bbp style pack plugin has fixes for this

    bbp style pack

    as well as block versions of the widgets and a ton of styling and functionality add-ons.

    All plugins are subject to the authors commitment so other options offer the same amount of certainty.

    The main WordPress support forums use bbpress, and it would be mega work to move those over to some other product.

    But yes, with open software you make your choices….

    #236416
    Darryl
    Participant

    I’m looking at the latest update being over 2 years ago, maybe one of the example sites listed are even running WP at all.

    Is bbPress still a viable solution for a WP forum?

    #236365
    nathan13
    Participant

    Reply*test

    #236354

    In reply to: Is bbPress alive?

    Robin W
    Moderator

    I am just a moderator here, and not a bbpress author.

    The authors tend to release updates every few years, rather than more frequently.

    My personal view is that you should consider bbpress to be a ‘mature’ product, ie any releases will be to fix issues rather than add functionality.

    bbpress is written really well, and has loads of hooks. There are no show stopper bugs in it, it may throw a few deprecation notices (and these are very few at the moment), but WordPress recommends that you should not show error messages in live sites.

    I currently have my test site running 8.1 with no issues.

    The only major issue with bbpress at the moment is that it does not work well with FSE themes.

    However my bbp style pack plugin has fixes for this

    bbp style pack

    as well as block versions of the widgets and a ton of styling and functionality add-ons.

    All plugins are subject to the authors commitment, and I would not count on ANY plugin having a 10 year support timescale, so other options offer the same amount of certainty.

    As @terresquall says the main WordPress support forums use bbpress, and it would be mega work to move those over to some other product.

    But yes, with open software you make your choices….

    tronn
    Participant

    which latest releases?

    I’ve tried both from here https://bbpress.org/download/

    In the meantime I have switched from Elementor to Avada (largest WP template), same issue. The index is fine but viewing a forum or topic the root dir setup is gone, i.e. forum stretches the entire content area and no sidebar or containers.

    Since the bbPress install was 9 years ago also used the tools to reset everything.

    The problem appears to be that bbPress (or the latest WordPress 6.2.2) is not considering the root dir setup.

    May be related https://core.trac.wordpress.org/ticket/58366

    Robin W
    Moderator

    which latest releases?

    tronn
    Participant

    With the latest releases when navigating to a forum (not the forum index), any Elementor code is gone. Same when using just a sidebar or blocks.

    I found an old advice here https://kriesi.at/support/topic/bbpres-no-sidebar-in-topics/ but unclear where the mentioned sidebar.php is located (perhaps theme specific).

      Other things I’ve tried

    • Configured to use the same forum slug (forum, no root)
    • Disabled the main theme, use the latest WordPress default theme.
    • Disabled a redirection add-on.
Viewing 25 results - 201 through 225 (of 11,508 total)
Skip to toolbar