Duplicate Avatars in Activity Stream
-
My Site
ChristianiTees
This is the ProblemHere’s What I’m Using
- WordPress 3.6
- BuddyPress 1.8.1
- Gantry Theme for WordPress – By RocketTheme, LLCVersion 4.0.6 [Basic default Gantry theme for WordPress]
- Gantry BuddyPress – Version 1.3 | By RocketTheme, LLC
- Gantry Template Framework – Version 4.0.7 | By RocketTheme
Prior Issues With gantry-buddypress Plugin
<p>This Plugin has been responsible for all other issues with BuddyPress that I’ve had, e.g., [[Resolved] Registration/Activation Brokenand[Resolved] Duplicate Profile Meta Error]
I believe the present issue is within this plugin somewhere here, not sure.</p>
<p></p>
The entry.php file code is;
<p> </p><?php /** * @version 1.3 November 8, 2012 * @author RocketTheme, LLC http://www.rockettheme.com * @copyright Copyright © 2007 - 2012 RocketTheme, LLC * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only */ /** * BuddyPress - Activity Stream (Single Item) * * This template is used by activity-loop.php and AJAX functions to show * each activity. * * @package BuddyPress * @subpackage bp-default */ ?> <?php do_action( 'bp_before_activity_entry' ); ?> <li class="<?php bp_activity_css_class(); ?>" id="activity-<?php bp_activity_id(); ?>"> <div class="activity-avatar"> "> <?php bp_activity_avatar(); ?> </div> <div class="activity-content"> <div class="activity-header"> <?php bp_activity_action(); ?> </div> <?php if ( 'activity_comment' == bp_get_activity_type() ) : ?> <div class="activity-inreplyto"> <?php _e( 'In reply to: ', 'buddypress' ); ?><?php bp_activity_parent_content(); ?> " class="view" title="<?php _e( 'View Thread / Permalink', 'buddypress' ); ?>"><?php _e( 'View', 'buddypress' ); ?> </div> <?php endif; ?> <?php if ( bp_activity_has_content() ) : ?> <div class="activity-inner"> <?php bp_activity_content_body(); ?> </div> <?php endif; ?> <?php do_action( 'bp_activity_entry_content' ); ?> <?php if ( is_user_logged_in() ) : ?> <div class="activity-meta"> <?php if ( bp_activity_can_comment() ) : ?> " class="button acomment-reply bp-primary-action" id="acomment-comment-<?php bp_activity_id(); ?>"><?php printf( __( 'Comment <span>%s</span>', 'buddypress' ), bp_activity_get_comment_count() ); ?> <?php endif; ?> <?php if ( bp_activity_can_favorite() ) : ?> <?php if ( !bp_get_activity_is_favorite() ) : ?> " class="button fav bp-secondary-action" title="<?php esc_attr_e( 'Mark as Favorite', 'buddypress' ); ?>"><?php _e( 'Favorite', 'buddypress' ); ?> <?php else : ?> " class="button unfav bp-secondary-action" title="<?php esc_attr_e( 'Remove Favorite', 'buddypress' ); ?>"><?php _e( 'Remove Favorite', 'buddypress' ); ?> <?php endif; ?> <?php endif; ?> <?php if ( bp_activity_user_can_delete() ) bp_activity_delete_link(); ?> <?php do_action( 'bp_activity_entry_meta' ); ?> </div> <?php endif; ?> </div> <?php do_action( 'bp_before_activity_entry_comments' ); ?> <?php if ( ( is_user_logged_in() && bp_activity_can_comment() ) || bp_activity_get_comment_count() ) : ?> <div class="activity-comments"> <?php bp_activity_comments(); ?> <?php if ( is_user_logged_in() ) : ?> <form action="<?php bp_activity_comment_form_action(); ?>" method="post" id="ac-form-<?php bp_activity_id(); ?>" class="ac-form"<?php bp_activity_comment_form_nojs_display(); ?>> <div class="ac-reply-avatar"><?php bp_loggedin_user_avatar( 'width=' . BP_AVATAR_THUMB_WIDTH . '&height=' . BP_AVATAR_THUMB_HEIGHT ); ?></div> <div class="ac-reply-content"> <div class="ac-textarea"> <textarea id="ac-input-<?php bp_activity_id(); ?>" class="ac-input" name="ac_input_<?php bp_activity_id(); ?>"></textarea> </div> <input type="submit" name="ac_form_submit" value="<?php _e( 'Post', 'buddypress' ); ?>" /> <?php _e( 'or press esc to cancel.', 'buddypress' ); ?> <input type="hidden" name="comment_form_id" value="<?php bp_activity_id(); ?>" /> </div> <?php do_action( 'bp_activity_entry_comments' ); ?> <?php wp_nonce_field( 'new_activity_comment', '_wpnonce_new_activity_comment' ); ?> </form> <?php endif; ?> </div> <?php endif; ?> <?php do_action( 'bp_after_activity_entry_comments' ); ?> <?php do_action( 'bp_after_activity_entry' ); ?>
The activity-loop.php file code is;
<?php /** * @version 1.3 November 8, 2012 * @author RocketTheme, LLC http://www.rockettheme.com * @copyright Copyright © 2007 - 2012 RocketTheme, LLC * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only */ /** * BuddyPress - Activity Loop * * Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_object_filter() * * @package BuddyPress * @subpackage bp-default */ ?> <?php do_action( 'bp_before_activity_loop' ); ?> <?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) ) ) : ?> <?php /* Show pagination if JS is not enabled, since the "Load More" link will do nothing */ ?> <noscript> <div class="pagination"> <div class="pag-count"><?php bp_activity_pagination_count(); ?></div> <div class="pagination-links"><?php bp_activity_pagination_links(); ?></div> </div> </noscript> <?php if ( empty( $_POST['page'] ) ) : ?> <ul id="activity-stream" class="activity-list item-list"> <?php endif; ?> <?php while ( bp_activities() ) : bp_the_activity(); ?> <?php gantry_bp_locate_type( array( 'activity/entry.php' ), true, false ); ?> <?php endwhile; ?> <?php if ( bp_activity_has_more_items() ) : ?> <li class="load-more"> <?php _e( 'Load More', 'buddypress' ); ?> <?php endif; ?> <?php if ( empty( $_POST['page'] ) ) : ?> <?php endif; ?> <?php else : ?> <div id="message" class="info"> <p><?php _e( 'Sorry, there was no activity found. Please try a different filter.', 'buddypress' ); ?></p> </div> <?php endif; ?> <?php do_action( 'bp_after_activity_loop' ); ?> <form action="" name="activity-loop-form" id="activity-loop-form" method="post"> <?php wp_nonce_field( 'activity_filter', '_wpnonce_activity_filter' ); ?> </form>
Any help resolving this issue is greatly appreciated, I will post the resolution here even if I recieve no response, so either BuddyPress Support or Users can benefit from these Gantry-BuddyPress Plugin Issues/Resolutions.
Thank you in advance for your time.
- The topic ‘Duplicate Avatars in Activity Stream’ is closed to new replies.