-
shanebp replied to the topic Buddypress locking a member out of his own group in the forum How-to & Troubleshooting 11 years, 3 months ago
w3totalcache is a very powerful plugin.
And it’s essential to use a caching plugin on large BP installs.
But don’t use page caching with any plugin or you will get stale pages and other issues.And you’ll have to careful tune the plugin settings for your particular install and hosting.
It can be quite complicated. But once you get it right,…[Read more] -
shanebp replied to the topic Members meta query in the forum How-to & Troubleshooting 11 years, 3 months ago
Favorites are stored per user in wp_usermeta in a serialized string in meta_value.
If they were stored per activity, what you need would be easy.
You could try: `global $wpdb;
$fav_ids = $wpdb->get_col(
”
SELECT user_id FROM wp_usermeta
WHERE meta_key LIKE ‘bp_favorite_activities’
AND meta_value LIKE ‘%”900″%’
”
); `But…[Read more]
-
shanebp replied to the topic Members meta query in the forum How-to & Troubleshooting 11 years, 3 months ago
-
shanebp replied to the topic [Resolved] Hiding Groups, Activity & Members List to Non Members in the forum How-to & Troubleshooting 11 years, 3 months ago
So you tried: bp_is_groups_component() and bp_is_members_component() ?
Use pastebin to post the code you tried.
-
shanebp replied to the topic buddypress profile new tab returns permission denied in the forum How-to & Troubleshooting 11 years, 3 months ago
Try adding this to the bp_core_new_nav_item array:
'position' => 40,
'user_has_access' => bp_is_my_profile(),
'default_subnav_slug' => 'test' -
shanebp replied to the topic DONATE TO SEE BP MESSAGES in the forum How-to & Troubleshooting 11 years, 3 months ago
We should continue this conversation in private.
You can contact me via my profile info. -
shanebp replied to the topic Combining 2 sql databases for 2 sites in the forum Creating & Extending 11 years, 3 months ago
Use this hook:
https://codex.wordpress.org/Plugin_API/Action_Reference/user_register…To create a user on the other site.
This assumes that the only data shared between the databases is the wp_users table entries.
And the registration process has to be identical. -
shanebp replied to the topic Warning: Better WP Security plugin breaks group admins… in the forum Third Party Plugins 11 years, 3 months ago
@jschodde
Thanks for sharing the warning and fix instructions.However, a member’s id is used in most or all BP and WP tables.
For example, did you not have to update the user_id in wp_bp_activity ? -
shanebp replied to the topic [Resolved] Create Group goes to a blank page in the forum Creating & Extending 11 years, 3 months ago
You have other 404 problems too…
http://www.badgerakpsi.org/directory/user/26So there is a larger problem with your page assignments or permalink structure or some custom theme code.
-
shanebp replied to the topic Bad Link to Profile Edit in the forum How-to & Troubleshooting 11 years, 3 months ago
profile/edit/group/1
is the correct structure as in
members/bob/profile/edit/group/1/The ‘group’ refers to a profile group.
The ‘1’ means the base group as set up here:
wp-admin/users.php?page=bp-profile-setup -
shanebp replied to the topic DONATE TO SEE BP MESSAGES in the forum How-to & Troubleshooting 11 years, 3 months ago
So a member has to make a separate donation to see each new message trail?
This will require the hiring of a buddypress developer to create a custom plugin.
You can contact me via my profile info. -
shanebp replied to the topic Customising markup from core functions in the forum Creating & Extending 11 years, 4 months ago
I don’t think you can over-ride that function and unfortunately it doesn’t use apply_filters.
So calling your own function is probably the way to to. -
shanebp replied to the topic Check value from bp_member_profile_data in the forum How-to & Troubleshooting 11 years, 4 months ago
Something like:
$field_check = xprofile_get_field_data( 'the field name', bp_displayed_user_id() );
if ( 'Physician' == $field_check )
// show a button -
shanebp replied to the topic Change first page shown for user profile in the forum How-to & Troubleshooting 11 years, 4 months ago
Try putting this in your wp-config.php file:
define( 'BP_DEFAULT_COMPONENT', 'profile' );
-
shanebp replied to the topic BuddyPress 1.8 Issue in the forum How-to & Troubleshooting 11 years, 4 months ago
In
buddypress.1.8buddypressbp-templatesbp-legacybuddypressmemberssinglemember-header.phpFind
do_action( ‘bp_member_header_actions’ );If that action is not in your custom theme, the buttons will not appear.
As always, the simple way to check is to switch your theme to the wordpress 2012 theme.
If the buttons appear, the fault is in your…[Read more] -
shanebp replied to the topic Better sorting for new bp_group_has_members() query in the forum Requests & Feedback 11 years, 4 months ago
Good idea.
You should submit an enhancement ticket on https://buddypress.trac.wordpress.org/
And if you can submit a patch with the ticket… even better. -
shanebp replied to the topic [Resolved] detecting if buddypress profile field has been completed? in the forum How-to & Troubleshooting 11 years, 4 months ago
You don’t need to query the field_data twice
<?php
[Read more]
$bpProfileField = bp_get_profile_field_data( 'field=What makes me tick...&user_id=' . get_the_author_meta( 'ID' ) );
if ( empty ( $bpProfileField) ):
?>
<p>Apparently <?php echo get_the_author() ?> does not feel like sharing anything. Isn't this sad?</p>
<?php else: ?>
<p><?php echo… -
shanebp replied to the topic [Resolved] detecting if buddypress profile field has been completed? in the forum How-to & Troubleshooting 11 years, 4 months ago
You can google BuddyPress functions or grep the source or check the codex.
bp_profile_field_data will echo the result.
You want to use bp_get_profile_field_data which just returns the result.
Then you need to tweak your conditional to check for ’empty’ rather than a boolean.
if ( empty ( $some_var ) )Also note the apply_filters hook in…[Read more]
-
shanebp replied to the topic buddypress.org login broken in the forum Requests & Feedback 11 years, 4 months ago
Still happening for me here.
Intermittent and inconsistent – glad it’s not my bug assignment. -
shanebp replied to the topic [Resolved] Add profile fields to Group Members loop in the forum How-to & Troubleshooting 11 years, 4 months ago
Use bp_get_group_member_id() and pass the id to xprofile_get_field_data(…)
If you can’t figure it out and/or you want to honor field visibility settings,
there is a premium plugin available: BuddyProfileData - Load More
@shanebp
Active 14 hours, 21 minutes ago