roninDD
Forum Replies Created
-
Forum: Plugins
In reply to: [Advanced Recent Posts] Buddy press member or activity not workingHi,
I’m using custom loops but they are based on buddy press original ones but not for activity (that is the original one):
/** * Fires before the start of the activity loop. * * @since BuddyPress (1.2.0) */ do_action( 'bp_before_activity_loop' ); ?> <?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) ) ) : ?> <?php if ( empty( $_POST['page'] ) ) : ?> <ul id="activity-stream" class="activity-list item-list"> <?php endif; ?> <?php while ( bp_activities() ) : bp_the_activity(); ?> <?php bp_get_template_part( 'activity/entry' ); ?> <?php endwhile; ?> <?php if ( bp_activity_has_more_items() ) : ?> <li class="load-more"> <a href="<?php bp_activity_load_more_link() ?>"><?php _e( 'Load More', 'buddypress' ); ?></a> </li> <?php endif; ?> <?php if ( empty( $_POST['page'] ) ) : ?> </ul> <?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; ?>
Forum: Plugins
In reply to: [Advanced Recent Posts] Buddy press member or activity not workingThat’s nice Eugene, let me know if I can send you any information that may help in finding the bug or the conflict.
Forum: Plugins
In reply to: [Advanced Recent Posts] Buddy press member or activity not workingI have just updated to the latest release and it is broken again.
My solution
adding a new attribute for shortcodes so I know if they are rendered in a page or a sidebar (mainpage true means no sidebar) and I allows it only in the front page:
'mainpage' => 'false' ), $atts ); $Path=$_SERVER['REQUEST_URI']; $URI= $Path; echo "valor de main page " . $a['mainpage']; if($a['mainpage']== 'true') { echo "main page true"; if(!($URI == "/")) { echo "not front page"; return null; } }
Forum: Plugins
In reply to: [Advanced Recent Posts] Buddy press member or activity not workingHi there,
Any news? I fixed it by adding an extra attribute to the shortcode. Nevertheless I’m not able to find the cause
Thanks
Forum: Plugins
In reply to: [Advanced Recent Posts] Buddy press member or activity not workingThe member page is fixed, however the activity is not.
members/activity/
have you had a look to it?
Forum: Plugins
In reply to: [Advanced Recent Posts] Buddy press member or activity not workingTry this mirror https://163.117.141.197/
The members page is https://163.117.141.197/members
Now is fixed. Do you want me to remove the fix from the plugin?
Forum: Plugins
In reply to: [Advanced Recent Posts] Buddy press member or activity not workingI found a work around, if we’re in the members page, just don’t process anything (I have no short code in the member page, but it just try to process it as if it were the home page)
function lptw_display_recent_posts ( $atts ) { $default_posts_per_page = get_option( 'posts_per_page', '10' ); $Path=$_SERVER['REQUEST_URI']; $URI= $Path; if($URI == "/members/") { return null; } //function continues...