Can anyone help me with this, please. Regardless i figured out what the problem is with the pages. The coding is set to be beside the actual background (because its background enhanced) somehow i need to move it, but does anyone know about the toolbar.
Wow i lost what i was typing. What im sayin is.
Code:
[HEADER]
<div id="container">
<div id="content">
[PAGE CONTENT]
</div>
<div id="sidebar">
[SIDEBAR CONTENT]
</div>
</div>
[FOOTER]
is the wanted design for buddypress themes. How do i emplant this into header and footer and index.php of wordpress.
Header:
Code:
<?php get_header() ?>
<div id="container">
<div id="content">
<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><!-- #content -->
</div><!-- #container -->
<?php locate_template( array( 'sidebar.php' ), true ) ?>
<?php get_footer() ?>
Footer
Code:
<div class="recover"></div>
</div><!--End left-col-->
<?php get_sidebar(1); ?>
<div class="recover"></div>
</div><!-- #container-shoulder -->
</div><!-- #Container-->
<div id="globalnav">
<div id="navpocket">
<ul id="nav"<?php echo (get_option('tbf2_search_header') == "no") ? ' class="nav-wide"' : '';?>>
<?php if(get_option('tbf2_nav_hide_home') != 'yes') : ?>
<li<?php if(is_home()) echo ' class="current_page_item"';?>><a href="<?php echo get_option('home'); ?>" rel="nofollow"><?php _e('Home')?></a></li>
<?php endif; ?>
<?php wp_list_pages('title_li=&sort_column=menu_order&exclude='.get_option('tbf2_exclude_pages')); ?>
<?php /* Uncomment this if you want to show categories in the top navigation
<li><a rel="nofollow" href="#"><?php _e("Topics"); ?></a>
<ul><?php wp_list_categories('title_li=&depth=4&orderby=name'); ?></ul>
</li>*/?>
</ul>
</div>
</div>
</div><!--End shadow-->
</div><!--End wrapper-->
<div id="footer" <?php echo (get_option('tbf2_footer_image_file')) ? 'style="background:url('.get_option('tbf2_footer_image_file'). ') no-repeat center top"' : ''?>>
<div class="footer-content">
<div class="footer-widget">
<ul class="footerlinks">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Footer Left") ) : ?>
<li><h2>Footer Left Content</h2>To replace this, go to "Widgets" page and add your own widgets to "Footer Left".<br /><br />Suggested widgets are: Categories, Recent Comments, Banners, Ads, Promotional Links etc.</li>
<?php endif; ?>
</ul>
</div>
<div class="footer-widget">
<ul class="footerlinks">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Footer Middle") ) : ?>
<li><h2>Footer Middle Content</h2>To replace this, go to "Widgets" page and add your own widgets "Footer Middle".<br /><br />Suggested widgets are: Categories, Recent Comments, Banners, Ads, Promotional Links etc.</li>
<?php endif; ?>
</ul>
</div>
<div class="footer-widget">
<ul class="footerlinks">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Footer Right") ) : ?>
<li><h2>Footer Right Content</h2>To replace this, go to "Widgets" page and add your own widgets "Footer Right".<br /><br />Suggested widgets are: Categories, Recent Comments, Banners, Ads, Promotional Links etc.</li>
<?php endif; ?>
</ul>
</div>
<div class="recover"></div>
<span id="copyright"><span class="alignleft"><?php _e('Copyright © ')?>
<script type="text/javascript">
/* <![CDATA[ */
var startCopyrightYear = <?php echo (get_option('tbf2_copy_year')) ? get_option('tbf2_copy_year') : "''" ?>;
if(!startCopyrightYear) {
var d=new Date();
startCopyrightYear = d.getFullYear();
}
printCopyrightYears(startCopyrightYear)
/* ]]> */
</script>
<?php echo bloginfo('site_name')?></span><span id="footer-tag"> | <a href="http://www.topblogformula.com/wordpress-business-themes/edegree" target="_blank">eDegree°</a> Theme <?php _e('by')?> <a href="http://www.topblogformula.com/">Top Blog Formula</a> on <a href="http://www.wordpress.org" target="_blank">WordPress</a></span> |
<?php if(is_user_logged_in()):?>
<a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php echo _e('Log Out') ?>"><?php echo _e('Log Out'); ?></a>
<?php else:?>
<a href="<?php echo bloginfo('url')?>/wp-login.php">Log In</a>
<?php endif;?>
</span>
</div>
</div><!--End footer-->
</div><!--End bg-->
<?php //Login Bar at the top
if(get_option('tbf2_user_login') == "yes") { ?>
<div id="login">
<?php
global $user_identity, $user_level;
if (is_user_logged_in()) { ?>
<ul>
<li><span style="float:left;"><?php _e('Logged in as:')?> <strong><?php echo $user_identity ?></strong></span></li>
<li><a href="<?php bloginfo('url'); ?>/wp-admin">Control Panel</a></li>
<?php if ( $user_level >= 1 ) { ?>
<li class="dot"><a href="<?php bloginfo('url') ?>/wp-admin/post-new.php">New Post</a></li>
<li class="dot"><a href="<?php bloginfo('url') ?>/wp-admin/page-new.php">New Page</a></li>
<li class="dot"><a href="<?php bloginfo('url') ?>/wp-admin/widgets.php">Widgets</a></li>
<li class="dot"><a href="<?php bloginfo('url') ?>/wp-admin/admin.php?page=tbf-design.php">Theme Setting</a></li>
<?php } ?>
<li class="dot"><a href="<?php bloginfo('url') ?>/wp-admin/profile.php">Profile</a></li>
<li class="dot"><a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php _e('Log Out') ?>"><?php _e('Log Out'); ?></a></li>
</ul>
<?php
} else {
echo '<ul>';
echo '<li><a href="'; echo bloginfo("url"); echo '/wp-login.php">Log In</a></li>';
if (get_option('users_can_register')) { ?>
<li class="dot"><a href="<?php echo site_url('wp-login.php?action=register', 'login') ?>"><?php _e('Register') ?></a> </li>
<?php
}
echo "</ul>";
} ?>
</div>
<?php } ?>
<?php wp_footer(); ?>
</body>
</html>
And Index
Code:
<?php get_header(); ?>
<?php
while (have_posts()) : the_post();
include(dirname(__FILE__).'/post.php');
endwhile;
?>
<?php get_footer(); ?>
This is not like normal themes, so is it even possible to add buddypress 2 it? sorry for all the text but im so confused and i dont know what to do.