- This topic has 0 replies, 1 contibutor, and was last updated 10 years ago by .
Viewing 1 post (of 1 total)
Question
Viewing 1 post (of 1 total)
- The question ‘BuddyPress Activity privacy does not work later! BoddyBoss 4.0.7’ is closed to new replies.
BuddyBoss Home – Web › Support Forums › Themes › BuddyBoss theme › BuddyPress Activity privacy does not work later! BoddyBoss 4.0.7
Good evening! After the update is not working for me again plugin -Activity privacy- before it was possible with the following code to solve this problem. But now I have a problem after the update code to ask where is the percent change a place .. Before it was:izacic sorry, I missed that code. Please add this to buddyboss / js / buddypress.js line 455 BEFORE “NEW POSTS” And where he is now ??
Thank in advance for your help ..
Code
jq(‘body’).on(‘change’, ‘.bp-ap-selectbox’, function(event) {
var target = jq(event.target);
var parent = target.closest(‘.activity-item’);
var parent_id = parent.attr(‘id’).substr( 9, parent.attr(‘id’).length );
if (typeof bp_get_cookies == ‘function’)
var cookie = bp_get_cookies();
else
var cookie = encodeURIComponent(document.cookie);
jq.post( ajaxurl, {
action: ‘update_activity_privacy’,
‘cookie’: cookie,
‘visibility’: jq(this).val(),
‘id’: parent_id
},
function(response) {
});
return false;
});