Skip to:
Content
Pages
Categories
Search
Top
Bottom

  • About
  • Plugins
  • Themes
  • Documentation
  • Blog
  • Support
  • Download

BuddyPress.org


  • Register
  • Lost Password
  • Log In

@dankicity active 2 months, 4 weeks ago
  • Personal
  • Mentions
  • Favorites
  • Profile picture

    Dankicity posted on the forum topic Customizing Member Feed Template in the group Creating & Extending: 1 year, 12 months ago

    Nevermind, I fixed this by having it check if the current component is my custom component and altered the member feed link to point to that instead. So it now only offers their activity, sitewide and main blog.

  • Profile picture

    Dankicity posted on the forum topic Customizing Member Feed Template in the group Creating & Extending: 2 years ago

    Can I just get someone to confirm that bp-activity-personal-feed.php doesn’t get used for a member’s feed? So I know this doesn’t happen because I broke something.

    Though, even if I broke something there shouldn’t be any content and… there is.

  • Profile picture

    Dankicity started the forum topic Customizing Member Feed Template in the group Creating & Extending: 2 years ago

    I’m trying to point the member/personal feed to a template in my theme through this in my functions.php with: `function my_activity_action_personal_feed() { global $bp, $wp_query; if ( $bp->current_component != $bp->activity->slug || !$bp->displayed_user->id || $bp->current_action != ‘feed’ ) return false; $wp_query->is_404 = false; status_header(…[Read more]

  • Profile picture

    Dankicity joined the group Creating & Extending 2 years ago

  • Profile picture

    Dankicity posted on the forum topic Activity Load-More Fails To Use Action Parameter in the group How-To and Troubleshooting: 2 years ago

    Strike this… I was stuck looking at the wrong function.

  • Profile picture

    Dankicity started the forum topic Activity Load-More Fails To Use Action Parameter in the group How-To and Troubleshooting: 2 years ago

    I set the “action” in the loop for a specific activity type but it is ignored when a user clicks “load-more” and all activity types are loaded and displayed. I followed it to the bp_dtheme_activity_template_loader() in ajax.php. Though, I’m not sure what it’s doing here or where it’s actually doing the query. I’d thought about [...]

  • Profile picture

    Dankicity posted on the forum topic Order/sort activity by "most favorites" in the group How-To and Troubleshooting: 2 years ago

    You’d need to (this is most undoubtedly wrong) 'SELECT wp_bp_activity.id as id FROM wp_bp_activity LEFT JOIN wp_bp_activity_meta ON wp_bp_activity.id = wp_bp_activity_meta.activity_id WHERE wp_bp_activity_meta.meta_key = "favorite_count" GROUP BY wp_bp_activity.id HAVING COUNT (wp_bp_activity_meta.activity_id) > 0 ORDER BY COUNT…[Read more]

  • Profile picture

    Dankicity posted on the forum topic Order/sort activity by "most favorites" in the group How-To and Troubleshooting: 2 years ago

    You missed the point of avoiding bp_has_activities, in that it automatically reorders the includes through it’s own query.

  • Profile picture

    Dankicity posted on the forum topic Order/sort activity by "most favorites" in the group How-To and Troubleshooting: 2 years ago

    < ?php
    $popular_activities = my_get_popular(); // returns an array of activity IDs
    for ($i = 0; $i // your customized activity entry template
    It’s a pretty ugly way of doing it but it got me started. Main defect, as I don’t yet get inserting activities into the activity template (without it doing it’s own query), is that I do one query to get the…[Read more]

  • Profile picture

    Dankicity joined the group BuddyPress Followers 2 years ago

  • Profile picture

    Dankicity joined the group How-To and Troubleshooting 2 years, 1 month ago

  • Profile picture

    Dankicity posted on the forum topic Order/sort activity by "most favorites" in the group How-To and Troubleshooting: 2 years, 1 month ago

    I’ve been looking to do this as well. But bp_activity_get_specific automatically applies a DESC order as a default. Essentially failing to maintain the ordering of ids I can only see this working the way we want is through a custom loop or functions that bypass this. BP 1.28, I’m unsure of any changes to this [...]

Profile picture of Dankicity
  • Activity
    • Personal
    • Mentions
    • Favorites
  • Profile
    • View
  • Sites 0
    • My Sites
  • Forums
    • Topics Started
    • Replies Created
    • Favorites

See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS

Follow BuddyPress on Twitter • GPL • Contact Us • Terms of Service

Skip to toolbar
    • WordPress.org
      • About WordPress
      • Documentation
      • Support Forums
      • Feedback
      • Developer Trac
      • Developer Blog
    • bbPress.org
      • About bbPress
      • Documentation
      • Support Forums
      • Feedback
      • Developer Trac
      • Developer Blog
    • BuddyPress.org
      • About BuddyPress
      • Documentation
      • Support Forums
      • Feedback
      • Developer Trac
      • Developer Blog
  • BuddyPress.org
    • Log in
  • Anonymous
    • AnonymousNot Logged In
    • Register
    • Lost Password
    • Log In
Log Out