Alex Githatu
Forum Replies Created
-
Forum: Plugins
In reply to: [BuddyPress XProfile Custom Image Field] Image preview on profilesResolved.
Forum: Plugins
In reply to: [BuddyPress XProfile Custom Image Field] Image preview on profilesThe paid support is USD 100 to get the images on the Registration page to show up on the Activation page. If you wish to proceed with this, then send me a message on the Contact form at Alex the African (wordpress.com).
Making compatible would make sense if BuddyPress XProfile Custom Image Field was a premium plugin.
Forum: Plugins
In reply to: [BuddyPress XProfile Custom Image Field] Image preview on profilesFrom my tests, when you activate both BuddyPress XProfile Custom Image Field and BuddyPress Xprofile Custom Field Types, you get a 404 error during registration. This error prevents the images submitted during registration from showing on the Activation page. If you must use both plugins, then I can help you get them to work together. This shall of course be paid support.
Forum: Plugins
In reply to: [BuddyPress XProfile Custom Image Field] Image preview on profilesThanks for this.
Which plugins have you installed?
Forum: Plugins
In reply to: [BuddyPress XProfile Custom Image Field] Image preview on profilesHello,
I’ll take a look and get back to you. Meanwhile let me know what environment you are working with:
WordPress version
BuddyPress version
XProfile Custom Image Field version
MySQL version
PHP version- This reply was modified 1 year, 1 month ago by Alex Githatu.
Forum: Reviews
In reply to: [BuddyPress XProfile Custom Image Field] Life saverThank you very much for the glowing review.
Hi Evan,
I have updated the plugin with the suggested code.
Hi Evan,
Great! Send the screenshots to [email protected]. You can also share your email address there so I can reach you privately for any clarification.
I’ll also look into the latest suggestions for inclusion in the next update.
Kind regards,
Alex
Hi Evan,
Thank you for using my plugin.
Were you able to capture any screenshots of the BEFORE and AFTER? These would be great for me to see the difference.
I’ll definitely include this in the next update.
Kind regards,
Alex
Forum: Plugins
In reply to: [BuddyPress XProfile Custom Image Field] Creates fake path on registerationHi @nithesh123,
I can look at the registration code for you at a fee. If the WPLMS code is well structured then it’s possible to do a permanent fix. Otherwise, the fix shall only work as long as you don’t upgrade the theme. Send me your email using the contact form here: https://alextheafrican.wordpress.com/about/ and we can discuss the details.
Kind regards,
Alex
Forum: Plugins
In reply to: [BuddyPress XProfile Custom Image Field] Creates fake path on registerationHi,
Thanks for using my plugin.
Are you using a custom theme? Is there any file saved to the server after registration?
Check that the registration form is actually sending the image to the server.Whenever you have “fakepath” in a filename it means the name was generated by the browser. So somehow the name from the browser is being used on the server instead of the name after the image has been saved to the server.
Also, which part of the code did you test in order to get the file name?
Kind regards,
Alex
Forum: Plugins
In reply to: [BuddyPress XProfile Custom Image Field] Domain path repeated twice in outputHello hcst,
Thanks for using my plugin.
Some clarifications:
1. What versions of WordPress and BuddyPress are you using?
2. Have you done any customization of the image display?Kind regards,
Alex
You’re most welcome ??
Hello fdlprod
I found the issue and applied a fix. You’ll be able to view the url of the posted image. BuddyPress does not allow display of images on the Manage Signups screen so you’ll have to copy the image url and post it into another browser tab to view.
Replace the function bpxp_image_field_save_on_signup with the following code:
function bpxp_image_field_save_on_signup($user_id, $user_login, $user_password, $user_email, $usermeta){ global $bp; global $wpdb; $update_signup_meta = false; $bp->bpxp_image_field = new stdClass(); $bp->bpxp_image_field->user_id = $user_id; $posted_field_ids = explode( ',', $_POST['signup_profile_field_ids'] ); $this->bpxp_image_field_save($posted_field_ids); foreach ( (array)$posted_field_ids as $field_id ) { $field_name = 'field_' . $field_id; if ( isset( $_FILES[$field_name] ) ) { if ( empty( $_POST[$field_name] ) ) { $file_name = $_FILES[$field_name]['name']; $error_message = sprintf( __( 'The image %1$s was not uploaded.', 'bp-xprofile-image-field' ), $file_name ); bp_core_add_message( $error_message, 'error' ); } else { $image_path = $_POST[$field_name]; xprofile_set_field_data( $field_id, $user_id, $image_path ); $image_url = WP_CONTENT_URL . $image_path; $usermeta[$field_name] = $image_url; $update_signup_meta = true; } } } if ($update_signup_meta) { $query = $wpdb->prepare( "UPDATE {$wpdb->prefix}signups SET meta = %s WHERE user_login = %s", maybe_serialize($usermeta), $user_login ); if ( ! $wpdb->query( $query ) ) { return new WP_Error( 'signup_error', __( 'The image name could not be saved to the sign-up data', 'bp-xprofile-image-field' ) ); } } do_action( 'bpxp_image_field_save_on_signup', $user_id, $user_login, $user_password, $user_email, $usermeta ); }
Thanks…
Alex
Hello fdlprod
Thanks for installing my plugin and sorry for the difficulties. I have some questions:
1. What plugins have you installed?
2. What steps/process are you using to register a user?
3. What code customizations have you done for the registration process?Thanks…
Alex