-
Dankicity posted on the forum topic Customizing Member Feed Template in the group Creating & Extending: 13 years, 3 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.
-
Dankicity posted on the forum topic Customizing Member Feed Template in the group Creating & Extending: 13 years, 3 months 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.
-
Dankicity started the forum topic Customizing Member Feed Template in the group Creating & Extending: 13 years, 3 months 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]
-
Dankicity joined the group Creating & Extending 13 years, 3 months ago
-
Dankicity posted on the forum topic Activity Load-More Fails To Use Action Parameter in the group How-To and Troubleshooting: 13 years, 3 months ago
Strike this… I was stuck looking at the wrong function.
-
Dankicity started the forum topic Activity Load-More Fails To Use Action Parameter in the group How-To and Troubleshooting: 13 years, 4 months 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 […]
-
Dankicity posted on the forum topic Order/sort activity by "most favorites" in the group How-To and Troubleshooting: 13 years, 4 months 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] -
Dankicity posted on the forum topic Order/sort activity by "most favorites" in the group How-To and Troubleshooting: 13 years, 4 months ago
You missed the point of avoiding bp_has_activities, in that it automatically reorders the includes through it’s own query.
-
Dankicity posted on the forum topic Order/sort activity by "most favorites" in the group How-To and Troubleshooting: 13 years, 4 months ago
< ?php
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]
$popular_activities = my_get_popular(); // returns an array of activity IDs
for ($i = 0; $i // your customized activity entry template -
Dankicity joined the group BuddyPress Followers 13 years, 4 months ago
-
Dankicity posted on the forum topic Order/sort activity by "most favorites" in the group How-To and Troubleshooting: 13 years, 4 months 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 […]
-
Dankicity joined the group How-To and Troubleshooting 13 years, 4 months ago
@dankicity
Not recently active