Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 1,126 through 1,150 (of 14,141 total)
  • @robin-w

    Moderator

    Now I have to edit the file

    ok so you have already put :

    function rkk_widgets_init() {
     
        register_sidebar( array(
            'name' => __( 'bbPress Sidebar', 'rkk' ),
            'id' => 'bbp-sidebar',
            'description' => __( 'A sidebar that only appears on bbPress pages', 'rkk' ),
            'before_widget' => '<aside id="%1$s" class="widget %2$s">',
            'after_widget' => '</aside>',
            'before_title' => '<h3 class="widget-title">',
            'after_title' => '</h3>',
        ) );
        }
     
    add_action( 'widgets_init', 'rkk_widgets_init' );

    into your child theme functions file – yes ?

    and then did this

    I chose the left-sidebar-page.php of my theme, copied it into my child theme and replaced <?php get_sidebar(); ?> with <?php dynamic_sidebar( ‘bbp-sidebar’); ?>. Because I read this in another topic of a theme salient user.

    which replaces the second part of 26, as you have chosen the left-sidebar rather than just sidebar

    yes ?

    so what exactly are you stuck on?

    @robin-w

    Moderator

    Without specific access to your site, this will let you set where breadcrumbs go :

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>Breadcrumbs

    In reply to: Problem adding table

    @robin-w

    Moderator

    if you posted a reply, I didn’t get it

    @robin-w

    Moderator

    bbpress works with smtp as far as I know, so it may be that the sending address is not liked by something in the email system.

    If you are using the professional version, then enable logs to see if messages are leaving the site.

    If you are not using the professional version of SMTP, install the ‘check and log email’ plugin which does much the same.

    finally, try changing the sending email address using

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>Subscription Emails

    and change the sending email to a real one.

    In reply to: Problem adding table

    @robin-w

    Moderator

    I would need a link to a live example to see what is being downloaded to the browser

    @robin-w

    Moderator

    Not sure this is achievable. The backend is meant for management. That you couldn’t get ACF to work is driving you down a path for which bbpress was never intended.

    I think that to see the topic and replies on the backend needs the ability to ‘edit_others_topics’ or the ability to ‘moderate’ – maybe both.

    @robin-w

    Moderator

    Can you ask this question in wp forms support, as this is a paid plugin I have no access to it to see what it is doing.

    @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;
    }
Viewing 25 replies - 1,126 through 1,150 (of 14,141 total)