Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 3,351 through 3,375 (of 14,323 total)
  • @robin-w

    Moderator

    I am very unclear as to what you are trying to achieve.

    if you want one forum say forum id 12345 to display differently, then just amend content-single-forum to

    <?php
    $forum_id = bbp_forum_id() ; 
    if $forum_id = '12345' {
    ?>
    
    <div id="bbpress-forums" class="bbpress-wrapper">
    
    	<?php bbp_breadcrumb(); ?>
    
    	<?php bbp_forum_subscription_link(); ?>
    
    	<?php do_action( 'bbp_template_before_single_forum' ); ?>
    
    	<?php if ( post_password_required() ) : ?>
    
    		<?php bbp_get_template_part( 'form', 'protected' ); ?>
    
    	<?php else : ?>
    
    		<?php bbp_single_forum_description(); ?>
    
    		<?php if ( bbp_has_forums() ) : ?>
    
    			<?php bbp_get_template_part( 'loop', 'forums' ); ?>
    
    		<?php endif; ?>
    
    		<?php if ( ! bbp_is_forum_category() && bbp_has_topics() ) : ?>
    
    			<?php bbp_get_template_part( 'pagination', 'topics'    ); ?>
    
    			<?php bbp_get_template_part( 'loop',       'topics'    ); ?>
    
    			<?php bbp_get_template_part( 'pagination', 'topics'    ); ?>
    
    			<?php bbp_get_template_part( 'form',       'topic'     ); ?>
    
    		<?php elseif ( ! bbp_is_forum_category() ) : ?>
    
    			<?php bbp_get_template_part( 'feedback',   'no-topics' ); ?>
    
    			<?php bbp_get_template_part( 'form',       'topic'     ); ?>
    
    		<?php endif; ?>
    
    	<?php endif; ?>
    
    	<?php do_action( 'bbp_template_after_single_forum' ); ?>
    
    </div>
    <?php
    }
    else {
    ?>
    <div id="bbpress-forums" class="bbpress-wrapper">
    
    	<?php bbp_breadcrumb(); ?>
    
    	<?php bbp_forum_subscription_link(); ?>
    
    	<?php do_action( 'bbp_template_before_single_forum' ); ?>
    
    	<?php if ( post_password_required() ) : ?>
    
    		<?php bbp_get_template_part( 'form', 'protected' ); ?>
    
    	<?php else : ?>
    
    		<?php bbp_single_forum_description(); ?>
    
    		<?php if ( bbp_has_forums() ) : ?>
    
    			<?php bbp_get_template_part( 'loop', 'forums' ); ?>
    
    		<?php endif; ?>
    
    		<?php if ( ! bbp_is_forum_category() && bbp_has_topics() ) : ?>
    
    			<?php bbp_get_template_part( 'pagination', 'topics'    ); ?>
    
    			<?php bbp_get_template_part( 'loop',       'topics'    ); ?>
    
    			<?php bbp_get_template_part( 'pagination', 'topics'    ); ?>
    
    			<?php bbp_get_template_part( 'form',       'topic'     ); ?>
    
    		<?php elseif ( ! bbp_is_forum_category() ) : ?>
    
    			<?php bbp_get_template_part( 'feedback',   'no-topics' ); ?>
    
    			<?php bbp_get_template_part( 'form',       'topic'     ); ?>
    
    		<?php endif; ?>
    
    	<?php endif; ?>
    
    	<?php do_action( 'bbp_template_after_single_forum' ); ?>
    
    </div>
    <?php } ?>

    and change whichever display you want

    @robin-w

    Moderator

    great – glad you are fixed

    In reply to: Topic Sidebar

    @robin-w

    Moderator

    you could try method 2 in this

    Step by step guide to setting up a bbPress forum – Part 1

    it might work, it might not 🙂

    In reply to: Topic Sidebar

    @robin-w

    Moderator

    ok, that’s a paid theme, so I can’t look at it.

    I’d suggest you raise the issue with their support and see what they say

    In reply to: Topic Sidebar

    @robin-w

    Moderator

    this will be theme related, what theme are you using?

    @robin-w

    Moderator

    method 2 is picking up on the page template file in your theme, this is theme dependant.

    If you can give us a link to a live example of method 1, and a non bbpress page in your site that has borders, I’ll try and help further.

    @robin-w

    Moderator

    This whilst old still works well

    bbPress – Moderation Tools

    @robin-w

    Moderator

    ok, the line

    echo esc_html__( 'You must be logged in to create new topics.', 'bbpress' ) . ' <a href="' . esc_url( thim_get_login_page_url() ) . '">' . esc_html__( 'Login here', 'bbpress' ) . '</a>';

    is doing the Login Here

    This line chooses the location from a setting in your theme thim_get_login_page_url()

    so I suspect it is as simple as changing that setting to the page you want it to say, so look at your theme settings

    If that doesn’t work, come back

    @robin-w

    Moderator

    can you have a look at your parent theme to see if it has a folder ‘bbpress’ with form-topic.php

    in it

    @robin-w

    Moderator

    ok, I’ll need a link to the live example to try and help further

    @robin-w

    Moderator

    from that list, looks like you are running wp-rocket, so you’ll need to clear all caches to get the change to take effect

    @robin-w

    Moderator

    ok, delete ALL of the contents of form-user-login.php and instead put

    <a href="https://mydomain.com/login/">Login here</a>

    and that’s what will show 🙂

    @robin-w

    Moderator

    ok, can you you confirm that you know how to FTP a file to your PC and back again ?

    That will save a lot of explaining !!

    @robin-w

    Moderator

    thanks for posting 🙂

    @robin-w

    Moderator

    I took a look at this, but cannot see what is causing the issue

    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

    login here came with 2.6.x

    bbpress has a template in

    \templates\default\bbpress\form-user-login.php

    you can change this to have a click link to any url you wish

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

    transfer this to your pc and edit

    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 amend this file to take out the current form and put in a link

    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-user-login.php

    bbPress will now use this template instead of the original

    @robin-w

    Moderator

    I took a look, it is theme related, but I cannot offer a fix.

    @robin-w

    Moderator

    As a test can you try not having the underscore eg customforum as a single word and see if that makes a difference.

    Also are you running buddypress as well ? (question not suggesting you should or shouldn’t !)

    In reply to: Feature

    @robin-w

    Moderator

    also have

    bbResolutions

    still works as far as I know

    @robin-w

    Moderator

    ok, I can not help unless I can see an example – iIneed to look at what is downloaded to my PC’s browser

    @robin-w

    Moderator

    This is theme related, but if you can give me a link to a live example, I might be able to give you some code

    @robin-w

    Moderator

    line 309 of includes/replies/functions calls a function calledbbp_check_for_duplicate within the bbp_new_reply_handler function

    That function checks for duplicates and is in includes/common/functions line 663

    within that function line 676 for a check

    if ( user_can( (int) $r['post_author'], 'throttle' ) ) {
    		return true;
    	}

    so allowing participants to throttle allows duplicates

    It is a bit of a fudge, but should work !!

    @robin-w

    Moderator

    the easiest way to do this is to allow participant to ‘throttle’ – this then lets them bypass this check

    so the code (untested) should be :

    add_filter( 'bbp_get_caps_for_role', 'rew_throttle_bypass', 10, 2);
    
    function rew_throttle_bypass ($caps, $role) {
    	if ($role == bbp_get_participant_role() ) {
    		$caps['throttle'] = true ;
    	}
    return $caps ;
    }

    ut 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

    there’s no problem with using priorities, especially as you know what it is affecting, just keep in mind that if you add a further bbpress content realted plugin and it doesn’t do what you want it might be related to this

    In reply to: Broken Pagination

    @robin-w

    Moderator

    try

    dashboard>settings>permalinks and just click save – this resets the links and may help

Viewing 25 replies - 3,351 through 3,375 (of 14,323 total)