meg@info
Forum Replies Created
-
Forum: Plugins
In reply to: [BuddyPress Activity Privacy] Can I set "Group Members" as default?H @number_6,
please check this post
http://wordpress.org/support/topic/how-to-set-default-activity-privacy-level?replies=6
Forum: Plugins
In reply to: [BuddyPress Activity Privacy] Latest Update bugHi @minika, @bp-help, @dan_the_snowman
Thanks for help @bp-help.
I was add a filter to fix the problem, @monika please add this code provisionally at the end of
plugins\buddypress-activity-privacy\includes\bp-activity-privacy-filters.php
add_filter( ‘bp_get_activity_latest_update’, ‘bp_activity_privacy_latest_update’, 10, 1);
function bp_activity_privacy_latest_update( $latest_update ){$user_id = bp_displayed_user_id();
if ( bp_is_user_inactive( $user_id ) )
return $latest_update;if ( !$update = bp_get_user_meta( $user_id, ‘bp_latest_update’, true ) )
return $latest_update;$activity_id = $update[‘id’];
$activity = bp_activity_get_specific( array( ‘activity_ids’ => $activity_id ) );// single out the activity
$activity_single = $activity[“activities”][0];$has_activities = false;
$activities = new stdClass();
$activities->activities = array();
$activities->activities[] = $activity_single;bp_visibility_activity_filter($has_activities, $activities);
if ( empty( $activities->activities ) )
$latest_update = null;return $latest_update;
}Thanks for feedback.
Regards,
Forum: Plugins
In reply to: [BuddyPress Activity Privacy] How to set default activity privacy levelHi @ljmac,
You can do (1) and (2) by adding code that check the role of the current, and depending the role of the current user just add the corresponding filter.
it just explain code
If (im-subscriber){ add_filter('bp_profile_activity_visibility_levels_filter', 'bp_subscribers_privacy_level', 10, 1); } elseif(i-have-Higher level roles){ add_filter('bp_profile_activity_visibility_levels_filter', 'bp_higher_level_roles_privacy_level', 10, 1); } function bp_higher_level_roles_privacy_level( $visibility_levels ) { //add or unset new capability levels (like http://wordpress.org/support/topic/how-to-set-default-activity-privacy-level?replies=3#post-4218789) ... .. . return $visibility_levels; } function bp_subscribers_privacy_level( $visibility_levels ) { unset($visibility_levels['public']); ... . ... other unsets ... return $visibility_levels; }Forum: Plugins
In reply to: [BuddyPress Activity Privacy] How to set default activity privacy levelHi @creativedan,
Yes, you can do it and easly by adding this code to your functions.php of your current theme.
add_filter('bp_profile_activity_visibility_levels_filter', 'bp_make_logged_in_as_default_privacy_level', 10, 1); add_filter('groups_activity_visibility_levels', 'bp_make_logged_in_as_default_privacy_level', 10, 1); function bp_make_logged_in_as_default_privacy_level( $visibility_levels ) { $visibility_levels['public']['default'] = false; $visibility_levels['loggedin']['default'] = true; return $visibility_levels; }Forum: Plugins
In reply to: [BuddyPress Activity Privacy] Suggestion for enhancementHi @andres Felipe,
I cant add more than the listed category privacy levels proposed in the plugin, but you can easly add a new privacy level (friends+followers)
by adding some filters in your functions.php.
Check the buddypress-activity-privacy\includes\bp-activity-privacy-integrations.php file to see how i was add the new level for followers plugin.If you need a help, please tell me.
regards,
MounirForum: Plugins
In reply to: [BuddyPress Activity Privacy] Lozalization not working and otherHi @matthias.s,
thanks for translation, you send it to me megainfodz@gmail.com
and you follow update in github
https://github.com/dzmounir/buddypress-activity-privacyRegards,
MounirForum: Plugins
In reply to: [BuddyPress Activity Privacy] Lozalization not working and otherHi felipe,
i was add a fix in the v 1.0.4.2, please update and please tell me if work perfectly.
Forum: Plugins
In reply to: [BuddyPress Activity Privacy] Lozalization not working and otherHi @andres Felipe and thanks for feeback. Yes! it’s bug, i forget javascript test.
You can fixed it by editing the js file in buddypress-activity-privacy/includes/js/bp-activity-privacy.js
Replace line 23 with this code :
if( selected_item_id != undefined && selected_item_id != 0 ){The fix will be availble in the next update of the plugin.
Thanks all!
Forum: Plugins
In reply to: [BuddyPress Activity Privacy] Lozalization not working and otherPlease,
update the plugin to v1.0.4.1.
Forum: Plugins
In reply to: [BuddyPress Activity Privacy] Lozalization not working and other@trademarkos, @andres Felipe
The name of the translation file must be buddypress-activity-privacy-es_ES.mo.
Forum: Plugins
In reply to: [BuddyPress Activity Privacy] Lozalization not working and otherdeleted … i will fix the bug, i forget some parm in load_textdomain
Forum: Plugins
In reply to: [BuddyPress Activity Privacy] Lozalization not working and otherhi Hi Andres Felipe, @trademarkos
The localization problem is fixed in the last release, please update the plugin.
for your point 2 Andres Felipe, the privacy options for Groups are displayed only if you select a group name from ‘Post In’ selectbox or if your are in a group home.
If you are in profile page, member can choose to post a new activity in group (from ‘Post in’) so automaticly the privacy options for groups are loaded.
I think it is logical, no ? π
Regards,
MounirForum: Plugins
In reply to: [BuddyPress Activity Privacy] Lozalization not working and otherHi Andres Felipe,
Thanks for feedback, can you send me the translation files.
I will check for the problem and i will answer you soon
thanks.
Forum: Plugins
In reply to: [BuddyPress Activity Privacy] Conflict with Activity PlusHi @tomwas,
Happy for you !!
I was add integration for buddypress activity plus now in the the plugin,
the update that i was told you beofre has any effect :).Now buddypress activity privacy work without updating buddypress activity plus.
If you have any other problem with the new update, please contact me.
Thanks for the email (mine is megainfodz@gmail.com), i will save it mybe in need your help one days :).
Regards,
Forum: Plugins
In reply to: [BuddyPress Activity Privacy] Conflict with Activity PlusHi @tomwas and thanks for feedback,
when you post picutre, video or link, Buddypress Activity Plus use his proprer ajax post function.
To make activity privacy work with, you need to edit the file plugins/buddypress-activity-plus/js/bpfb_interface.js
and add a line in the js code, just after line 421, add this line
"visibility" : $("select#activity-privacy").val(),this mean, you add a visibility level param to the ajax post :).
In the next release, i will add some integrations fix into the BuddyPress Activity Privacy plugin, to make it work with Buddypress Activity Plus and Buddypress Followers plugins.
Regards,