Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter jadin

    (@jadin)

    sorry my mistake, here’s the code below after fixing but now i’m getting 500 Internal Server Error.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    	<head profile="http://gmpg.org/xfn/11">
    		<meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ) ?>; charset=<?php bloginfo( 'charset' ) ?>" />
    		<title><?php wp_title( '|', true, 'right' ); bloginfo( 'name' ); ?></title>
    
    		<?php do_action( 'bp_head' ) ?>
    
    		<link rel="pingback" href="<?php bloginfo( 'pingback_url' ) ?>" />
    
    		<?php
    			if ( is_singular() && bp_is_blog_page() && get_option( 'thread_comments' ) )
    				wp_enqueue_script( 'comment-reply' );
    
    			wp_head();
    		?>
    	</head>
    
    	<body <?php body_class() ?> id="bp-default">
    
    		<?php do_action( 'bp_before_header' ) ?>
    
    		<div id="header">
    			<div id="search-bar" role="search">
    				<div class="padder">
    					<h1 id="logo" role="banner"><a href="<?php echo home_url(); ?>" title="<?php _ex( 'Home', 'Home page banner link title', 'buddypress' ); ?>"><?php bp_site_name(); ?></a></h1>
    
    						<form action="<?php echo bp_search_form_action() ?>" method="post" id="search-form">
    							<label for="search-terms" class="accessibly-hidden"><?php _e( 'Search for:', 'buddypress' ); ?></label>
    							<input type="text" id="search-terms" name="search-terms" value="<?php echo isset( $_REQUEST['s'] ) ? esc_attr( $_REQUEST['s'] ) : ''; ?>" />
    
    							<?php echo bp_search_form_type_select() ?>
    
    							<input type="submit" name="search-submit" id="search-submit" value="<?php _e( 'Search', 'buddypress' ) ?>" />
    
    							<?php wp_nonce_field( 'bp_search_form' ) ?>
    
    						</form><!-- #search-form -->
    
    				<?php do_action( 'bp_search_login_bar' ) ?>
    
    				</div><!-- .padder -->
    			</div><!-- #search-bar -->
    
    			<div id="navigation" role="navigation">
    				<?php wp_nav_menu( array( 'container' => false, 'menu_id' => 'nav', 'theme_location' => 'primary', 'fallback_cb' => 'bp_dtheme_main_nav' ) );*/
    <?php if (is_page('sample-page')) { ?>
    
    <?php wp_nav_menu( array('menu' => 'Profile' )); ?>
    
    <?php } ?>
    			</div>
    
    			<?php do_action( 'bp_header' ) ?>
    
    		</div><!-- #header -->
    
    		<?php do_action( 'bp_after_header' ) ?>
    		<?php do_action( 'bp_before_container' ) ?>
    
    		<div id="container">
    Thread Starter jadin

    (@jadin)

    i wrote /* but change it */ .. any way same result on page..

    on the main page i have the sentence:
    */ container_class’ => ‘menu-header’, ‘theme_location’ => ‘primary’ ) );*/ ?>
    right under the menu bar

    and after pressing on Sample Page I have there the new bar under the main one with links instead little tabs

    Thread Starter jadin

    (@jadin)

    so now it’s look like this and when i’m preview it in another tab as normal member just to check it i see under the menu it’s written:
    /* container_class’ => ‘menu-header’, ‘theme_location’ => ‘primary’ ) );*/ ?>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    	<head profile="http://gmpg.org/xfn/11">
    		<meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ) ?>; charset=<?php bloginfo( 'charset' ) ?>" />
    		<title><?php wp_title( '|', true, 'right' ); bloginfo( 'name' ); ?></title>
    
    		<?php do_action( 'bp_head' ) ?>
    
    		<link rel="pingback" href="<?php bloginfo( 'pingback_url' ) ?>" />
    
    		<?php
    			if ( is_singular() && bp_is_blog_page() && get_option( 'thread_comments' ) )
    				wp_enqueue_script( 'comment-reply' );
    
    			wp_head();
    		?>
    	</head>
    
    	<body <?php body_class() ?> id="bp-default">
    
    		<?php do_action( 'bp_before_header' ) ?>
    
    		<div id="header">
    			<div id="search-bar" role="search">
    				<div class="padder">
    					<h1 id="logo" role="banner"><a href="<?php echo home_url(); ?>" title="<?php _ex( 'Home', 'Home page banner link title', 'buddypress' ); ?>"><?php bp_site_name(); ?></a></h1>
    
    						<form action="<?php echo bp_search_form_action() ?>" method="post" id="search-form">
    							<label for="search-terms" class="accessibly-hidden"><?php _e( 'Search for:', 'buddypress' ); ?></label>
    							<input type="text" id="search-terms" name="search-terms" value="<?php echo isset( $_REQUEST['s'] ) ? esc_attr( $_REQUEST['s'] ) : ''; ?>" />
    
    							<?php echo bp_search_form_type_select() ?>
    
    							<input type="submit" name="search-submit" id="search-submit" value="<?php _e( 'Search', 'buddypress' ) ?>" />
    
    							<?php wp_nonce_field( 'bp_search_form' ) ?>
    
    						</form><!-- #search-form -->
    
    				<?php do_action( 'bp_search_login_bar' ) ?>
    
    				</div><!-- .padder -->
    			</div><!-- #search-bar -->
    
    			<div id="navigation" role="navigation">
    				<?php wp_nav_menu( array( 'container' => false, 'menu_id' => 'nav', 'theme_location' => 'primary', 'fallback_cb' => 'bp_dtheme_main_nav' ) ); ?>
    /*
    container_class' => 'menu-header', 'theme_location' => 'primary' ) );*/ ?>
    
    <?php if (is_page('sample-page')) { ?>
    
    <?php wp_nav_menu( array('menu' => 'Profile' )); ?>
    
    <?php } ?>
    			</div>
    
    			<?php do_action( 'bp_header' ) ?>
    
    		</div><!-- #header -->
    
    		<?php do_action( 'bp_after_header' ) ?>
    		<?php do_action( 'bp_before_container' ) ?>
    
    		<div id="container">
    Thread Starter jadin

    (@jadin)

    i found part of the code you wrote first, here’s all the code, just want to confirm i’m in the right place, i went to > /wp-content/plugins/buddypress/bp-themes/bp-default/header.php .

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    	<head profile="http://gmpg.org/xfn/11">
    		<meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ) ?>; charset=<?php bloginfo( 'charset' ) ?>" />
    		<title><?php wp_title( '|', true, 'right' ); bloginfo( 'name' ); ?></title>
    
    		<?php do_action( 'bp_head' ) ?>
    
    		<link rel="pingback" href="<?php bloginfo( 'pingback_url' ) ?>" />
    
    		<?php
    			if ( is_singular() && bp_is_blog_page() && get_option( 'thread_comments' ) )
    				wp_enqueue_script( 'comment-reply' );
    
    			wp_head();
    		?>
    	</head>
    
    	<body <?php body_class() ?> id="bp-default">
    
    		<?php do_action( 'bp_before_header' ) ?>
    
    		<div id="header">
    			<div id="search-bar" role="search">
    				<div class="padder">
    					<h1 id="logo" role="banner"><a href="<?php echo home_url(); ?>" title="<?php _ex( 'Home', 'Home page banner link title', 'buddypress' ); ?>"><?php bp_site_name(); ?></a></h1>
    
    						<form action="<?php echo bp_search_form_action() ?>" method="post" id="search-form">
    							<label for="search-terms" class="accessibly-hidden"><?php _e( 'Search for:', 'buddypress' ); ?></label>
    							<input type="text" id="search-terms" name="search-terms" value="<?php echo isset( $_REQUEST['s'] ) ? esc_attr( $_REQUEST['s'] ) : ''; ?>" />
    
    							<?php echo bp_search_form_type_select() ?>
    
    							<input type="submit" name="search-submit" id="search-submit" value="<?php _e( 'Search', 'buddypress' ) ?>" />
    
    							<?php wp_nonce_field( 'bp_search_form' ) ?>
    
    						</form><!-- #search-form -->
    
    				<?php do_action( 'bp_search_login_bar' ) ?>
    
    				</div><!-- .padder -->
    			</div><!-- #search-bar -->
    
    			<div id="navigation" role="navigation">
    				<?php wp_nav_menu( array( 'container' => false, 'menu_id' => 'nav', 'theme_location' => 'primary', 'fallback_cb' => 'bp_dtheme_main_nav' ) ); ?>
    			</div>
    
    			<?php do_action( 'bp_header' ) ?>
    
    		</div><!-- #header -->
    
    		<?php do_action( 'bp_after_header' ) ?>
    		<?php do_action( 'bp_before_container' ) ?>
    
    		<div id="container">
    Thread Starter jadin

    (@jadin)

    ok did the menus, but how for each page? i can only use one at a time. i can’t see an option to assign the menu to which page.

    Thread Starter jadin

    (@jadin)

    well, i tried to make some custom menus but my code skills are very new..

    do you think you can help me by tutorial this steps.. my theme is pretty new i just changed background and header photos and some plugins installed.

    regards

    Thread Starter jadin

    (@jadin)

    wow man you’re so helping me here thanks a lot!!

    i’ll try this and let you know 🙂

    cheers!

    Thread Starter jadin

    (@jadin)

    found UberMenu..
    http://wpmegamenu.com/help/ .. seems good as well?

    Thread Starter jadin

    (@jadin)

    thanks!
    i’ll try this one 🙂

    Thread Starter jadin

    (@jadin)

    do you think “Menu” plugin by Shane & Peter, Inc.. will be good solution?
    http://wordpress.org/extend/plugins/menu/

    Thread Starter jadin

    (@jadin)

    thank you! 🙂 that solved it!

    now after making the menu and i put the register in it I want to have a bit different menu after the used logged in.

    how can i assign menu to specific page?

    update:
    after looking and i saw ‘Themes Location’ from the left and there i see it’s written:

    “Your theme supports 1 menu. Select which menu you would like to use.”

    So i choose one, and that makes my whole website to be with the same menu for all pages?
    if so, how can it be changed to have more menus to assign to pages?

    regards

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