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: 25406
    Brajesh Singh on in reply to: [Resolved] Report Popup not completely visible #17698

    Hi Carsten,
    1.0.6 is available now.

    1. It fixes the position. Thank you for contributing.
    2. The buttons can be generated with any markup now.

    I am sharing two snippets(Please only use only of them)

    Example 1:- Change the button markup to use “li” instead of div everywhere.

    
    /**
     * Modify the button args for BuddyPress Moderation Tools.
     *
     * @param array $args args.
     *
     * @return array
     */
    function buddydev_modify_bpmts_button_args( $args ) {
    	$args['wrapper_tag'] = 'li'; /* make the button like <li ...><a href=...>Report</a></li>*/
    
    	return $args;
    }
    
    add_filter( 'bpmts_report_button_args', 'buddydev_modify_bpmts_button_args' );
    
    

    Example 2:- Change only the markup for the User profile header Report button to use li. In this case, we check for context.

    
    
    /**
     * Modify the User profile button args for BuddyPress Moderation Tools.
     *
     * @param array $args args.
     *
     * @return array
     */
    function buddydev_modify_bpmts_button_args_for_user_profile( $args ) {
    
    	// On User profile header button, use li tags.
    	if ( 'bp_user_header' === $args['context'] ) {
    		$args['wrapper_tag'] = 'li'; /* make the button like <li ...><a href=...>Report</a></li>*/
    	}
    
    	return $args;
    }
    
    add_filter( 'bpmts_report_button_args', 'buddydev_modify_bpmts_button_args_for_user_profile' );
    
    

    Please let me know if that works for you or not?

    Regards
    Brajesh

    PS:- The support for post type will be available next week’s release.

  • Keymaster
    (BuddyDev Team)
    Posts: 25406
    Brajesh Singh on in reply to: How to make custom follow button load with ajax #17697

    Hi Tosin,
    I am sorry, I don’t use that theme. If they have provide a way to add custom js, it will be fine. Or you can create a custom js file and add some code in functions.php to load the file.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25406
    Brajesh Singh on in reply to: Make one page public on site #17691

    Hi Chris,
    Yes, you can certainly protect it. It is doable.

    I don’t think the code is the problem, others will have similar approach. I did not say that specific code is bottleneck. I said, this approach of serving media using php may become a bottleneck. But if there is a regulation that needs it, You may use their code.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25406
    Brajesh Singh on in reply to: Make one page public on site #17689
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25406

    Hi Andi,

    Thank you for the kind words.

    1. I am still not sure as I have never found this issue. Try using 2 or 3 and see what happens.

    2. That’s good.

    3. I am sorry but the function ‘bp_core_new_nav_default’ is broken in BuddyPress 3.x . It is not working with 3.2 too and I have seen a ticket where it seems it will be available in 3.3. We will have to wait for it to use it again.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25406
    Brajesh Singh on in reply to: Make one page public on site #17686
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25406

    Hi Max,

    I am sorry but these plugins are not tested together. Please give a try and see if it ads to the queue(I doubt it).

    If it does not, I can certainly make them work together. I will need 2-3 days to push an update for the moderation plugin to support it.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25406

    Hi Max,

    The avatars become visible after a user account is activated. Try activating an account.

    I haven’t tried the upload avatar via ajax plugin. Seems like a good option.

  • Keymaster
    (BuddyDev Team)
    Posts: 25406
    Brajesh Singh on in reply to: Make one page public on site #17681

    Hi Chris,
    Even though the force profile plugin is from us, these two code are not guaranteed to work together.

    If your goal is only to limit the site to logged in members, you don’t need force profile, all you need is the above code.

    If you want to make sure your users have uploaded an avatar to use site, you will need the force profile plugin.

    About wp-content, feel free to use their code. I believe it should not be protected even if you have moderate number of frequently accessed media. Since you are going to create a social site, It will prove a bottleneck.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25406

    Thank you Max.
    Glad it worked 🙂

    Best Regards
    Brajesh