• Resolved tamritz

    (@tamritz)


    I have a site set up to allow user sto register via a BP Invite Code. When I go to the page “register,” there are comments from all badge submissions and user profile avatars.

    Is there a setting to block this content from showing up to folks who are not logged into the site?

    Best,
    Sarah

    https://www.ads-software.com/plugins/badgeos/

Viewing 11 replies - 16 through 26 (of 26 total)
  • Thread Starter tamritz

    (@tamritz)

    Got it. Works great for both pages. Thanks so much, Michael.

    Hi

    I’m getting a similar problem, my register page is showing all site comments, despite saying ‘no comments yet’ on the page (comments are unchecked in the options for that page).

    Do I just add the code above to my page.php file somewhere?

    I’m using mesocolumn as my theme if that matters..

    Thanks in advance, this has been driving me nuts for months!

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    More or less sallysqueak. You need to determine what template is being used to display your register page, and do the same thing as above around the comments_template() function call there.

    Thanks for getting back to me, I’m using mesocolumn, and the lady there told me to edit;

    <?php comments_template(); ?>
    to
    <?php if ( comments_open() ) { comments_template(); } ?>

    But this doesn’t seem to have made any difference.

    All this code really confuses me ?? I don’t suppose you can enlighten my simple mind as to which code to use could you? Pretty please! ??

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    If you pastebin the page.php or whichever template you got your line above from, I can make the quick edit for you. It’s going to be the same edit I made for tamritz above.

    Ok, thanks so much ??

    Never used pastebin before, so hope this works! This is the current content of the page.php file

    <script src=”https://pastebin.com/embed_js.php?i=iTvvJTfB”></script&gt;

    Struggling with pastebin, does this work?

    <?php get_header(); ?>
    
    <?php do_action( 'bp_before_content' ); ?>
    <!-- CONTENT START -->
    <div class="content">
    <div class="content-inner">
    
    <?php do_action( 'bp_before_blog_home' ); ?>
    
    <!-- POST ENTRY END -->
    <div id="post-entry">
    <section class="post-entry-inner">
    
    <?php if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?>
    
    <!-- POST START -->
    <article <?php post_class('post-single page-single'); ?> id="post-<?php the_ID(); ?>">
    
    <h1 class="post-title entry-title"><?php the_title(); ?></h1>
    <?php get_template_part( 'lib/templates/post-meta' ); ?>
    
    <?php do_action( 'bp_before_page_content' ); ?>
    <div class="post-content">
    <div class="entry-content"><?php the_content( __('...more &raquo;',TEMPLATE_DOMAIN) ); ?></div>
    <?php wp_link_pages('before=<div id="page-links">&after=</div>'); ?>
    </div>
    <?php do_action( 'bp_after_page_content' ); ?>
    
    </article>
    <!-- POST END -->
    
    <?php endwhile; ?>
    
    <?php if ( comments_open() ) { comments_template(); } ?>
    
    <?php else : ?>
    
    <?php get_template_part( 'lib/templates/result' ); ?>
    
    <?php endif; ?>
    
    </section>
    </div>
    <!-- POST ENTRY END -->
    
    <?php do_action( 'bp_after_blog_home' ); ?>
    
    </div><!-- CONTENT INNER END -->
    </div><!-- CONTENT END -->
    
    <?php do_action( 'bp_after_content' ); ?>
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>
    Michael Beckwith

    (@tw2113)

    The BenchPresser

    Sorry for the long delay sallysqueak.

    Try this out:

    <?php get_header(); ?>
    
    <?php do_action( 'bp_before_content' ); ?>
    <!-- CONTENT START -->
    <div class="content">
    <div class="content-inner">
    
    <?php do_action( 'bp_before_blog_home' ); ?>
    
    <!-- POST ENTRY END -->
    <div id="post-entry">
    <section class="post-entry-inner">
    
    <?php if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?>
    
    <!-- POST START -->
    <article <?php post_class('post-single page-single'); ?> id="post-<?php the_ID(); ?>">
    
    <h1 class="post-title entry-title"><?php the_title(); ?></h1>
    <?php get_template_part( 'lib/templates/post-meta' ); ?>
    
    <?php do_action( 'bp_before_page_content' ); ?>
    <div class="post-content">
    <div class="entry-content"><?php the_content( __('...more &raquo;',TEMPLATE_DOMAIN) ); ?></div>
    <?php wp_link_pages('before=<div id="page-links">&after=</div>'); ?>
    </div>
    <?php do_action( 'bp_after_page_content' ); ?>
    
    </article>
    <!-- POST END -->
    
    <?php endwhile; ?>
    
    <?php if ( ! bp_is_register_page() && ! bp_is_activation_page() ) : ?>
    	<?php if ( comments_open() ) { comments_template(); } ?>
    <?php endif; ?>
    
    <?php else : ?>
    
    <?php get_template_part( 'lib/templates/result' ); ?>
    
    <?php endif; ?>
    
    </section>
    </div>
    <!-- POST ENTRY END -->
    
    <?php do_action( 'bp_after_blog_home' ); ?>
    
    </div><!-- CONTENT INNER END -->
    </div><!-- CONTENT END -->
    
    <?php do_action( 'bp_after_content' ); ?>
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

    Hopefully that works out wonderfully, if not already solved since my last reply.

    Thread Starter tamritz

    (@tamritz)

    Hi, there. This problem is reappearing on a different site of mine on the “Members” page. The funny thing is that this site is set up exactly like the other one from above, same template and plugins and all.

    Basically, administrator comments from approving badgework are appearing on the students’ “Members” page publicly below the listing of the members.

    Suggestions?
    Thanks.

    Thread Starter tamritz

    (@tamritz)

    Ps. Comments are not turned on.

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    Tamritz is this thread by you, https://www.ads-software.com/support/topic/comments-appearing-on-members-page?replies=1, about the same issue? If yes, I’ll just reply there.

Viewing 11 replies - 16 through 26 (of 26 total)
  • The topic ‘Comments Appearing on Register Page’ is closed to new replies.