You say nothing about where you try to delete your fields.
So i assume you are using BuddyPress the standart way and are working as “site admin” in the backend.
Read here:
Profile → Edit
Generally, when removing something comes back after you did it, it is because you forgot to save your changes. So far i know, there is no ghost or 4th dimension inside BuddyPress. 🙂
Hi all,
I’m using the latest version of BuddyPress & found a bug in the private message modul.
When I write a new message to a member and forget the subject line there is an error message to fill out the subject line –> that’s correct.
But after fill out the subject line and send on the “send” Button, there is another error message, that the username is not correct! –> that’s the bug. When I fill out the subject line and the body-text in one step, the message can be send without any problems.
Is this a general bug in BuddyPress?
Best regards
Miriam
http://www.familyship.org
I have a Japanese site that uses an IDN (International Domain Name) with Unicode characters. BuddyPress works fine, except when emails go out that contain links back to the site, such as {{{activate.url}}} the URL that shows up in the email is the Punycode version of the domain, not the Unicode characters (all Unicode IDNs have an ASCII encoding called “Punycode”). This isn’t recognizable to the end user and even worse, some email clients (Outlook in my case) display a security warning about the IDN link suggesting it might be a suspicious link – not exactly the experience I want for people just signing up for my site.
I want to try making activate.url use the Unicode characters to see if that makes the warning go away. If that doesn’t work I’d like to replace the Punycode url with an ascii domain that redirects to the Unicode one so at least the warning goes away. Is there any way to (1) modify how activate.url behaves, (2) create custom tokens, or (3) post process the whole email text after it is built so I can just find/replace the Punycode domain text?
In my research I don’t see any way to do any of the above. I saw there are some hooks before/after the header and footer are created but not sure if I have access to the HTML or text email content. I’d think 3 should be possible but I don’t know that much about WordPress/BuddyPress or PHP to even know where to start.
@meebovn Just saw your post. Here is the code I was using. I just load it from it’s own JS file in my functions.php. IIRC most of it is copy-pasta from a buddypress file with w/e tweaking I needed to get it working. It’s not pretty though.
jQuery(document).ready(function($) {
/* necessary to get the custom post-form working */
//Deregister buddypress built in actions
$('#whats-new').off("focus");
$('#whats-new-form').off("focusout");
$('#whats-new-options').show();
$('#aw-whats-new-submit').off('click');
/* New posts */
$('#aw-whats-new-submit').on( 'click', function() {
var editor = tinymce.get('whats-new');
editor.save();
var last_date_recorded = 0,
button = $(this),
form = button.closest('form#whats-new-form'),
inputs = {}, post_data;
// Get all inputs and organize them into an object {name: value}
$.each( form.serializeArray(), function( key, input ) {
// Only include public extra data
if ( '_' !== input.name.substr( 0, 1 ) && 'whats-new' !== input.name.substr( 0, 9 ) ) {
if ( ! inputs[ input.name ] ) {
inputs[ input.name ] = input.value;
} else {
// Checkboxes/dropdown list can have multiple selected value
if ( ! $.isArray( inputs[ input.name ] ) ) {
inputs[ input.name ] = new Array( inputs[ input.name ], input.value );
} else {
inputs[ input.name ].push( input.value );
}
}
}
} );
form.find( '*' ).each( function() {
if ( $.nodeName( this, 'textarea' ) || $.nodeName( this, 'input' ) ) {
$(this).prop( 'disabled', true );
}
} );
/* Remove any errors */
$('div.error').remove();
button.addClass('loading');
button.prop('disabled', true);
form.addClass('submitted');
/* Default POST values */
object = '';
item_id = $('#whats-new-post-in').val();
content = $('#whats-new').val();
firstrow = $( '#buddypress ul.activity-list li' ).first();
activity_row = firstrow;
timestamp = null;
// Checks if at least one activity exists
if ( firstrow.length ) {
if ( activity_row.hasClass( 'load-newest' ) ) {
activity_row = firstrow.next();
}
timestamp = activity_row.prop( 'class' ).match( /date-recorded-([0-9]+)/ );
}
if ( timestamp ) {
last_date_recorded = timestamp[1];
}
/* Set object for non-profile posts */
if ( item_id > 0 ) {
object = $('#whats-new-post-object').val();
}
post_data = $.extend( {
action: 'post_update',
'cookie': bp_get_cookies(),
'_wpnonce_post_update': $('#_wpnonce_post_update').val(),
'content': content,
'object': object,
'item_id': item_id,
'since': last_date_recorded,
'_bp_as_nonce': $('#_bp_as_nonce').val() || ''
}, inputs );
$.post( ajaxurl, post_data, function( response ) {
form.find( '*' ).each( function() {
if ( $.nodeName( this, 'textarea' ) || $.nodeName( this, 'input' ) ) {
$(this).prop( 'disabled', false );
}
});
/* Check for errors and append if found. */
if ( response[0] + response[1] === '-1' ) {
form.prepend( response.substr( 2, response.length ) );
$( '#' + form.attr('id') + ' div.error').hide().fadeIn( 200 );
} else {
if ( 0 === $('ul.activity-list').length ) {
$('div.error').slideUp(100).remove();
$('#message').slideUp(100).remove();
$('div.activity').append( '<ul id="activity-stream" class="activity-list item-list">' );
}
if ( firstrow.hasClass( 'load-newest' ) ) {
firstrow.remove();
}
$('#activity-stream').prepend(response);
if ( ! last_date_recorded ) {
$('#activity-stream li:first').addClass('new-update just-posted');
}
if ( 0 !== $('#latest-update').length ) {
var l = $('#activity-stream li.new-update .activity-content .activity-inner p').html(),
v = $('#activity-stream li.new-update .activity-content .activity-header p a.view').attr('href'),
ltext = $('#activity-stream li.new-update .activity-content .activity-inner p').text(),
u = '';
if ( ltext !== '' ) {
u = l + ' ';
}
u += '<a href="' + v + '" rel="nofollow">' + BP_DTheme.view + '</a>';
$('#latest-update').slideUp(300,function(){
$('#latest-update').html( u );
$('#latest-update').slideDown(300);
});
}
$('li.new-update').hide().slideDown( 300 );
$('li.new-update').removeClass( 'new-update' );
$('#whats-new').val('');
form.get(0).reset();
// reset vars to get newest activities
newest_activities = '';
activity_last_recorded = 0;
}
//$('#whats-new-options').slideUp();
$('#whats-new-form textarea').animate({
height:'2.2em'
});
$('#aw-whats-new-submit').removeClass('loading');
$( '#whats-new-content' ).removeClass( 'active' );
});
return false;
});
})
Hi there.
I installed the Sweet Date theme and all the plugins, eg BuddyPress, and wanted to edit the profile fields and add new ones.
Then something happendes, and suddanly I had 2 of everything – one in Danish and one in English – and now I cant delete any of them?!
So when u go to the webpage, under the profile, you see 2 of everything, even though they’re not even active in the settings – how do I delete them?!?!?
Thank you 🙂
Hi i have tried most of the fixed posted and still cant see comments left in the activities plane i tried the patch in functions.php ect please help the web url of my site is http://121gamer.com any help would be appropriated please put a full laymen s terms and fixes thanks
Hi there,
I hope this topic is in the right sub. If not, please be so kind and move it to the right one ;-).
Anyway, the matter is the following: We want to run the Buddypress Plugin along the mycred Plugin – operating under the Rehub:recash theme.
Everything works great and thanks for this nice plugin of BP!
But there is a thing: We want to hide the mycred points in the public profile section as well as under the public product pages. Just the user himself/herself should be able to see his/her points balance.
Is there any way to accomplish this?
If you need any further information, feel free to ask.
Many thanks in advance,
best regards!
Hi @danbp
it’s a bit tricky to judge who is responsible without knowing the code at all. As the forum pagination is working with bbPress and only not in BuddyPress groups, I thought this here might be the right place to ask. Sorry for that.
I have not contacted bbPress Support because I thought the group forum feature comes with Buddypress. Well, if I deactivate bbPress I don’t have any problems and I don’t have any group forums …
I ignore if wishlist is BP compatible. And you describe an issue between bbPress and Wishlist, a premium plugin.
And nothing at this stage indicate that BuddyPress is implicated. Have you tested your membership plugin without bbPress active ? Do you still have trouble when on a group ?
Outside the fact we can’t help you for such not open source product, have you contacted them and the bbPress support ?
rather a bummer…
i’m running wordpress 4.7, buddypress 2.7.4.
my theme is klean, though the same issue exists with
twenty seventeen theme.
any cover photo plugin i’ve tried does not help
does this say anything to anyone?
thank you
Hello kindly tell me step by step how i use this plugin how i add registration form into my site through this plugin i install this bp registration option plugin and save general setting now tell me next what can i do after saving setti how registration page show on my site tell means
@pixelpushermama @julia_B did you fix this, or is it still a problem?
I just upgraded from BuddyPress 2.3.4 to 2.7.4 (WP 4.7.1) but now we seem to have a problem with the mentions. Users used to get an notification-email when they were mentioned in the comments on one of our sites. That doesnt happen anymore. But the emails from private messages or replies on activity-updates do work…
Hi, Is it possible to add a “private message” button in the members’s directory page.
I have found this
but it is not working when I put it in the “bp-custom.php” file.
Any other ideas?
Thank you.
If a member set to “show only me” his city.
In the search results it can be find !
Is it a buddypress bug?
What is the issue to be privacy friendly?
its nice plugin but there is some bugs: buddypress-usernames-only/
its replacing names everywhere instead comments section like:
“USERNAME commented on ‘FULL-NAME’ Photo 3 hours ago ”
how can I modify the ‘FULL-NAME’ section as well?
Thanks
Buddypress version: 2.3.2.1
Wordpress version: 4.2.10
Theme: Kleo
I’m using the activity loop for show the groups activity_update with this parameters:
$params = array(
'scope' => 'groups',
'object' => 'groups',
'action' => 'activity_update'
);
if ( bp_has_activities( bp_ajax_querystring( 'activity' ). '&' .http_build_query($params) ) ) :
All works ok, but now i want to show only one group per comment.
In other words, show the last activity update of every group and no repeat groups in a loop.
¿How can i do that?
Thank’s
I found this. May I made a feature enhancement request to add each of these code features to enable a check box in the users section of the admin panel? Having to manually add the ID of new users to hide isn’t practical: https://buddypress.org/support/topic/hide-admin-from-members-and-activity/:
// Remove admin from the member directory
function bpdev_exclude_users($qs=false,$object=false){
$excluded_user=’1′; // Id’s to remove, separated by comma
if($object != ‘members’ && $object != ‘friends’)// hide admin to members & friends
return $qs;
$args=wp_parse_args($qs);
if(!empty($args[‘user_id’]))
return $qs;
if(!empty($args[‘exclude’]))
$args[‘exclude’] = $args[‘exclude’].’,’.$excluded_user;
else
$args[‘exclude’] = $excluded_user;
$qs = build_query($args);
return $qs;
}
add_action(‘bp_ajax_querystring’,’bpdev_exclude_users’,20,2);
// once admin is removed, we must recount the members !
function bpfr_hide_get_total_filter($count){
return $count-1;
}
add_filter(‘bp_get_total_member_count’,’bpfr_hide_get_total_filter’);
Hello,
How do I hide members from the member directory?
Use-case: For WordPress theme support I have created logins for plugin and theme support as well as dev. I would like to hide these “users” from the membership page in BuddyPress.
Thank you for your assistance!
Hi,
Why ? Don’t know!
Have you an unique page for “members” and “groups” ?
Have you permalinks activated (and not “default”) ?
Are you on a regular or multisite install ?
Have you searched the forum before asking ?
https://buddypress.org/support/search/number+of+members+is+wrong/
For a possible solution, read for example:
[Resolved] Wrong member count
This function of a plugin
function wpjj_run_script() {
$post_id = get_the_id();
$file_url = get_post_meta($post_id, ‘custom_file’, true );
$site_parameters = array(
‘file_url’ => $file_url,
‘plugin_url’ => plugins_url(),
‘theme_directory’ => get_template_directory_uri(),
‘post_id’ => $post_id,
);
wp_localize_script( ‘customjs’, ‘wpjj_var’, $site_parameters );
}
add_action( ‘wp_footer’ , ‘wpvr_run_script’ );
add_action( ‘comment_form_logged_in_after’, ‘additional_fields’ );
add_action( ‘comment_form_after_fields’, ‘additional_fields’ );
Customize the wordpress default comment system
what can i do to run the same function so it can replace buddypress default comment system
I am a newbie in php
Thanks in advance
I have looked everywhere and tried everything!
If so, what could we do more for you ? You’re asking for help for a page question. Pages are part of WordPress and fortunately, WordPress has a codex, where “page” is a well documented department.
https://codex.wordpress.org/Pages
Page Templates
Concerning BP pages, that documentation is much shorter, because BP doesn’t use page like WP and when it use a page it is internally only, and only for one of his component, not to allow users to write a page.
Deactivate all plugins before activating BP.
Activate a Twenty theme.
Then activate BP. If your admin remains blank again, remove BP from the server – there may be corrupted files – and upload a fresh copy by FTP.
If still trouble, contact your host and see if you have minimum requirements to install BP (including enough php memory (at least 64 mo)
As apparently you never have to debug your install, read here for more recommendation (to follow if possible).
Whenever I install and activate buddypress I get a blank page on my Wp-admin page. I can still see the side menu but that’s it.
What do I do?
Hi there,
We recently updated BuddyPress 2.3.4 to 2.7.4 but we seem to have a problem with the mentions. Users used to get an notification-email when they were mentioned in the comments on one of our sites. That doesnt happen anymore. But the emails from private messages or replies on activity-updates do work, so it seems not a problem with the webserver or something like that.
I have searched a lot of files/source and it looks like the function bp_activity_sent_mention_email is responsible for these mails, but I cant find this function anywhere.. Does somebody know where I should look to find the problem? Where can i hook into the mention-emails to see whats wrong?
PS: I also added this code, but that didnt help