Forum Replies Created
-
Sure! I’ll translate those strings this week! Thanks for letting me know @djpaul š
Thanks @henrywright-1, and that was what I did, I was the one that added the prefix:
buddyboss_childtheme_
to my function, but the point is that if I use the word “core” inside the title of a function, the ajax stop working šOk, I have found the problem and I fixed it š
The conflict was the name of the function:
buddyboss_childtheme_core_get_notifications_for_user( $type_notification )
When I was testing the function to find the problem, I realised that even with the empty function the ajax problem was still there. So I tried changing the function’s name and done!
The new name is:
buddyboss_childtheme_get_notifications_for_user( $type_notification )
I will never use again the word “core” in the title of a function in functions.php š
Hope it will be useful for someone. Cheers!
RocĆo
Hi @justin_k
thank you very much for your reply and first at all, thank you for your great job with your plugin WP-FB-AutoConnect.
The issue that I had was 8 months ago, so I apologize if I don’t remember all the details about it. But I remember that the issue was getting the connecting’s user’s email address in some cases.
The point was that I tested the plugin with different FB users with differents privacy settings and the problem was with those users that had their emails’ visibility for “Only me”
Everytime that I logged in with the same “Only me FB user”, WP created a new account, so I had duplicated users in those cases.
I would be very happy if you tell me that I was doing something badly and that your plugin has not that issue.
Thanks again š
RocĆo
Mark it as Resolved if it worked š
Hi again! I’ve just answer you by twitter, but I’ll write down here because it can be usefull for other people š
You can use the functions:
groups_is_user_mod( $user_id, $group_id );
groups_is_user_admin( $user_id, $group_id )or these ones aswell:
BP_Groups_Member::get_is_mod_of( $user_id );
BP_Groups_Member::get_is_admin_of( $user_id );Hope it helps!
Ok, you can disable sending activation email to new registrant in WP multisite + BP installation by adding code below into your theme/child theme functions.php
`
// Change the text on the signup page
add_filter( ābp_registration_needs_activationā, ‘__return_false’ );function my_disable_activation( $user, $user_email, $key, $meta = ā ) {
// Activate the user
bp_core_activate_signup( $key );// Return false so no email sent
return false;
}
add_filter( āwpmu_signup_user_notificationā, āmy_disable_activationā, 10, 4 );//Disable new blog notification email for multisite
remove_filter( āwpmu_signup_blog_notificationā, ābp_core_activation_signup_blog_notificationā, 1, 7 );
add_filter( āwpmu_signup_blog_notificationā, ‘__return_false’ );// disable sending activation emails for multisite
remove_filter( āwpmu_signup_user_notificationā, ābp_core_activation_signup_user_notificationā, 1, 4 );
add_filter( āwpmu_signup_user_notificationā, ‘__return_false’, 1, 4 );
`Cheers! š
The last function has a bug, it activate the user after registration, but it’s still sending the activation key email using WP multisite, so it can be very confusing for the users, because they’re already active.
Any ideas to stop sending the activation key email?
Thanks
Hi!
If somebody still need to disable activation email, the following function works fine for me:
`
// Change the text on the signup page
add_filter( ‘bp_registration_needs_activation’, ‘__return_false’ );function my_disable_activation( $user, $user_email, $key, $meta = ” ) {
// Activate the user
bp_core_activate_signup( $key );// Return false so no email sent
return false;
}
add_filter( ‘wpmu_signup_user_notification’, ‘my_disable_activation’, 10, 4 );
remove_filter( ‘wpmu_signup_blog_notification’, ‘bp_core_activation_signup_blog_notification’, 1, 7 );
add_filter( ‘wpmu_signup_blog_notification’, ‘__return_false’ );
`Thanks to @cnorris23 for it! https://buddypress.trac.wordpress.org/ticket/3443
Hope it helps to someone š
Meanwhile, Iāve tested the BP demo of this one /loginradius-for-wordpress/ and it doesnāt duplicate the user. But I prefer not to use a external service.
So, I found this one buddydev.com/plugins/buddypress-facebook-connect-plus/ (thanks to @mercime) and it looks perfect for what Iām looking for. Any of you have used it? if you do, does it duplicate the same FB user in wp_users? and does it work fine importing users Facebook data to BuddyPress profile?
Thank you very much for your help and if I find more usefull info about this, I will post it here š
Hi all and thanks for all the info š
I’m looking aswell for a plugin that automatically fill in the Buddypress users’ X-Profile data from the uers’ Facebook profiles.
I have tried the free version of https://wordpress.org/extend/plugins/wp-fb-autoconnect/ but it has a serious problem. If I login with my FB account a few times, this plugin create a new user every time in the wp_users table. I don’t know if the premium version of this plugin fix this problem, so if any of you have tested it, I would be very thankful for your comments š
Hi @purplemonkeyking you only have to disable the users’ registration option here: http://example.com/wp-admin/network/settings.php
Then, try to connect with the plugin you’re using and done. I’m using the same plugin and it works for me š
By the way, are you using the premium version of https://wordpress.org/extend/plugins/wp-fb-autoconnect/ it’s because I need the premium BP features and I would like to know other people opinion before to buy it.
Thanks!
I did it with BP 1.5.5, I said it in the first post of this topic
Hi @ubernaut
I have installed the plugin and it happens the same: it appears to have the option but when I tested it the policy is not enforced and even logged out users can see the private fields on my site.
Ok, I know that it’s not a good practice to change the core, but if someone needs it, here you have how editors can edit other user profiles:
/wp-content/plugins/buddypress/bp-xprofile/bp-xprofile-screens.php -> line 35
if ( !bp_is_my_profile() && !is_super_admin())
change it for this:
if ( !bp_is_my_profile() && !is_super_admin() && !current_user_can(‘moderate_comments’))
It works
Ok, thanks Paul . I will update to 1.6 and will test with the bp_moderator capability.
Thanks anyway for your fast reply
Mmmmm so is there no way to do it with BP 1.5.5?
Yes @abysshorror it works, thanks, but it’s not what I was looking for.
@DJPaul yes, I agree, the function that I have to modify is bp_activity_get() in bp-activity-functions.php to retrieve an activity or activities of both scopes
Hi abysshorror!
Thanks for reply so fast . I have tried your code and it doesn’t work, even I tried with && instead || but nothing. The problem is that using both ways, it only shows the first scope activitys, for example, using this:
`if ( bp_has_activities( ‘scope=friends’ ) || bp_has_activities( ‘scope=favorites’ )) :`
it only shows the friends activity. And there is another problem, if I use the code above, when I click on the load more link, it works, but showing the sames activities again and again.
Somebody knows how can I solve this? Thanks!
Hi Isbul!
with the plugin BuddyPress Private Community you can choose what will be private and what will be public:
https://wordpress.org/extend/plugins/buddypress-private-community/
Hope it helps to you
Great job guys!!!!!, I noticed the toolbar too , but one thing: if we don’t have sufficient permissions to access to the New Post Page and the Comments Moderation Page, would be better if we don’t see those links in the toolbar?
Hi @DJPaul , it’s great to know that you’re working on that now, beacuse it’s a very usefull feature
Looking foward to see next version, thanks!
Eventpress works great to me in WP 3.2.1 multisite and BP 1.2.9. I have used the plugin Multisite User Management to mange all the users roles and to change them to the Event creator role in the main site.
By the way, the only bug that I have found is that the link created in the admin bar in: My account -> Events and My acoount -> Events -> My events don’t work propertly, if I click them, they go to the site_url
Anyway, great plugin, congrats!