Replies
- Brajesh Singh on April 10, 2018 at 3:51 am in reply to: How to regenerate mediapress thumbnails #14378
Hi Eduard,
Welcome to BuddyDev.At the moment, There is no plugin to resize it. All resize plugin use get_intermediate_image_sizes() which we do not add as WordPress will create unnecessary media files for each upload.
Allow us to explore the existing regeneration plugins for next 2 days and we can have a fork with MediaPress support available .
Thank you
Brajesh - Brajesh Singh on April 10, 2018 at 3:47 am in reply to: [Resolved] Mediapress lighbox image size #14377
Hi,
Can you please right click on the image and open it in new tab and then see if it is original or the resized one?It might be showing the scaled version dues to lightbox css. Please check and let me know.
Thank you
Brajesh - Brajesh Singh on April 10, 2018 at 3:19 am in reply to: Display sitewide activity for followers only #14376
Hi Tosin,
If you are using the BuddyPress Follow plugin’s latest version from github, The following code will do it./** * Filter sitewide activity to list following user's activity. * * @param array $args args. * * @return array */ function buddydev_custom_list_activities_filter( $args ) { if ( ! is_user_logged_in() || ! bp_is_members_directory() ) { return $args; } // for logged in user, change scope to following. $args['scope'] = 'following'; return $args; } add_filter( 'bp_after_has_activities_parse_args', 'buddydev_custom_list_activities_filter' );Hope that helps.
Regards
Brajesh That’s good then.
If you are using latest BuddyPress Member Types pro, Please visit Dashboard->Users->Profile Fields and edit the Member type profile field.
From the field options, please make sure to check No for Allow Users to change .
That will do it.
Regards
Brajesh- Brajesh Singh on April 10, 2018 at 3:16 am in reply to: [Resolved] BuddyPress Member Type Pro – Hide Profile Tabs based on member type #14373
Thank you Sujee.
I will write back to you on mail about them since they are unrelated to this topic.
marking it as resolved.
Regards
Brajesh Hi Ahmed,
Do you want to allow others(experts and entrepreneur) to change it? if you don’t want anyone to change it, It will be very easy. You can edit the field settings. Member Types Pro fields have the settings to disable changing.If you do want others to change, in that case, Please post the id of the member type field and I can provide a solution.
Regards
BrajeshHi Jill,
Thank you for posting the reason.That makes sense. That class gets added by WP when the widget is rendered(based on the widget PHP class).
I am not sure why it was not added but glad that the other developer found it.
Glad it is resolved.
Regards
BrajeshThank you for confirming George.
I don’t think bbPress or BuddyPress activity supports that out of the box.
As far as I found that BuddyPress does support filtering by your own topic and your own replies but I don’t see a way for otherwise.The activity stream shortcode is a layer above the Normal activity, It will not be able to support the forum/topic activities like above.
Sorry about that.Hi George,
No problem.In case of BuddyPress, friends/follower/groups will be scope for a user’s related activities.
We have added an extra option ‘for’ to define a dynamic context(logged|displayed|author) user id.
Can you please check if the above shortcode fetches the friends activities?
Thank you
BrajeshYou are welcome.
No, We use role strictly for WordPress roles and friends is not a role. We use scope for it.Here is the shortcode for showing the activity of friends of the logged user
[activity-stream for=logged scope=friends]Hope that helps.
Regards
Brajesh