Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

    @henrywright

    Is the Friend Connections component activated when you go to Settings > BuddyPress?

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Meta would allow you to segregate activity item types. You could add to meta after a new activity item is posted. The hook for that is bp_activity_add.

    Hope this helps.

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    BuddyPress activity items aren’t WordPress posts so as far as I know you can’t associate categories or tags with them. However, activity items do have associated meta.

    Take a look at these functions which will be useful to you:

    bp_activity_add_meta()
    bp_activity_update_meta()
    bp_activity_get_meta()
    bp_activity_delete_meta()
    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Try this:

    $args = array(
        'meta_key'       => 'group_id',
        'meta_value'     => '1',
        'meta_compare'   => '=',
        'post_type'      => 'event',
        'posts_per_page' => -1
    );
    $query = new WP_Query( $args );
    
    if ( $query->have_posts() ) {
        // Events
    } else {
        // No events
    }
    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Try using bp_parse_args instead. That’s the way I’d recommend to filter the members loop (both pagination and the loop of members will be addressed)

    Using bp_parse_args() to filter BuddyPress template loops

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    You have 2 options. I’d recommend the 2nd:

    1: Copy and paste the JavaScript to your my-theme/buddypress/members/register.php template. In this case you’ll need to copy the <script> tags also.
    2: Create a separate file (my-theme/js/script.js for example) and paste the JavaScript into that. In this case you don’t need to copy the <script> tags. If you go down this route you will need to enqueue the script. See this article for info on how to do that:

    wp_enqueue_script()

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Is that possible?

    Yes but you’ll need to install some plugins and maybe write some custom code to get the functionality you need.

    Check out the Getting Started article

    Getting Started

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Hey @kdannay

    Is BuddyPress actually sending รขโ‚ฌโ€œ or is the problem at your client’s end? i.e. your client’s email client can’t display the โ€“ character properly?

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    I just spoke with Boone, he suggested a reinstall of BuddyPress is needed because it looks as though your upgrade didn’t complete properly. bp-core-functions.php shouldn’t contain a reference to the BP_Core_Sort_By_Key_Callback class because the class was removed in 2.8.0.

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    The file (and class) exists in 2.7.4 but not in 2.8.0. I’ll ask over at Slack and report back.

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Note email addresses are used for password management (resetting a lost password for example). If members use dummy email addresses they risk being locked out of the site if they forget their password.

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    I believe xprofile_insert_field() will insert or update a profile field. Here’s an example of how to use it:

    $f = xprofile_insert_field( array(
        'field_group_id' => 8,
        'type'           => 'textbox',
        'name'           => 'Foo',
        'is_required'    => false,
        'can_delete'     => false,
        'description'    => 'This is a description.'
    ) );

    On success, $f will be the ID of the new field.

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    2.8.0 is a great release! Bravo to everyone involved ๐Ÿ™‚

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    You should try asking on the plugin’s support forum. Hopefully the author will be able to help.

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Try using Twenty Fifteen and disabling all plugins. It’s either a plugin or your theme that’s slowing things down. Once you find the culprit you can try opening a support ticket with the theme or plugin author.

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Check out this article:

    bp_core_new_nav_default()

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    I believe the wp_new_user_notification() function is what you’re looking for. It’s pluggable so you can define your own which will override the original definition:

    function wp_new_user_notification( $user_id, $deprecated = null, $notify = '' ) {
        // Your own code here. Copy and paste the original function's content and then modify if you wish.
    }
    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Do you have any plugins running aside from BuddyPress? If so, do you get the fatal error when activating BuddyPress (with the rest of the plugins deactivated)?

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Using the buddypress() function avoids the need to declare a global. Try to avoid globals in your code if you can.

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    I’m not aware of a function. Anyone else here know of one?

    You should be able to avoid the global by doing this:

    echo buddypress()->bp_nav['foo']['link'];

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Try buddypress()->foo->slug where foo is the name of your item. If this doesn’t work then “foo” may need to be a component.

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    You can define the slug when you call the bp_core_new_nav_item() function. For example:

    // Define slug in args array.
    $args = array(
        'slug' => 'foo'
    );
    bp_core_new_nav_item( $args );
    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    Hey!

    You can use the bp_get_activity_content_body hook to filter that function’s output.

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    You did the right thing informing WP Time Capsule as this is likely to be related to that plugin. Hopefully they’ll be able to resolve the issue.

    Profile photo of Henry Wright
    Henry Wright
    Moderator

    @henrywright

    You can add a condition inside your template. For example:

    // Get $value here.
    
    // Check if $value is Yes.
    if ( 'Yes' === $value ) {
        // Output
    }
Viewing 25 replies - 1 through 25 (of 2,561 total)
Skip to toolbar