Dandy
Forum Replies Created
-
Forum: Plugins
In reply to: [BP Profile Search] Limited Search RangeHi, there
Thanks for coming back to me and provide a solution here. I already sent a message via that contact form and we will talk there.
Thank you very much.
Forum: Plugins
In reply to: [BP Profile Search] Limited Search RangeHi, @mattrea
I found this solution from someplace else (thanks for Buddydev.com) and it worked perfectly for me. So I shared it here and hope it will probably solve your issue as well.
/** * Limit BP profile search plugin to user who are members of the current user's group * @param $users * * @return array */ function buddydev_limit_users_search_to_group_members( $users ) { // Do not check for non logged in or the site admin. if ( ! is_user_logged_in() || is_super_admin() ) { return $users; } $logged_id = get_current_user_id(); $groups = groups_get_user_groups( $logged_id ); // If the user does not belong to any group, the result should be empty. if ( empty( $groups['groups'] ) ) { //this user does not belong to any group $users = array();//array( 0, 0 ); // Limit to invalid user. return $users; } // if we are here, the user has some groups, let us find out the members of those groups. global $wpdb; $bp = buddypress(); $list = '(' . join( ',', $groups['groups'] ) . ')'; $member_ids = $wpdb->get_col( $wpdb->prepare( "SELECT user_id FROM {$bp->groups->table_name_members} WHERE group_id IN {$list} AND is_confirmed = 1 AND is_banned = 0 AND user_id != %d",$logged_id ) ); if ( ! empty( $member_ids ) ) { $users = array_intersect( $users, $member_ids ); // set intersection. } else { $users = array(); } return $users; } add_filter( 'bps_filter_members', 'buddydev_limit_users_search_to_group_members' );
You can put it in your bp-custom.php file.
This code snippet is provided from BuddyDev.com. I just copied and pasted here as it worked for me.
Hope you have a good day!
- This reply was modified 7 years, 7 months ago by Dandy.
Forum: Plugins
In reply to: [Postman SMTP Mailer/Email Log] Error this morningHi, Steven
I just solved this issue by myself. It seems it’s something wrong with the server cURL settings. If you use VPS and upgrade all components, then restart the server. Probably it will solve this issue.
Thank you.
Forum: Plugins
In reply to: [Ultimate Product Catalog] Warning: Invalid argument…Hi, EWD
I already upgraded and tested it. The issue has been solved.
Thanks for your reply and quick solving.
Thanks a lot.
Forum: Plugins
In reply to: [Ultimate Product Catalog] Warning: Invalid argument…I also have this issue.
Thanks.
I also has this issue. Any ideas? Thanks.
+1, I have the same issue above. Any ideas? Thanks.
Forum: Plugins
In reply to: [LearnPress - WordPress LMS Plugin] Page TemplateHi,
Thanks for your response and suggestions.
For the page template issue, I understand. I will look into your suggested themes later.
Could you check the issue about “Buy this course” button which I mentioned in the original post? The issue is happened when I set Course as Free, it still displays “Buy this course” instead of “Enroll this course”.
Could you fix this issue?
Thanks a million.
Forum: Plugins
In reply to: [BP Profile Search] Add Image Hover PopupHi, Andrea
I understand and thanks for your reply.However, the difficult for the kids is that they can’t understand certain words when they’re editing their profiles, so it’s difficult for them to choose their interests (I used checkboxes to list most popular items like football, basketball etc. for them to choose).
Anyway, thank you very much for your reply and help. I will try to find another way to solve that. Hope you have a good day!
Forum: Plugins
In reply to: [BP Avatar Suggestions] Upgrade to WP4.4.2 doesn't workYou’re welcome. I’m glad it’s fixed now.
Have a good day!
Forum: Plugins
In reply to: [BP Avatar Suggestions] Upgrade to WP4.4.2 doesn't workHi,
Sorry for replying late.
You just need to replace the option_value as current post ID of that draft.Thanks.
Forum: Plugins
In reply to: [BP Avatar Suggestions] Upgrade to WP4.4.2 doesn't workHi,
I suppose that bp_avatar_suggestion_post_id should be in 5th. or 6th. page in wp-option. Just be patient to search.If you still can’t find it, please let me know. I can do that for you anyway.
Thank.
Forum: Plugins
In reply to: [BP Avatar Suggestions] Upgrade to WP4.4.2 doesn't workHi,
Thanks so much for your help in Github issue page and this issue finally fixed under your guide.It’s nothing with WordPress itself and plugin itself is also ok.
I just list the brief process of solving this issue:
1. Try to find a draft post in Posts at backend panel – “BP Avatar Suggestions required post (do not edit or delete)”, the Permallink is “/bp-avatar-suggestions”;
2. Go to “Media” -> Find your uploaded avatars -> Click “Unattach” and attach them to draft post in Step 1;
3. Go to database, wp-options -> “bp_avatar_suggestions_post_id” -> Type into the post ID of draft post in Step 1.It’s done.
Thanks again for imath’s help and hope what I wrote here might help someone else in the future.
Forum: Plugins
In reply to: [BP Profile Search] How to add a scrollbar to profile fieldsAll right. I understand. Thanks for that.