Skip to:
Content
Pages
Categories
Search
Top
Bottom

Few issues with BBpress installation


  • boriskamp1991
    Participant

    @boriskamp1991

    Hi guys!

    First of all! thanks for this amazing plugin! I’m really excited to use it!

    I have installed BBpress along with Buddypress.
    Now I would like someone to take a look if everything is ok? I have no idea if everything is ok, for example, I am missing the breadcrumbs for the forum, maybe I am missing more.
    Here is my forum

    Also, is it possible to get all the topic pages, forum pages (basically all pages that are related to the forum) on a custom page? Like I did with the http://www.militaryscalemodelling.com/forum/ page?

    Thanks!

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

  • Robin W
    Moderator

    @robin-w

    Apart from breadcrumbs, the rest seems to be working fine.

    Suspect breadcrumbs is related to the theme you are using. Try a default theme and see if they appear. If they do, then you will either need to send some time resolving, or just ignore that you don’t get them.

    Sorry, but I don’t quite understand your second questions “Also, is it possible to get all the topic pages, forum pages (basically all pages that are related to the forum) on a custom page?” as the link take you back to the same page as your first link, so I canlt see what you want differently. Come back with further info, and I’ll try to help you.


    boriskamp1991
    Participant

    @boriskamp1991

    Thank you for your reply Robin!

    Glad to know that! I would really like the breadcrumbs, I will try to contact the theme developer to ask them about the breadcrumbs. Normally they should appear without setting something up?

    By

    “Also, is it possible to get all the topic pages, forum pages (basically all pages that are related to the forum) on a custom page?”

    I mean:
    I setup a custom page to be the /forum page, like this one: http://www.militaryscalemodelling.com/forum/
    I like this because I can create the layout myself.
    Is this also possible with the other forum and topics pages? like these pages:

    http://www.militaryscalemodelling.com/forums/forum/armor/

    http://www.militaryscalemodelling.com/forums/topic/135-d9r-bulldozer-build-log/

    As you can see, the layout of the above two links is different from the first mentioned link.
    Do you understand me?

    Thanks for trying to help!


    boriskamp1991
    Participant

    @boriskamp1991

    Why are my links not shows in my reply???
    *edit, now they are, thats wierd


    Robin W
    Moderator

    @robin-w

    ok think I understand now. If you make a copy of your custom page template eg. page.php file and rename it to bbPress.php then all your bbPress pages should use this template.


    boriskamp1991
    Participant

    @boriskamp1991

    Ok,thanks for that!

    I need to add this code somewhere:

    <div class="breadcrumbs">
        <?php if(function_exists('bcn_display'))
        {
            bcn_display();
        }?>
    </div>

    It is for displaying the breadcrumbs.
    When I add it to header.php in my theme, the breadcrumbs appear on allll my pages. I dont want that, I want them ONLY on forum related pages, how can I achieve this?


    Robin W
    Moderator

    @robin-w

    Think it’s as simple as

    is_bbpress()

    so try

    <div class="breadcrumbs">
        if(function_exists('bcn_display') && is_bbpress())
    {
    bcn_display();
    }</div>
    
    

    Haven’t checked the syntax, I’ll let you do that


    boriskamp1991
    Participant

    @boriskamp1991

    Thanks for that!
    it gives an unexpected syntax error when I try to load my website.
    here is my header.php code
    any idea?

    <?php if ( ! isset( $_SESSION ) ) session_start(); ?>
    <!DOCTYPE html>
    <!--[if IE 6]>
    <html id="ie6" <?php language_attributes(); ?>>
    <![endif]-->
    <!--[if IE 7]>
    <html id="ie7" <?php language_attributes(); ?>>
    <![endif]-->
    <!--[if IE 8]>
    <html id="ie8" <?php language_attributes(); ?>>
    <![endif]-->
    <!--[if !(IE 6) | !(IE 7) | !(IE 8)  ]><!-->
    <html <?php language_attributes(); ?>>
    <!--<![endif]-->
    <head>
    	<meta charset="<?php bloginfo( 'charset' ); ?>" />
    	<title><?php elegant_titles(); ?></title>
    	<?php elegant_description(); ?>
    	<?php elegant_keywords(); ?>
    	<?php elegant_canonical(); ?>
    
    	<?php do_action( 'et_head_meta' ); ?>
    
    	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
    	<?php $template_directory_uri = get_template_directory_uri(); ?>
    	<!--[if lt IE 9]>
    	<script src="<?php echo esc_url( $template_directory_uri . '/js/html5.js"' ); ?>" type="text/javascript"></script>
    	<![endif]-->
    
    	<script type="text/javascript">
    		document.documentElement.className = 'js';
    	</script>
    
    	<?php wp_head(); ?>
    </head>
    <body <?php body_class(); ?>>
    	<header id="main-header">
    		<div class="container clearfix">
    		<?php
    			$logo = ( $user_logo = et_get_option( 'divi_logo' ) ) && '' != $user_logo
    				? $user_logo
    				: $template_directory_uri . '/images/logo.png';
    		?>
    			<a href="<?php echo esc_url( home_url( '/' ) ); ?>">
    				<img src="<?php echo esc_attr( $logo ); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>" id="logo" />
    			</a>
    
    			<div id="et-top-navigation">
    				<nav id="top-menu-nav">
    				<?php
    					$menuClass = 'nav';
    					if ( 'on' == et_get_option( 'divi_disable_toptier' ) ) $menuClass .= ' et_disable_top_tier';
    					$primaryNav = '';
    
    					$primaryNav = wp_nav_menu( array( 'theme_location' => 'primary-menu', 'container' => '', 'fallback_cb' => '', 'menu_class' => $menuClass, 'menu_id' => 'top-menu', 'echo' => false ) );
    
    					if ( '' == $primaryNav ) :
    				?>
    					<ul id="top-menu" class="<?php echo esc_attr( $menuClass ); ?>">
    						<?php if ( 'on' == et_get_option( 'divi_home_link' ) ) { ?>
    							<li <?php if ( is_home() ) echo( 'class="current_page_item"' ); ?>><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php esc_html_e( 'Home', 'Divi' ); ?></a></li>
    						<?php }; ?>
    
    						<?php show_page_menu( $menuClass, false, false ); ?>
    						<?php show_categories_menu( $menuClass, false ); ?>
    					</ul>
    				<?php
    					else :
    						echo( $primaryNav );
    					endif;
    				?>
    				</nav>
    
    				<div id="et_top_search">
    					<span id="et_search_icon"></span>
    					<form role="search" method="get" class="et-search-form et-hidden" action="<?php echo esc_url( home_url( '/' ) ); ?>">
    					<?php
    						printf( '<input type="search" class="et-search-field" placeholder="%1$s" value="%2$s" name="s" title="%3$s" />',
    							esc_attr_x( 'Search &hellip;', 'placeholder', 'Divi' ),
    							get_search_query(),
    							esc_attr_x( 'Search for:', 'label', 'Divi' )
    						);
    					?>
    					</form>
    				</div>
    
    				<?php do_action( 'et_header_top' ); ?>
    			</div> <!-- #et-top-navigation -->
    		</div> <!-- .container -->
    		<?php if(! is_front_page()) { 
    }?>
    	</header> <!-- #main-header -->

    Thanks!

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

You must be logged in to reply to this topic.