Replies
- Brajesh Singh on October 3, 2018 at 4:55 am in reply to: BuddyBlog error leaving a comment and uploading media #17784
Hi Kreatsya,
It seems there is a confusion. I did not say it is browser specific. I said tha it is most probably a javascript error you should look into console.
It does not matter which browser’s console you check. Since chrome has a nice document, I linked it for you.
Also, as of the media modal is concerned, I can assure that it is not cause by our plugin. We are simply using WordPress default editor and all the work is done underneath by WordPress itself.
Something else is misbehaving with the WordPress media modal and causing it. If you check our plugin, you will not find a single line of javascript code for front end(we don’t need them atleast yet).
So, I am sure that the error is due to some plugin misbehaving and not BuddyBlog.
A better strategy to find the conflicting plugin is to use a plugin like WP Staging and create an staging enviornment. Then disabling plugins one by one and finding the conflict.
Please let me know which plugin is conflicting.
About RT Media, It is in no way related to BuddyBlog upload. They have a custom uploader like we have in MediaPress. BuddyBlog does not use its own uploader and lets WordPress do the job.
Hope that clarifies.
Regards
Brajesh - Brajesh Singh on October 2, 2018 at 7:20 pm in reply to: [Resolved] BuddyPress Signup Avatar. not correct cropping preview #17781
You are welcome.
- 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