Issue with BuddyPress pages and alignment
-
I am using WordPress 3.0.4 and have installed and followed the instructions for the plug-in “BuddyPress Template Pack”. I’m fairly sure I understand how to work with the placement of the <div> tags to incorporate the BuddyPress pages properly into my layout. However, no matter what I’ve tried, I can’t get the content to align properly.
If someone would please have a look at the code I post here and tell me if you it looks right I would appreciate it. I think the problem may be that my theme uses a <div> id of “content” and so does BuddyPress.
This first set of code is the BuddyPress Activity/index.php file
`<?php get_header() ?><?php if ( !is_user_logged_in() ) : ?>
<?php _e( ‘Site Activity’, ‘buddypress’ ) ?>
<?php endif; ?>
<?php do_action( ‘bp_before_directory_activity_content’ ) ?>
<?php if ( is_user_logged_in() ) : ?>
<?php locate_template( array( ‘activity/post-form.php’), true ) ?>
<?php endif; ?><?php do_action( ‘template_notices’ ) ?>
-
<?php do_action( ‘bp_before_activity_type_tab_all’ ) ?>
- ” title=”<?php _e( ‘The public activity for everyone on this site.’, ‘buddypress’ ) ?>”><?php printf( __( ‘All Members (%s)’, ‘buddypress’ ), bp_get_total_site_member_count() ) ?>
- ” title=”<?php _e( ‘The activity of my friends only.’, ‘buddypress’ ) ?>”><?php printf( __( ‘My Friends (%s)’, ‘buddypress’ ), bp_get_total_friend_count( bp_loggedin_user_id() ) ) ?>
- ” title=”<?php _e( ‘The activity of groups I am a member of.’, ‘buddypress’ ) ?>”><?php printf( __( ‘My Groups (%s)’, ‘buddypress’ ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) ?>
- ” title=””><?php printf( __( ‘My Favorites (%s)’, ‘buddypress’ ), bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) ?>
- ” title=”<?php _e( ‘Activity that I have been mentioned in.’, ‘buddypress’ ) ?>”><?php printf( __( ‘@%s Mentions’, ‘buddypress’ ), bp_get_loggedin_user_username() ) ?><?php if ( bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ) : ?> <?php endif; ?>
<?php if ( is_user_logged_in() ) : ?>
<?php do_action( ‘bp_before_activity_type_tab_friends’ ) ?>
<?php if ( function_exists( ‘bp_get_total_friend_count’ ) ) : ?>
<?php if ( bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?><?php endif; ?>
<?php endif; ?><?php do_action( ‘bp_before_activity_type_tab_groups’ ) ?>
<?php if ( function_exists( ‘bp_get_total_group_count_for_user’ ) ) : ?>
<?php if ( bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?><?php endif; ?>
<?php endif; ?><?php do_action( ‘bp_before_activity_type_tab_favorites’ ) ?>
<?php if ( bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) : ?>
<?php endif; ?>
<?php do_action( ‘bp_before_activity_type_tab_mentions’ ) ?>
<?php endif; ?>
<?php do_action( ‘bp_activity_type_tabs’ ) ?>
`
This second set is my theme’s page.php file
`<?php edit_post_link('Edit this Page','
‘,’‘); ?>
`
finally, this third set is the Activity/index.php file with both combined as I think proper. I’ve tried multiple slight variations of this to no avail.
`- <a href="” title=””>
- <a href="” title=””>
- <a href="” title=””>
- <a href="” title=””><?php printf( __( 'My Favorites (%s)’, ‘buddypress’ ), bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) ?>
- <a href="” title=””>
`
- The topic ‘Issue with BuddyPress pages and alignment’ is closed to new replies.