Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 951 through 975 (of 13,959 total)
  • @robin-w

    Moderator

    ok, let me look further

    @robin-w

    Moderator

    yes that looks right.

    Has it done anything ?

    @robin-w

    Moderator

    bbpress uses custom post types, so forum, topic and replies will be in the posts table

    @robin-w

    Moderator

    ok, for the moment, I’d suggest you add the code snippets plugin, that gives you an area to put it in.

    That will let us test to get to a problem definition.

    Once we know if this (or something else) is the solution, then we can get it into the right place, but I would prefer to be sure that the code is functioning so code snippets gives that certainty

    @robin-w

    Moderator

    as a test, let’s stop it adding the forum role on registration to see if that is interfering.

    so use this code

    add_action ('plugins_loaded' , 'rew_remove_bbp_role') ;
    
    function rew_remove_bbp_role () {
    	remove_action( 'bbp_user_register',   'bbp_user_add_role_on_register', 10, 1 );
    }

    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

    and then let me know if this makes a difference

    @robin-w

    Moderator

    ok, but it is the equivalent of asking me to diagnose the strange sound of your car by sending me a photo of the engine. A link lets me see what code is being sent to the browser.

    Topics are typically greyed when they are closed – what state is this topic, and have you tried creating others to see if it is juts this one, or all topics are doing it?

    In reply to: Prevent topic replies

    @robin-w

    Moderator

    great – glad we got there !!

    @robin-w

    Moderator

    great – glad we got there !!

    @robin-w

    Moderator

    ok, both those links work for me

    In reply to: Prevent topic replies

    @robin-w

    Moderator

    and with this one try

    content-single-topic.php

    and remove the line

    <?php bbp_get_template_part( 'form', 'reply' ); ?>

    @robin-w

    Moderator

    ok, not quite sure why, but in that case

    find
    wp-content/plugins/bbpress/templates/default/bbpress/content-single-forum.php

    transfer this to your pc and edit

    take out the line

    <?php bbp_get_template_part( 'form', 'topic' ); ?>

    which is in twice, so remove 2 times

    and save

    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/content-single-forum.php

    bbPress will now use this template instead of the original

    In reply to: Prevent topic replies

    @robin-w

    Moderator

    find
    wp-content/plugins/bbpress/templates/default/bbpress/form-reply.php

    transfer this to your pc and edit

    make the file read

    <?php
    
    /**
     * New/Edit reply
     *
     * @package bbPress
     * @subpackage Theme
     */
    
    // Exit if accessed directly
    defined( 'ABSPATH' ) || exit;

    and save

    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/form-reply.php

    bbPress will now use this template instead of the original

    @robin-w

    Moderator

    find
    wp-content/plugins/bbpress/templates/default/bbpress/form-topic.php

    transfer this to your pc and edit

    make the file read

    <?php
    
    /**
     * New/Edit Topic
     *
     * @package bbPress
     * @subpackage Theme
     */
    
    // Exit if accessed directly
    defined( 'ABSPATH' ) || exit;
    
    if ( ! bbp_is_single_forum() ) : ?>
    
    <div id="bbpress-forums" class="bbpress-wrapper">
    
    	
    
    </div>
    
    <?php endif;

    and save

    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/form-topic.php

    bbPress will now use this template instead of the original

    In reply to: a user login problem

    @robin-w

    Moderator

    thanks,

    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

    you might also try

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>login failures

    In reply to: a user login problem

    @robin-w

    Moderator

    always been like this?

    Just started doing this?

    @robin-w

    Moderator

    glad to have helped !

    In reply to: Is bbpress dead?

    @robin-w

    Moderator

    @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;
    }

    @robin-w

    Moderator

    sorry, just spotted that you’d already switched themes.

    Can I have a link to a live example plaese

    @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

    @robin-w

    Moderator

    so in

    dashboard>settings>bbp private groups>Group name settings – set up groups called ‘members’ and ‘author’

    then in

    dashboard>forums>edit forum – set each forum to be assigned to whichever group you want it to be visible to, and set the forum to be public (private groups will then hide it)

    then in

    dashboard>settings>bbp private groups>assign groups to roles – set authors to see the author group and members to see the member group

    @robin-w

    Moderator

    ah, ok add this plugin which should fix it

    Hello theme Elementor bbPress template fix

    @robin-w

    Moderator

    My private groups plugin lets you

    create groups
    assign forums to those groups
    assign roles to the groups

    thus giving you what you want.

    Private groups

    @robin-w

    Moderator

    what theme are you using?

    In reply to: advanced editor?

    @robin-w

    Moderator

    glad to have helped 🙂

Viewing 25 replies - 951 through 975 (of 13,959 total)