• Resolved BrdRecovery

    (@brdrecovery)


    I’m running the Simple WP Community Theme with Buddypress 1.6.4 on WordPress 3.5.1. Everything appears to be working fine but I need to know how to get content in the left column on my main index page. On all other pages, the page menu is used in that column but on the main index that column is blank. The nature of my site uses the main index as my home page and It would be great if I could find a way to insert content there.

    Everything I tried either moves the main content block down along with the content I code into the template, or both the main content block and the right sidebar move down.

    The site is https://cilcks.com

    the only difference I see in the insertion of content is the first few lines of code on each page.

    The main index (no content in left column) is:

    <?php get_header() ?>
    	<div id="content">
    
    		<div class="padder">
    
    		<?php do_action( 'bp_before_blog_home' ) ?>
    
    		<div class="page" id="blog-latest">
    
    			<?php if ( have_posts() ) : ?>
    
    				<?php while (have_posts()) : the_post(); ?>
    
    					<?php do_action( 'bp_before_blog_post' ) ?>
    
    					<div class="post" id="post-<?php the_ID(); ?>">
    
    						<div class="author-box">
    							<?php echo get_avatar( get_the_author_meta( 'user_email' ), '50' ); ?>
    							<p><?php printf( __( 'by %s', 'buddypress' ), bp_core_get_userlink( $post->post_author ) ) ?></p>
    						</div>
    
    						<div class="post-content">
    							<h2 class="posttitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e( 'Permanent Link to', 'buddypress' ) ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    
    							<p class="date"><?php the_time('F j, Y') ?> <em><?php _e( 'in', 'buddypress' ) ?> <?php the_category(', ') ?> <?php printf( __( 'by %s', 'buddypress' ), bp_core_get_userlink( $post->post_author ) ) ?></em></p>
    
    							<div class="entry">
    								<?php $sbExcerptLength=160; the_excerpt(); ?>
    							</div>
    							<?php $tags = get_the_tags(); if($tags)	{  ?>
    								<p class="postmetadata"><span class="tags"><?php the_tags( __( 'Tags: ', 'buddypress' ), ', ', '<br />'); ?></span> <span class="comments"><?php comments_popup_link( __( 'No Comments ?', 'buddypress' ), __( '1 Comment ?', 'buddypress' ), __( '% Comments ?', 'buddypress' ) ); ?></span></p>
    							<?php } else {?>
    								<p class="postmetadata"><span class="comments"><?php comments_popup_link( __( 'No Comments ?', 'buddypress' ), __( '1 Comment ?', 'buddypress' ), __( '% Comments ?', 'buddypress' ) ); ?></span></p>
    							<?php } ?>
    						</div>
    
    					</div>
    
    					<?php do_action( 'bp_after_blog_post' ) ?>
    
    				<?php endwhile; ?>
    
    				<div class="navigation">
    
    					<div class="alignleft"><?php next_posts_link( __( '← Previous Entries', 'buddypress' ) ) ?></div>
    					<div class="alignright"><?php previous_posts_link( __( 'Next Entries →', 'buddypress' ) ) ?></div>
    
    				</div>
    
    			<?php else : ?>
    
    				<h2 class="center"><?php _e( 'Not Found', 'buddypress' ) ?></h2>
    				<p class="center"><?php _e( 'Sorry, but you are looking for something that isn\'t here.', 'buddypress' ) ?></p>
    
    				<?php locate_template( array( 'searchform.php' ), true ) ?>
    
    			<?php endif; ?>
    		</div>
    
    		<?php do_action( 'bp_after_blog_home' ) ?>
    
    		</div><!-- .padder -->
    	</div><!-- #content -->
    	<?php locate_template( array( 'sidebar.php' ), true ) ?>
    
    <?php get_footer() ?>

    The Member main index (with content in the left column) is:

    <?php get_header() ?>
    
    	<div id="content">
    		<div class="padder">
    
    		<form action="" method="post" id="members-directory-form" class="dir-form">
    
    			<h3><?php _e( 'Members Directory', 'buddypress' ) ?></h3>
    
    			<?php do_action( 'bp_before_directory_members_content' ) ?>
    
    			<!--<div id="members-dir-search" class="dir-search">
    				<?php bp_directory_members_search_form() ?>
    			</div> #members-dir-search -->
    
    			<div class="item-list-tabs">
    				<ul>
    					<li class="selected" id="members-all"><a href="<?php bp_root_domain() ?>"><?php printf( __( 'All Members (%s)', 'buddypress' ), bp_get_total_member_count() ) ?></a></li>
    
    					<?php if ( is_user_logged_in() && function_exists( 'bp_get_total_friend_count' ) && bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
    						<li id="members-personal"><a href="<?php echo bp_loggedin_user_domain() . BP_FRIENDS_SLUG . '/my-friends/' ?>"><?php printf( __( 'My Friends (%s)', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ) ?></a></li>
    					<?php endif; ?>
    
    					<?php do_action( 'bp_members_directory_member_types' ) ?>
    
    					<li id="members-order-select" class="last filter">
    
    						<?php _e( 'Order By:', 'buddypress' ) ?>
    						<select>
    							<option value="active"><?php _e( 'Last Active', 'buddypress' ) ?></option>
    							<option value="newest"><?php _e( 'Newest Registered', 'buddypress' ) ?></option>
    
    							<?php if ( bp_is_active( 'xprofile' ) ) : ?>
    								<option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ) ?></option>
    							<?php endif; ?>
    
    							<?php do_action( 'bp_members_directory_order_options' ) ?>
    						</select>
    					</li>
    				</ul>
    			</div><!-- .item-list-tabs -->
    
    			<div id="members-dir-list" class="members dir-list">
    				<?php locate_template( array( 'members/members-loop.php' ), true ) ?>
    			</div><!-- #members-dir-list -->
    
    			<?php do_action( 'bp_directory_members_content' ) ?>
    
    			<?php wp_nonce_field( 'directory_members', '_wpnonce-member-filter' ) ?>
    
    			<?php do_action( 'bp_after_directory_members_content' ) ?>
    
    		</form><!-- #members-directory-form -->
    
    		</div><!-- .padder -->
    	</div><!-- #content -->
    
    	<?php locate_template( array( 'sidebar.php' ), true ) ?>
    
    <?php get_footer() ?>

    What can I do to get content in that left column?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter BrdRecovery

    (@brdrecovery)

    I resolved this issue

    Inasmuch as this topic has been resolved, there should be a warning that the site is NSFW – in case someone lands on this page from search results or tag, etc. OP was in BuddyPress forums earlier and posted the same link.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Simple WP Community Theme] NSFW!’ is closed to new replies.