Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 2,421 total)
  • Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Would you prefer feedback on GitHub or on the group you created at buddycore.com?

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    as long as it’s not an octocat.txt file

    Ah man, my plans have been ruined πŸ™‚

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Hi buddycore,

    I think the theme is looking good! Will you be accepting pull requests on GitHub?

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Cool, no worries!

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    bp_use_oembed_in_activity can be used to allow or disallow oEmbeds in activity items.

    The bp_activity_embed() function just adds a bunch of filters and actions. It’s not really for filtering the oEmbed output.

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Can you try the bp_activity_embed_html hook?

    add_filter( 'bp_activity_embed_html', function( $retval ) { 
        return '<div>' . $retval . '</div>';
    } );
    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Perhaps that filter hook is for filtering embeds in WordPress content? BuddyPress must have a filter for this. I’ll need to have a dig around…

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Think of it like this:

    • Filters return stuff
    • Actions don’t

    Here’s an example using the embed_oembed_html filter:

    add_filter( 'embed_oembed_html', function( $html, $url, $attr, $post_ID ) {
        // Use $html, $url, $attr and $post_ID here if you like.
    
        // Wrap the HTML output.
        $html = '<div>' . $html . '</div>';
    
        // Return $html.
        return $html;
    }, 10, 4 );
    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Check out the embed_oembed_html filter. I think that’s what you need here.

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Can you let me know what output you get from this?

    add_action( 'bp_loaded', function() {
        var_dump( bp_get_option( 'bp-active-components' ) );
    } );
    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Can you var_dump $bp_active_components just to see what we have in the db?

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    You need activated_plugin. It fires after a plugin has been activated but note that if a plugin is silently activated (such as during an update), the hook doesn’t fire.

    Here’s an example:

    add_action( 'activated_plugin', function( $plugin, $network_wide ) {
        // $plugin is a string (the path to main plugin file).
    }, 10, 2 );
    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    bcc stands for blind carbon copy. It’s a way of sending email to a group of recipients without them seeing who else the email is addressed to. So bcc will be blank every time.

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    @apokh glad you solved the problem πŸ™‚

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Which theme are you using?

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Try changing this

    $bcc = new BP_Email_Recipient( 'myemail@gmail.com' );

    to

    $bcc[] = new BP_Email_Recipient( 'myemail@gmail.com' );

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    @buddycore This looks super cool! Looking forward to seeing it up on GitHub πŸ˜€

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    In order to update a custom table you’d need to use the wpdb class.

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Are you sure the gform_after_submission_79 action is firing?

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    This could be a CSS issue. Which theme are you using?

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    We’d need to see your theme’s markup in order to provide you with the relevant CSS help. Do you have a link to your website?

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    This is possible. As @mrjarbenne said you can check the capabilities of the displayed user.

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Do you mean you want to show the post thumbnail?

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    WooCommerce with the Memberships extension is a good starting point. Memberships is a premium extension but I’ve used successfully in the past.

    I’m sure there’s a statistics add on too.

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Can you check if it’s going to their spam mailbox?

Viewing 25 replies - 1 through 25 (of 2,421 total)
Skip to toolbar