Replies
- MargaritaS on October 2, 2017 at 6:59 pm in reply to: [Resolved] How to approve photos before be published in user's profile? #10958
Hi Brajesh,
I have download the fiel, thank you.
But the problem persists. Can you send me by email teh correct file, please?
Also, when a user upload 2 photos and they are not approbed yet, the other users can see the first photo that appears on the cover of the his galery. I need that users can not see photos before admin has moderated them.
I try ti disable that usars can report the photos, because in the project where I am working the admin willl moderate it before be publish, then uses can not report the photos. Well, I disabble this option but also appear under the photos the button “Report”. You can see here:
https://margaritasil.wordpress.com/2017/10/02/not-allow-usersrepots-photos/
Best regards
Margarita
- MargaritaS on October 2, 2017 at 6:33 pm in reply to: [Resolved] How do that users can upload only 2 photos and create only one galerry? #10957
Thank you, thank you very very much Barjesh. Now it works perfect.
You are a very good person and a great professional, I admire you a lot.
- MargaritaS on September 30, 2017 at 8:26 am in reply to: [Resolved] How do that users can upload only 2 photos and create only one galerry? #10939
Thank you very much Brajesh.
I have created the file bp-custom.php with dreamweaver, I wrote in this file only the code that you gave me. I put it in wp-conten/plugins by FTP and in the forntend appear this message error in the top of the web site, well, is the code of the file that appear:
“/** * Filter on the gallery creation permission. * * @param bool $can can create. * @param string $component component name. * @param string $component_id component id. * * @return bool */ function mpp_custom_limit_gallery_creation( $can, $component, $component_id ) { // non logged in user’s don’t have permissions and admin’s don’t have restrictions. if ( ! is_user_logged_in() || is_super_admin() ) { return $can; } $user_id = get_current_user_id(); // How many galleries? $allowed_gallery_count = 1; // 0 = no restriction. if ( ! $allowed_gallery_count ) { // No restrictions when someone sets it to zero zero. return $can; } // only limit if crossed the limit. if ( mpp_get_user_gallery_count( $user_id ) >= $allowed_gallery_count ) { $can = false; } return $can; } add_filter( ‘mpp_user_can_create_gallery’, ‘mpp_custom_limit_gallery_creation’, 10, 3 ); /** * Filter on the media upload permission. * * @param bool $can can create. * @param string $component component name. * @param string $component_id component id. * @param MPP_Gallery $gallery gallery object. * * @return bool */ function mpp_custom_limit_media_upload( $can, $component, $component_id, $gallery ) { // non logged in user’s don’t have permissions and admin’s don’t have restrictions. if ( ! is_user_logged_in() || is_super_admin() ) { return $can; } $user_id = get_current_user_id(); // How Many media is allowed? $allowed_media_count = 2; // 0 = no limit. if ( ! $allowed_media_count ) { // No restrictions when zero. return $can; } // only limit if crossed the limit. if ( mpp_get_user_media_count( $user_id ) >= $allowed_media_count ) { $can = false; } return $can; } add_filter( ‘mpp_user_can_upload’, ‘mpp_custom_limit_media_upload’, 10, 4 );”
What have I to do?
- MargaritaS on September 30, 2017 at 8:07 am in reply to: [Resolved] Admin upload photos in user's profile #10938
Thank you very muchhhhh Brajesh! You are a crack!
Thank you very much Brajesh!
I do not have your emails i spam folder 🙁
- MargaritaS on September 29, 2017 at 7:10 pm in reply to: [Resolved] How to approve photos before be published in user's profile? #10910
Sorry, the message in spanish is not for this post. Is an error.
- MargaritaS on September 29, 2017 at 6:35 pm in reply to: [Resolved] How to approve photos before be published in user's profile? #10909
¿Me puedes decir tú el código y dónde debería colocarlo, por favor?
- MargaritaS on September 29, 2017 at 5:45 pm in reply to: [Resolved] How to approve photos before be published in user's profile? #10906
Hi Brajesh.
I put in “No” the option that users can reporter the photos, and it not works, under the photos continuing appear the botton “report”.
- MargaritaS on September 29, 2017 at 4:38 pm in reply to: [Resolved] "BuddyPress Deactivate Account" now emails are not sended #10905
I have done another test, now it works. The emails are sended.
- MargaritaS on September 29, 2017 at 4:37 pm in reply to: "BuddyPress Deactivate Account" email notification #10904
I have asked to plugin developer WP Change Default From Email plugin, but they have not answer me 🙁