Forum Replies Created
-
In reply to: Private Message Delay in Sending
I agree that there should be some indication or disabling when the button is clicked.
You can open an enhancement ticket here – use the same user & pw you use for these forums.
There is a plugin that will disable the button when sending public and private messages.
You can get it here:
https://wordpress.org/plugins/bp-profile-message-ux/Or here:
http://www.philopress.com/products/buddymessageux-free/In reply to: Feature request: More centralized e-mailGood idea – you can open an enhancement ticket here using the same user-name & pw you use for these forums.
In reply to: Is Buddypress not compatible with Sahifa WP theme?Have you tried asking the creators of the Sahifa WP theme?
In reply to: Disable Feed RSSYou can put it in your theme/functions.php or in bp-custom.php.
In reply to: Disable Feed RSSTry:
function jawas_bp_remove_feeds() { remove_action('bp_actions', 'bp_activity_action_sitewide_feed'); remove_action('bp_actions', 'bp_activity_action_personal_feed'); remove_action('bp_actions', 'bp_activity_action_friends_feed'); remove_action('bp_actions', 'bp_activity_action_my_groups_feed'); remove_action('bp_actions', 'bp_activity_action_mentions_feed'); remove_action('bp_actions', 'bp_activity_action_favorites_feed'); remove_action('bp_actions', 'groups_action_group_feed'); } add_action('init', 'jawas_bp_remove_feeds');In reply to: Updating extended profile field (checkbox data)It won’t work unless you pass a ‘valid’ value. And you don’t have to use an array for a single value.
So if you have not changed theoption value( via Users > Profile Fields ) to ‘Subscribe to Newsletter Digest’, it will fail.To ‘uncheck’ the box – just delete that row for that user in the _bp_xprofile_data table.
xprofile_delete_field_data( field name or ID, $user_id )In reply to: RSS Feed in Mailchimp shows Sitewide ActivityPlease use the
codebutton when pasting code.That code will remove all the feeds listed from all rss feeds – it isn’t specific to MailChimp.
There may be a way to remove certain feeds from the MailChimp template – but you should ask them.In reply to: RSS Feed in Mailchimp shows Sitewide ActivityDid you try searching for info re BP rss feeds?
Perhaps this will help:
https://buddypress.org/support/topic/disable-all-rss-feeds-update/In reply to: Is BuddyPress suitable for my project?I’m not aware of any set of plugins that will provide exactly what you need.
There are plugins for some of your requirements.
But you will need to provide custom code to bridge the gaps.
So unless you are a developer, it will not be possible atfree/low cost.In reply to: Default search based on user detailsPlease do not double post – your duplicate post has been deleted.
In reply to: xprofile fields displaying data from another userUnless you are explicitly using the bp-default theme, not recommended, you should always use these templates:
buddypress\bp-templates\bp-legacy\iow. this members-loop:
buddypress\bp-templates\bp-legacy\buddypress\members\members-loop.phpIn reply to: xprofile fields displaying data from another userInteresting… so the value is being cached somewhere… an object?
As you may have noted,
bp_get_member_profile_datadoes not require passing in the member ID – IF you are in a members loop. You can pass in the ID as an array argument.But
xprofile_get_field_datacan be used anywhere and always requires passing the ID.is there a reason not to do it that way?
bp_get_member_profile_datawill try to get the data from the global before resorting to a database call.
xprofile_get_field_datawill always make a database call – for each piece of data.
So there would be some performance hit.Thx @sm60. I’ve adjusted my answer and the codex entry.
In reply to: xprofile fields displaying data from another userThen there is some other issue specific to your install.
I believe wpengine has aggressive caching turned on by default.Try:
$your_name = false; $your_name = bp_get_member_profile_data( 'field=Your Name' ); if ( $your_name != false && $your_name != NULL ) echo $your_name;In reply to: Code to assign user into a group#2
In reply to: Code to assign user into a groupIn reply to: xprofile fields displaying data from another userTo determine if the issue is in your theme, try switching momentarily to a WP theme like 2013.
You’ll need to copy members-loop.php to a buddypress folder in that theme.You can only echo the data if it exists.
Try:$your_name = bp_get_member_profile_data( 'field=Your Name' ); if ( $your_name != false ) echo $your_name;You mean the Groups component of BP?
BP does not support specific themes.
Themes can support BP if they choose to.
You should contact the authors of your theme – there may be simple solution.In reply to: Email tokens & Situations:Did you read: https://codex.buddypress.org/emails/custom-emails/
It’s a delicate fix.
Backup your database first.Then try this…
Don’t delete the current field – Change it to a selectbox.
Note the field_id ( in the wp-admin url )Then adapt and run this function to add countries:
https://gist.github.com/shanebp/119ffd879acc56c324abUse these parts:
$countries = array( ... ); foreach ( $countries as $country ) { xprofile_insert_field( array( 'field_group_id' => 1, 'parent_id' => 28, // the field_id of the field 'type' => 'option', 'name' => $country, 'option_order' => $i++ )); }In reply to: How to restrict group creation to certain usersIt is always a bad approach to edit core files.
That’s why a filter is provided to accomplished exactly the task described above.
apply_filters( 'bp_user_can_create_groups', $can_create, $restricted );When a xprofile field is deleted, the field meta data and each member’s data re that field is NOT deleted.
But the data is orphaned – iow. the data is related to a field ID that no longer exists.
In reply to: Adsense on activity stream?Delete the rest of the files.
Only use overloads of the template files you want to change.
Follow the directory structure used inbp-templates/bp-legacy/Try:
add_action( 'wp_head', 'hide_bubble_logged_out' );https://codex.wordpress.org/Plugin_API/Action_Reference/wp_head
In reply to: How to edit the text in registration pageCreate a template overload of this file:
buddypress\bp-templates\bp-legacy\buddypress\members\register.phpAnd carefully adjust it to your needs.