BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25128
    Brajesh Singh on in reply to: [Resolved] Prevent subscribers from uploading images? #531

    Hi A,
    Apologies for the delayed reply.
    Please put this in your bp-custom.php

    
    add_filter( 'mpp_user_can_create_gallery', 'mpp_custom_prevent_gallery_creation', 11, 3 );
    
    function mpp_custom_prevent_gallery_creation( $can_do, $component, $component_id ) {
    	
    	return buddydev_is_above_subscriber();
    }
    
    add_filter( 'mpp_user_can_upload', 'mpp_custom_prevent_gallery_upload', 11, 4 );
    
    function mpp_custom_prevent_gallery_upload( $can_do, $component, $component_id, $gallery ) {
    	
    	return buddydev_is_above_subscriber();
    }
    

    That will do it but the Ui will be still visible.

  • Keymaster
    (BuddyDev Team)
    Posts: 25128
    Brajesh Singh on in reply to: BP Magic Sidebar login #530

    Hi Jay,
    My apologies for the delayed reply.

    Please open the sidebar.php and look for this

    
    <input type="hidden" name="testcookie" value="1" />
    

    should be on line 67. Please remove that and it should be fixed.

  • Keymaster
    (BuddyDev Team)
    Posts: 25128
    Brajesh Singh on in reply to: [Resolved] Member type fields #529

    Good that you found it. Apologies for not being able to reply in time. Closing.

  • Keymaster
    (BuddyDev Team)
    Posts: 25128
    Brajesh Singh on in reply to: [Resolved] Anonymous Plugin / Extension Update #528

    Updating this as resolved.

  • Keymaster
    (BuddyDev Team)
    Posts: 25128
    Brajesh Singh on in reply to: [Resolved] Anonymous Plugin / Extension Update #527

    I am sorry I did not understand the question but glad that it is fixed.

    Yes, a direct sql queries will not be caught. Only the lists using bp_has_Activity will be filtered( that is used by all the places you see it in BuddyPress).

  • Keymaster
    (BuddyDev Team)
    Posts: 25128

    Hi Rojo,

    I am sorry about the delay. It will take me some time( say a week) before I work on the front end post form plugin. That is the plugin that needs update to make it work. The simple step is create an post when a user visits New Post screen and update that post with the actual content as the use saves.

    I am stuck with a project of mine and not able to devote my time on other things. If you can wait for a week, I will get this in. If you do it yourself, please do send a pull request on github.

  • Keymaster
    (BuddyDev Team)
    Posts: 25128
    Brajesh Singh on in reply to: Stealth Mode Issue #514

    Hi,
    Welcome to the BuddyDev forums.
    Can you please clarify me about this

    When in stealth mode it is also hiding me from logging in

    I am sorry but I could not understand that. Is it stopping you from login in to you dashboard?

  • Keymaster
    (BuddyDev Team)
    Posts: 25128
    Brajesh Singh on in reply to: [Resolved] Prevent subscribers from uploading images? #512

    Hi Achim,
    That is very easy to do. I just need to ask you another question tough. Do you want your subscribers to create galleries? I guess an obvious answer should be no.

  • Keymaster
    (BuddyDev Team)
    Posts: 25128
    Brajesh Singh on in reply to: Network User Role #509

    Hi Jay,
    I can provide you a solution based on the above two hooks but that won’t be efficient enough.

    Also, Can you please tell me how the network identifies a teacher( role or capability ) and I will post the code.

  • Keymaster
    (BuddyDev Team)
    Posts: 25128
    Brajesh Singh on in reply to: [Resolved] User Role Error Posting Images #505

    Hi JC,
    Thank you for confirming.
    Marking it as resolved. Please feel free to create new topic if you need any help in future 🙂

    Regards
    Brajesh