Skip to:
Content
Pages
Categories
Search
Top
Bottom

Logged out users and Topics

Viewing 4 replies - 1 through 4 (of 4 total)

  • Robin W
    Moderator

    @robin-w

    This should be the default position ie not logged in can view, but only logged in reply.

    Check your forums (dashboard>forums) and pick any one of your forms to edit

    You should have :

    Visibility : Public on the top right hand side


    Peter
    Participant

    @pgmarco

    All the forums are set to public, but still can not read the topics when I click on them, could a plugin be causing this problem?


    Peter
    Participant

    @pgmarco

    I edited content-single-topic.php and removed the ‘<?php if ( bbp_show_lead_topic() ) : ?>
    <?php endif; ?>` The post shows up when I click on the topic, but now if I login and click a topic the post displays twice. I am also using a child theme so I wont break anything.

    What I had before:

    <?php if ( bbp_show_lead_topic() ) : ?>
    
    <?php bbp_get_template_part( 'content', 'single-topic-lead' ); ?>
    
    <?php endif; ?>

    Hope this helps


    Peter
    Participant

    @pgmarco

    I was able to fix this by using the following code:

    <?php if ( is_user_logged_in() ) { ?>
    
    <?php if ( bbp_show_lead_topic() ) : ?>
    		 
    <?php bbp_get_template_part( 'content', 'single-topic-lead' );	?>
                    			 
    <?php endif; ?>
    
    <?php } else { ?>
    					 
    <?php bbp_get_template_part( 'content', 'single-topic-lead' );	?>
                    			 		
    <?php } ?>
Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar