-
Burak Birer replied to the topic BuddyPress Activity Privacy Plugin in the forum BuddyBoss Theme 10 years, 9 months ago
OK here it’is i worked a little bit for this plugin and found these at first
As you might checked the problem is not only with the photos. You also cannot change the privacy leveles of a published post. There is a solution for changing privacy level of published activities is here;
Add this line to buddypress.js file which is under js folder of BuddyBoss V3
After line 1793 add this;
/* Returns a querystring of BP cookies (cookies beginning with 'bp-') */
function bp_get_cookies() {
// get all cookies and split into an array
var allCookies = document.cookie.split(";");var bpCookies = {};
var cookiePrefix = 'bp-';// loop through cookies
for (var i = 0; i < allCookies.length; i++) {
var cookie = allCookies[i];
var delimiter = cookie.indexOf("=");
var name = unescape( cookie.slice(0, delimiter) ).trim();
var value = unescape( cookie.slice(delimiter + 1) );// if BP cookie, store it
if ( name.indexOf(cookiePrefix) == 0 ) {
bpCookies[name] = value;
}
}// returns BP cookies as querystring
return encodeURIComponent( jq.param(bpCookies) );
}Now the plugin is able to change the privacy levels for the already posted activities.
I am trying to find a solution for the photo upload process but no luck. Your help would be great! For the community 🙂
Cya!