Reply To: Joining a private members group is not working since BP 1.7.2 update.
Hi @mercime, I tried your suggestion last night – I switched to twentytwelve, turned off all the plugins and it didn’t work as I expected. When I requested membership, it asked me to add a comment, rather than just returning the button disabled with “request sent”.
I also tried bp-default but that made no difference either.
I happened to have a copy of the old which referenced this instead of what I mentioned above
jq(".group-button a").live('click', function() {
var gid = jq(this).parent().attr('id');
gid = gid.split('-');
gid = gid[1];
var nonce = jq(this).attr('href');
nonce = nonce.split('?_wpnonce=');
nonce = nonce[1].split('&');
nonce = nonce[0];
var thelink = jq(this);
jq.post( ajaxurl, {
action: 'joinleave_group',
'cookie': encodeURIComponent(document.cookie),
'gid': gid,
'_wpnonce': nonce
},
function(response)
{
var parentdiv = thelink.parent();
if ( !jq('body.directory').length )
location.href = location.href;
else {
jq(parentdiv).fadeOut(200,
function() {
parentdiv.fadeIn(200).html(response);
}
);
}
});
return false;
} );
I replaced the jq with jquery and added it into my custom scripts and it worked fine.
I can’t understand why it wouldn’t work even when I changed to the default or twenty twelve themes though if you said there wasn’t an issue.