Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 1,445 total)
  • Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    To send a message to all users, go to your profile > Messages > Compose
    and select the checkbox that says “This is a notice to all users”.

    It will send a message, not a notice.
    I agree that the use of the word notice is rather confusing.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Your question is specific to bbPress.
    You may want to ask on the bbPress support forum.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    $memberArray = get_users( 'fields=ID' );
    https://codex.wordpress.org/Function_Reference/get_users

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Since your issue is specific to your theme, you probably won’t find an answer here unless somebody else has that theme.

    Your best bet is to ask the One Community theme author.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    You make a good point.
    It definitely should be exposed as a DEFINE, similar to define('BP_DEFAULT_COMPONENT', 'profile' );

    I suggest you create an enhancement ticket. Use the same user / pw that you use here.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Note that BP installs usually use bbPress for forums.
    Integrating BP and Simple Machine Forum may not be easy or even possible.

    The best approach is to clone your site as a dev site and try things out.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Your question is better asked on the bbPress support forum.

    The fix is simple – open to the file and go to the line in question and change function display() to function display($group_id = NULL)

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    BuddyPress does not call class phpmailerException so the error is from something else on your site.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    What version of BP are you using?

    Have you seen this?

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    I have copied home.php file from “single” directory to “community” directory I created in my child theme

    So does the file structure in your community dir look like this:
    community/members/single/home.php

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    I’m surprised that it works via add_filter.
    The hook is a do_action.
    And – You don’t need the global.
    And – bp_is_page is deprecated.

    function bp_guest_redirect( $name ) {
    
        if( ! is_user_logged_in() ) {
    
            if ( bp_is_activity_component() || bp_is_groups_component() || bp_is_blogs_component() || bp_is_directory() || bp_is_user() ) 
                wp_redirect( get_option('siteurl') . '/wp-login.php/' );
    
        }
    
    }
    add_action( 'get_header', 'bp_guest_redirect', 1, 1 );
    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    If you are on the Members page, the search function already supports username.

    What are you trying to do?

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    I ended up duplicating the site

    Good, now you have a dev site.
    Try turning off all plugins except BP and continue using the 2015 theme.
    If the problem persists, then it might be a BP issue.
    If not, turn the other plugins back on one at a time and hopefully find the plugin that is causing the issue.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    @i-am-anja – I apologize for the fact that you weren’t provided good info on how to access your dashboard.

    You will need to use FTP or if your host provides a File Manager ( maybe thru cpanel ).
    Then navigate to [your site]/wp-content/plugins/buddypress and either delete the buddypress folder or rename to something else, for example ‘buddypressX’.
    Doing so means BP will not be loaded and you should be able to access your dashboard.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    I am using a custom theme, so it’s possible that is the problem,

    Switch to a WP theme like 2013.
    If the problem goes away, then it’s something in your theme.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    BP is not creating that form.
    The form is coming from another plugin or code in your theme.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Please open a ticket, using the same login you use here.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Members won’t appear in the members loop until they have a last_activity entry.
    Logging in will create that entry.
    Or you can give them one as soon as a member is registered via front or back end:

    function webmister_add_last_activity( $user_id ) {
    
        bp_update_user_last_activity( $user_id, bp_core_current_time() );
    
    }
    add_action ('user_register', 'webmister_add_last_activity', 20, 1);

    Put the function in your theme/functions.php or in bp-custom.php.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    I would like to have a list of posts with hyperlinks instead of displaying the whole content.

    @alexterchum – his code kindly provides explicit instructions for doing exactly that.
    Did you read them?
    Here is what you need:

    foreach($myposts as $post) {
       setup_postdata( $post );
       echo '<a href="' . get_permalink($post->ID) . '">' . get_the_title($post->ID) . '</a><br/>';			
    }
    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    afaik, even site admins and groups admins cannot edit activity stream items on the front-end.
    This will give group moderators the ability to delete activity stream items:

    function majecdad_group_mod_delete( $can_delete, $activity ) {
    	
       if( $activity->component == 'groups' ) {
    	
    	$group_id = $activity->item_id; 
    		
    	if( bp_current_user_can( 'bp_moderate' ) || groups_is_user_mod( bp_loggedin_user_id(), $group_id ) )
    	    $can_delete = true;
    	
       }
    
       return $can_delete;
    }
    add_filter('bp_activity_user_can_delete', 'majecdad_group_mod_delete', 21, 2 );
    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Are you sure you’ve translated this label: Friends <span class="%s">%s</span>

    Did you include this Sources Keyword when creating the translation .mo in poEdit: _x()

    The Friends label is generated by __() and _x(), depending on the context.

    More info re keywords: http://www.cssigniter.com/ignite/wordpress-poedit-translation-secrets/

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    The @ symbol is added in this file:
    buddypress\bp-templates\bp-legacy\buddypress\members\single\member-header.php

    Create a template overload of that file and remove the symbol.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    It would be helpful to your question to get some terminology sorted.

    Example:

    • username aka login name: jayd94
    • display name: Daniel

    In BP, your profile would show:
    Daniel
    @jayd94

    So the name on the BP ‘side’ of register = display name
    And the name on the WP ‘side’ of register = username aka login name
    Both fields are required.

    Using that info, can you restate your question.

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Try using this hook fromfunction groups_delete_group in buddypress\bp-groups\bp-groups-functions.php

    do_action( 'groups_before_delete_group', $group_id );

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    Your approach should be okay, but…
    Since you only want member IDs, then only request IDs.
    You can avoid retrieving user objects for each member and then having to extract their ID by doing this:

    function modify_members_loop( $qs=false, $object=false ) {
    
        if ( $object != 'members' )
            return $qs;
    
        $subscribers =  get_users( 'fields=ID&role=subscriber' );
        
        $args['include'] =  $subscribers;
    	
        $qs = build_query($args);
    
        return $qs;
    }
    add_action( 'bp_ajax_querystring' , 'modify_members_loop', 25, 2 );
Viewing 25 replies - 1 through 25 (of 1,445 total)
Skip to toolbar