Replies
- Brajesh Singh on October 2, 2018 at 7:11 pm in reply to: [Resolved] BuddyPress Signup Avatar. not correct cropping preview #17779
Hi Max,
That’s the problem. It is hardcoded and the only way to do is to completely rewrite the whole “bp_core_add_cropper_inline_js” function. It does not seem justified for a minor change like this. I will rather open a topic on BuddyPress trac and see if they can add it as an enhancement in future version.Regards
Brajesh - Brajesh Singh on October 2, 2018 at 7:09 pm in reply to: [Resolved] buddyBlog media not showing in lightbox #17778
Hi Richard,
I am sorry about that. Allow me 1-2 days and I will check on wporg with the lightbox plugins to recommend any.Thank you
Brajesh - This reply has been marked as private.
- Brajesh Singh on October 2, 2018 at 7:05 pm in reply to: [Resolved] BuddyPress Signup Avatar. not correct cropping preview #17775
Hi Max,
Even though both the section are handled by BuddyPress, Profile avatar uses different code for showing the cropper.If you want, you can fix it by editing buddypress/bp-core/bp-core-cssjs.php and changing oine 291 from
aspectRatio: <?php echo (int) $aspect_ratio; ?>,to
aspectRatio: <?php echo $aspect_ratio; ?>,The bug lies in the legacy code.
Regards
Brajesh - Brajesh Singh on October 2, 2018 at 6:55 pm in reply to: [Resolved] BuddyPress Signup Avatar. not correct cropping preview #17773
Thank you Max.
The problem is the aspect ratio
It should not be zero.aspectRatio: 0,Is your theme defining custom height/width for avatar? I just checked the BuddyPress code in ‘bp_core_Add_cropper_inline_js’ and the ratio is calculated by this
$aspect_ratio = $full_width / $full_height;It is later type casted to integer. So, if the theme defines width less than height, It gets set to zero.
I hope it clarifies.
Regards
Brajesh - Brajesh Singh on October 2, 2018 at 6:41 pm in reply to: [Resolved] BuddyPress Signup Avatar. not correct cropping preview #17771
Hi Max,
Please rightclick anywhere on the page where cropper is shown and then open view source. In the sourc, please search for ‘jCrop’ and let me know the code that you see. Please use pastebin for sharing the code.Thank you
Brajesh - Brajesh Singh on October 2, 2018 at 5:40 pm in reply to: [Resolved] BuddyPress Signup Avatar. not correct cropping preview #17769
Hi Max,
Please seeI am not sure about your issue, for me it is showing the correct aspect ratio. I thought earlier that aspect ratio was the problem?
- Brajesh Singh on October 2, 2018 at 2:30 pm in reply to: BuddyBlog error leaving a comment and uploading media #17766
Please see
https://developers.google.com/web/tools/chrome-devtools/console/Regards
Brajesh - Brajesh Singh on October 2, 2018 at 2:29 pm in reply to: [Resolved] Buddypress and Woocommerce #17765
Hi CDS,
My apologies for overlooking this topic.Since you have bought a license for WP4BP, I will suggest contacting their support for the solution.
You can contact them here.
https://themekraft.com/support/Regards
Brajesh - Brajesh Singh on October 2, 2018 at 12:25 pm in reply to: [Resolved] BP Ajax registration – Ajax Login #17761
Thank you David.