Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 3,351 through 3,375 (of 14,333 total)
  • In reply to: legend translation

    @robin-w

    Moderator

    by the way, what is the name of the other plugin?

    In reply to: legend translation

    @robin-w

    Moderator

    sorry, just re-read this properly, and you are falling between 2 stools. It is not a bbpress issue, bbpress uses translations to display the correct names in languages. That the other plugin developer has decided not to is not really a bbpress issue.

    @robin-w

    Moderator

    🙂

    @robin-w

    Moderator

    yes, you’ll need to look at the urls for topics replies and profiles, and search results, as well as other stuff that I can’t remember offhand – I spent many many hours writing the private groups plugin to catch issues and don’t have a list of them.

    @robin-w

    Moderator

    dashboard>users>all users>edit user

    and change

    Display name publicly as

    @robin-w

    Moderator

    start with

    bbp style pack

    @robin-w

    Moderator

    your triple === means that is has to match type (eg string or integer) as well as value, hence why

    if(bbp_forum_id() === '513')

    didn’t work, as the forum id is an integer and by havng quotes round the number you are asking it to be a string

    in your solution

    <?php if(bbp_get_forum_id() === $forum_id = 513): ?>

    would be better as

    <?php if(bbp_get_forum_id() === 513): ?>

    or better still

    <?php if(bbp_get_forum_id() == 513): ?>

    as unless you are using the $forum_id variable elsewhere (when it probbaly needs to be declared as a global) then the $forum_id = is redundant

    but glad you fixed it

    @robin-w

    Moderator

    sorry, untested code, go with

    if ($forum_id == ‘12345’) {

    @robin-w

    Moderator

    ok, but there are lots of ways non members can see content beyond a prefix of /forums/ so it depends if you are after a deterrent or a lock !!

    @robin-w

    Moderator

    @robin-w

    Moderator

    have you been to

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

    and looked at item 3?

    @robin-w

    Moderator

    if you are using the ‘hello’ theme, then this plugin helps

    Hello Elementor bbPress fix

    @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 !!

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