Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25494

    Hi Johan,
    Please do report to them. They should be able to help.

    About the above error,

    It is coming from fetching of profile data for an invalid user(most probably). Can you provide the complete backtrace of the error. That can help me assist you quickly.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494

    Hi Johan,

    Thank you for the questions.

    1. Sure, we can hook to use_register action to make it work. Please let me know. I can put some code.
    2. No, the plugin was not designed with registration in mind. It does not have the ability to restrict and it needs to be done as custom.

    The extending is not feasible without partially rewriting the plugin. We do not have the UI or the storage for history/reason.
    It is certainly doable but beyond what we can offer on support.

    If you are a developer, I may be able to provide some assistance on how to achieve it.

    PS:- I still believe Registration Options is better suitable for this task as they have created the plugin specifically for this use case.
    Have you reported it to them?

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    Brajesh Singh on in reply to: Photos are not loading when I add a gallery #25334

    Hi Sandra,
    Welcome to BuddyDev forums.

    Please visit MediaPress->settings and try clicking Reset settings. Please let me know if that makes it work or not?

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494

    Hi Cindy,
    Welcome to BuddyDev forums.
    Thank you for the purchase.

    I am trying to create an Activity Stream that only includes the user’s friends’ activity and the activity of any group the user is part of. I don’t want the other tabs available/showing. Can you please advise?

    This plugin does exactly that but it does not remove other tabs. Do you want to emove all tabs from profile activity page?

    If you do that a user won’t be able to visit other user’s activity page on their profile(Your stream is only visible to you if you remove all other tabs).

    Does it also pertain to the /activity ?

    If you want, you can make that page as the stream which shows activity from friends/groups only and not from whole site. It is available as a setting in the plugin.

    Please let me know if you want to remove profile activity sub tabs, I can assist with that.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    Brajesh Singh on in reply to: Fatal Error on Upload of the Plugin #25326

    Hi Zui,
    I am sorry for the inconvenience.

    Do you have BuddyPress active? The error is coming from the use of a BuddyPress function.

    Also, are you on a normal WordPress or on a network install?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494

    Hi Johan,
    Thank you for reporting. I am aware of the issue.

    The counts in BuddyPress do not behave correctly as they do not take into consideration the current query. They only take consideration of the global state.

    There is a solution but these are not efficient, that’s why I haven’t included it in the plugin..

    I will share the code to help fix it.

    regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    Brajesh Singh on in reply to: [Resolved] Hide member list/page from specific users #25322

    Hi,
    Here is the code.

    1. Let us define a function to check if the current user has one of the ids in the lsit

    
    
    /**
     * Check if the directory should be visible to a user.
     *
     * @return bool
     */
    function bp_custom_is_directory_visible() {
    
    	$visible_to_user_ids = array( 1, 2, 3, 20 );
    
    	return is_user_logged_in() && in_array( get_current_user_id(), $visible_to_user_ids );
    }
    
    

    You can add your own user ids.

    In case you wish to use username instead of the id, we can redefine the same function as

    
    
    /**
     * Check if the directory should be visible to a user.
     *
     * @return bool
     */
    function bp_custom_is_directory_visible() {
    
    	$visible_to_user_names = array( 'admin', 'xyz' );
    
    	return is_user_logged_in() && in_array( wp_get_current_user()->user_login, $visible_to_user_names );
    }
    
    

    Please note, you can use only one of the above as I have used same function name. Putting both in your file will generate error.

    Now that we have written the function for checking user, we can update our code from blog to use it as

    
    
    /**
     * Hide Members Directory from everyone.
     */
    function buddydev_hide_members_directory_for_all() {
    	if ( bp_is_members_directory() && ! bp_custom_is_directory_visible() ) {
    		bp_do_404();
    		load_template( get_404_template() );
    		exit( 0 );
    	}
    }
    
    add_action( 'bp_template_redirect', 'buddydev_hide_members_directory_for_all' );
    
    

    That’s all.

    Hope it works for you.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    Brajesh Singh on in reply to: Media Upload box not opening on iPhone #25321

    Hi Dave,
    I am sorry but I am unable to help with it currently. I am unable to create it on my linux or my colleagues windows desktop.

    is there anyway to check it via an emulator? or a browser addon. If I can see it, It will take me onlu minutes to fix.
    I need to see the exact error in console or the behaviour.

    The worst case scenerio is I will by an ios based device sometimes around the end of year and fix it.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494

    Hi Johan,
    That is expected behaviour. We have a admin_notices hook there for showing notices. since it is common for all plugins to use and attach to this hook for showing the notice, you are seeing it.

    We can move the notice section above the badges if that helps.

    regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494

    Hi Johan,
    Thank you for the topic.

    1. You are most probably using a WooCommerce plugin(seems related to stripe payment) which is showing the notice. Please look for that.

    2. It is a valid question but we are not sure how to provide 3 way ordering. The solution to to provide a drag/drop interface in the admin and let you reorder as you please. We will explore it in future. For now, We don’t have much choice here.

    Regards
    Brajesh