Forum Replies Created
-
Sorry for the double post, but am I able to disable the check for wp_mail changes, so it can go through without any hassle.
I am using WP Mail SMTP to get the mail to send without issues. But it seems to affect this particular email only, I am getting everything else as far as I am aware.
Here are my current active plugins – There is quite a long list.
I do use Autoptimize, so not sure if it’s affecting anything.
One of note, is Social Login, which when logging directs to their site, and redirects back to my site to log the user in via their social network, this is where it falls over and does not send this one email. It manages to send other emails related to the login, but it now gives me an idea to look into the code that sends this social email sign up notification.(BuddyDev) BP Auto Login on Activation (1.0.3)
Advanced Custom Fields (4.4.11)
Allow Multiple Accounts (3.0.4)
Autoptimize (2.2.2)
BP Profile Message UX Free (1.5)
BP xProfile Location (1.2)
BP XProfile WordPress User Sync (0.6.4)
BuddyDev Username Availability Checker (1.1.1)
BuddyExtender (1.0.1)
BuddyPress (2.7.4)
BuddyPress Member Type Generator (1.0.3)
BuddyPress Security Check (2.1.2)
BuddyPress Simple Terms And Conditions (1.3)
BuddyPress Xprofile Custom Fields Type (2.6.3)
BuddyPress Xprofile Member Type Field (1.0.4)
BuddyPress XProfile Validate with RegEx (0.1.2)
Cherry Parallax Plugin (1.1.0)
Cherry Plugin (1.2.8.1)
Child Theme Configurator (2.1.2)
Conditional Profile Fields for BuddyPress (1.1.9)
Contact Form 7 (4.6)
Contact Form 7 – Dynamic Text Extension (2.0.1)
Contact Form 7 Conditional Fields (1.0)
Contact Form 7 Get and Show Parameter from URL (0.9.7)
Contact Form 7 Honeypot (1.10)
Contact Form 7 Modules: Hidden Fields (2.0)
Contact Form 7 Shortcode Enabler (1.1)
Custom Hooks (1.0)
Custom Post Template By Templatic (1.0)
Custom Post Type UI (1.4.3)
Disable Comments (1.6)
Display Posts Shortcode (2.7.0)
FacetWP (2.7.4)
FacetWP – Map (1.0.5)
Flamingo (1.5)
GeoIP Detection (2.7.0)
GEO my WP (2.7)
Google Analytics Dashboard for WP (4.9.6.2)
List Plugins (1.4.4)
Meta Slider (3.4)
Optimize Database after Deleting Revisions (4.2.1)
Page-list (5.1)
PHP Compatibility Checker (1.4.0)
Popup Maker (1.4.20)
Shortcodes in Menus (3.2)
Social Login (5.2)
Stream (3.2.0)
String Locator (2.2.0)
Sucuri Security – Auditing, Malware Scanner and Hardening (1.8.3)
SuitePlugins – Advanced XProfile Fields for BuddyPress (1.0.3)
Theme Check (20160523.1)
Visual Builder for Contact Form 7 (2.0)
WPFront User Role Editor (2.13)
WP Mail SMTP (0.11.1)
WP Private Content Plus (1.13.1)
WP Smush (2.6.1)
Yoast SEO (4.3)What version of BuddyPress are you using? It seems to be an issue with the CSS that safari tries to load.
refer to this thread https://buddypress.org/support/topic/cant-upload-profile-pic-with-ipad-or-iphone/
I look to have fixed my cookie issues, where should these messages appear, in a template_notices div?
Found a couple of unncessary plugins that were throwing “Cannot modify header information” errors – have removed those now.
The site is on https, would that make a difference?
Yes, I used wp_mail to send me the relevant error message and message type that was set during the bp_core_add_message
It was the same as sent to the function.
not an issue any more, they don’t want greyscale images.
I’d suggest a permissions issue, but I didn’t need to look any further.Let me correct that, it’s Jquery that is loaded at 1.10.2
My experience on an iPad with BuddyPress and the change profile photo is as follows:
Safari (custom theme) – same as above, hard to find the right spot to get the iOS menu to appear
Chrome (custome theme) – worked perfectly, the touch zone matched the physically drawn button on screen.
Safari (Twenty theme) – different site, but worked without an issue straight away.There is something with some of the themes (I am using one from Template Monster that has this issue, and another from them does not have an issue at all.
About to see if they can provide a fix for this. It seems odd it’s only a Safari issue, and only on some themes.Consider this one resolved, I found the function for the OneAll Social Login that fires off after the accounts are created, and it will now send off welcome emails for those that create accounts via the social media logins!
Thanks for the tip, whilst they didn’t have an example of what I was after, they had plenty showing what function fired off after their account creation.
In the end, so little code -will put on here for reference.
add_action( 'oa_social_login_action_after_user_insert', 'oa_social_login_send_welcome_email', 10, 2); function oa_social_login_send_welcome_email ($user_data, $identity) { //Fire off BuddyPress Welcome email $user_id = $user_data->ID; bpdev_welcome_user_notification( $user_id); }
Whilst this works when the field is already set, I need the labels to change when the user selects the member type drop down BEFORE the field is saved.
My code is as below, but I am not sure how to get the information from the field before it is set, or if this is the correct function to change them on the fly.
function filter_bp_get_the_profile_field_name( $field_name ) { // make filter magic happen here... $user_id = bp_loggedin_user_id(); // $bp_user_member_type = bp_get_member_type($user_id); $bp_user_member_type = $_POST['field_6']; //var_dump($bp_user_member_type); //var_dump($user_id); //die("filter_bp_get_the_profile_field_name"); // field name (case sensitive) if ($bp_user_member_type == 'parent' ) { // if( $field_name == 'Cost Per Hour' && 'edit' === bp_current_action() ){ switch($field_name) { case 'Cost Per Hour': //if( $field_name == 'Cost Per Hour' ){ $field_name = 'Maximum Amount To Pay For Sitting Per Hour'; break; case 'Maximum Number Of Children Able To Sit': $field_name = 'Number Of Children'; break; case 'Age Ranges Of Children Able To Sit': $field_name = 'Age Ranges of My Children'; } } else { if ($bp_user_member_type == 'babysitterornanny' ) { switch ($field_name){ case 'Maximum Number Of Children Able To Sit': $field_name = 'Maximum Number of Children I Am Able To Look After'; break; case 'Age Ranges Of Children Able To Sit': $field_name = 'Ages of Children I am Able to Sit'; break; } } } return $field_name; }; // add the filter add_filter( 'bp_get_the_profile_field_name', 'filter_bp_get_the_profile_field_name', 10, 1 );
Thanks for that. I think I’d actually had the right code to begin with, using the member type to control what would be displayed. I think I’d become a bit tired at that stage of proceedings and hadn’t properly tested everything.
I did test your code suggestion and it worked without issues as well.
Now I can work on multiple fields that are required across different types, but give them different labels.
This is resolved – no further help required.
I had to force it to be loaded on a second popup, otherwise it would not load the edit page correctly.I have got this working, but now need to make sure the link is only active when on the profile edit page
I currently have used the example shown in the following post https://buddypress.org/support/topic/custom-avatar-upload-page/ and then edited bp-core-template.php to change the function that lets it know when to load the full avatar loading page.
My issue is now that the crop image is not functioning, any help?
Anyone? I believe I understand the functions shown here http://pastebin.com/ta67ezs0 but do not need it as a separate form, but inline with the rest of the profile information
I think if I added the first function that was not related the new subnav, it should display on the edit profile page, could anyone confirm?
This one is now resolved – found support from the modal popup I was using, had been attacking this from the wrong perspective!
Update – issue is with Bluehost, I am using Postman SMTP, and changed to the Google GMail API and all is well with BuddyPress emails again.
Have you checked out Buddypress Conditional Profile Fields ?