Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 10,076 through 10,100 (of 94,565 total)
  • Author
    Search Results
  • #269509
    Boone Gorges
    Keymaster

    Hi @datenfresser – You can customize the template by overriding the template file in your child theme. Copy the file wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/messages/messages-loop.php to wp-content/themes/[your-theme]/buddypress/members/single/messages/messages-loop.php, and make your modifications to the new file.

    To turn avatars into links, find lines that look like:

    
    <?php bp_message_thread_avatar( array( 'width' => 25, 'height' => 25 ) ); ?>
    

    and do this:

    <a href="<?php bp_message_thread_from(); ?><php bp_message_thread_avatar( array( 'width' => 25, 'height' => 25 ) ); ?></a>

    Something like that should get you close to what you want.

    To link the excerpt, find the line that includes bp_message_thread_excerpt(), and wrap it in a link to bp_message_thread_view_link(). See the ‘View Message’ markup just above for a template you can copy.

    #269508
    peter-hamilton
    Participant

    I think you need a child-theme and change the header.php to include your custom navigation, I have created a similar menu but did require a lot of work in the header.

    Full profile functionalities added to the main navigation

    When new messages the number of messages shows in the message-icon, links to profile page, also woocommerce integrated and a dashboard link for admin only.

    The following is in my custom header.php

    First code links to profile.
    <li><a href="<?php echo bp_loggedin_user_domain(); ?>" class="activitylink" title="My Account"><span class="dashicons dashicons-admin-users"></span></a></li>

    This code deals with messages.

    <li><a href="<?php global $current_user; echo home_url() . '/members/' . $current_user->user_login . '/messages/'; ?>"><span class="dashicons dashicons-admin-comments"></span><span class="commentcount"><?php if (bp_get_total_unread_messages_count( bp_loggedin_user_id() ) > 0 ) { ?> <?php bp_total_unread_messages_count( bp_loggedin_user_id() ) ?><?php } ?></span></a>
    </li>

    Since I did not want too much in my nav I only used these buddypress features, more would clog up my website too much.

    But where it comes down to is with a child-theme you can make it exactly as you like.

    Good luck
    P.H.

    #269507
    peter-hamilton
    Participant

    I guess the only way to achieve this is to create a child-theme and override the buddypress templates there, then your theme stays ok unless they make a major change with hooks etc.

    #269503

    In reply to: New user welcome email

    neilsaunders
    Participant

    Thank you @terabyten for sharing your solution. This also worked for me. Good for others to know when they hit this problem with Buddypress.

    #269502
    brent0r
    Participant

    I’m wanting to integrate buddypress into my existing navbar on my site. At the moment the buddypress profile (notifications count, howdy user and menu) are in the top right of the WordPress admin toolbar. What options do I have to move this / add it to an existing navbar (basically the way this website utilises its own navbar and not the WP adminbar.

    Thanks in advanced.
    Brent

    #269499
    billybelly
    Participant

    Hi all. I wonder if anybody else had a similar problem?
    I have installed buddypress (2.9.2) on WP (4.9.1), Flatsome Theme (3.4.0)
    Buddypress creates its pages OK, Activity, Register, members and so on. I can view the pages, but I cannot open them for Edit with UX Page Builder. What happens is the UX PB remains in loading forever… it hangs. UX PB open normally with other pages both before and after the Buddy Press installation.
    I have contacted Flatsome theme and they say… they don’t guarantee compatibility… in other words they don’t have any suggestions so far. Does anybody at BuddyPress have any pointers?
    Many thanks.
    Kind regards,
    Ivana

    #269498
    areaano
    Participant

    I have latest Buddypress, latest WordPress, latest Kleo-template.

    How can i make custom page to my group. I want to put a chat on the page. Only for group members.

    astrologeeks
    Participant

    Then in your entry.php file in your custom buddypress theme folder (located in wp-content/themes/your-theme/buddypress/activity/), replace the delete link code from this

    <?php if ( bp_activity_user_can_delete() ) bp_activity_delete_link(); ?>

    to this

    <?php if ( bp_activity_user_can_delete() ) bp_activity_delete_link_aside(); ?>

    astrologeeks
    Participant

    You will need to add something like this to your bp-custom.php file. If you haven’t already, create this file and place it in the wp-content/plugins/ folder. I added “aside” to the name to tell buddypress this is a custom function and not re-declare an already existing function.

    function bp_get_activity_delete_link_aside() { 
     
        $url = bp_get_activity_delete_url(); 
        $class = 'delete-activity'; 
     
        // Determine if we're on a single activity page, and customize accordingly. 
        if ( bp_is_activity_component() && is_numeric( bp_current_action() ) ) { 
            $class = 'delete-activity-single'; 
        } 
     
        $link = '<a href="' . esc_url( $url ) . '" class="item-button bp-secondary-action ' . $class . ' confirm btn white btn-xs" rel="nofollow" style="padding: .2195rem .5rem;font-size: 0.8rem;">' . __( '<i class="fa fa-fw fa-trash text-muted"></i>', 'buddypress' ) . '</a>'; 
     
        /** 
         * Filters the activity delete link. 
         * 
         * @since 1.1.0 
         * 
         * @param string $link Activity delete HTML link. 
         */ 
        return apply_filters( 'bp_get_activity_delete_link', $link ); 
    } 
    function bp_activity_delete_link_aside() { 
        echo bp_get_activity_delete_link_aside(); 
    } 
    #269480
    Gunu
    Participant

    Try this

    #buddypress ul.item-list li div.item-desc {
        color: #000000;
        font-size: 80%;
    }
    #269476
    Henry Wright
    Moderator

    If you have the user’s ID then you can pass it to the get_userdata() WordPress function like this:

    $user_id = 1;
    $user = get_userdata( $user_id );

    Then you can use the $user object like this:

    echo sanitize_email( $user->user_email );

    Note, how you get the user’s ID will depend on the context. See:

    Playing with the user’s ID in different contexts

    #269475
    Gunu
    Participant

    @erraticramblings

    Try this in: – Customizer – Extra CSS

    #buddypress div#item-header div#item-meta {
        color: #000000;
        font-size: 80%;
    }
    #269473
    cbeckley
    Participant

    I am attempting to display some user data on a single page so members of a group can see all of the members within that group’s info without going into each profile. I have successfully displayed 2 custom fields, but cannot display the user’s email address.

    It is a private site, so I cannot link to it. Hopefully this is something minor that I am just missing.

    I have found so many scattered suggestions for this type of thing, but nothing has worked.
    I have tried all of these types with various field names (email, Email, Email address, Account email, etc.) and nothing displays the email address.

    <?php echo bp_member_profile_data(‘field=Email’); ?>

    <?php echo bp_member_profile_data(‘field=Account email’); ?>

    <?php echo xprofile_get_field_data( ‘field=Account email’ ); ?>

    <?php echo get_post_meta(get_the_id(), ‘user_email’, true); ?>

    <?php echo xprofile_get_field_data( ‘user_email’, get_the_author_id()) ?>

    I am updating a copied version in my theme of members.php from /buddypress/members/

    Any ideas would be appreciated. Thanks!

    BP v2.9.2
    WP v4.9.1

    #269472
    ccookasi
    Participant

    I have a (private) corporate intranet that incorporates BuddyPress for Employee Profiles.

    Without giving users the ability to edit their own profiles, I would like the Member Profile Pages to display the Profile Photo, User Name (possibly regardless of “Display Name” choice), User Email, User Description (renamed “Position”), and a link to the local job description page for their position.

    Is it possible to modify the profile fields from wp-profile.php etc. using bp-custom.php and action hooks? Is there a better way to customize the member profile page template?

    Thank you.

    #269471
    vantra117
    Participant

    Thanks a bunch, Gunu. It works. I also added this CSS to hide the repeated activity comment.

    #buddypress #activity-stream .activity_comment {display:none;}

    #269470
    silklogi
    Participant

    Guy i had installed buddypress plugin on my website https://www.silklogistics.com.pk/ but after some day the error occures 508 error.my friend suggest me to uninstall buddypress plugin. now there is no error but i want to use buddypress because community comes on my website.
    Kindly help me guys

    Anonymous User 15521305
    Inactive

    I would like to increase the avatar/gravatar size to 180px in the member directory page. I use css to change the size to 180px but the images look blurred. I have followed the instruction here https://codex.buddypress.org/themes/guides/customizing-buddypress-avatars/ by adding the following lines to bp-custom.php in the plugin folder but it doesn’t work. The avatar/gravatar still look blurred.

    define ( ‘BP_AVATAR_THUMB_WIDTH’, 180 );
    define ( ‘BP_AVATAR_THUMB_HEIGHT’, 180 );
    define ( ‘BP_AVATAR_FULL_WIDTH’, 180 );
    define ( ‘BP_AVATAR_FULL_HEIGHT’, 180 );

    What am I missing?

    #269466
    Gunu
    Participant

    Plugin “BuddyPress Activity Stream Bump to Top” Last updated: 6 years ago

    I do not know if that still works. But I have found a working alternative.

    Look here – http://techiescircle.com/move-new-commented-activity-stream-to-top/

    #269465
    peter-hamilton
    Participant

    there is a plugin called “BuddyPress Activity Stream Bump to Top”.
    I use it and does exactly that.

    #269464
    peter-hamilton
    Participant

    Not done it, can not help, but applaud your choice to change vbulletin for buddypress.

    #269461
    bb3000
    Participant

    Has anyone done it and can describe the process?

    Are there any plugins to do the job?

    Thanks for your help, guys!

    Trying to add tab not only under Buddypress>Group>Manage BUT also so that visitors can see the tabs and fields readonly on Buddypress Main Tab

    I managed to get the tab added and it to load a blank page with the tab group headers but cannot seem to be able to losd the field. I also tried to include the other-fields.php under bp-extend-groups-fields/templates/groups/single/admin but no go…

    Any ideas? I added the code below to my theme functions.php file to add a tab and page called Info under the main BP nav

    function my_new_groups_info_page() {
    global $bp;
    if (isset($bp->groups->current_group->slug)) {
    		bp_core_new_subnav_item(array(
    		'name' => 'Info',
    		'slug' => 'Info',
    		'parent_slug' => $bp->groups->current_group->slug,
    		'parent_url' => bp_get_group_permalink($bp->groups->current_group),
    		'screen_function' => 'my_new_group_show_screen',
    		'position' => 10));
    		}
    }
    add_action('wp', 'my_new_groups_info_page');
    
    function my_new_group_show_screen() {
    add_action('bp_template_title', 'my_new_group_show_screen_title');
    add_action('bp_template_content', 'my_new_group_show_screen_content');
    		$templates = array('templates/groups/single/plugins.php', 'other-fields.php');
    		if (strstr(locate_template($templates), 'templates/groups/single/plugins.php')) {
    		bp_core_load_template(apply_filters('bp_core_template_plugin', 'templates/groups/single/plugins'));
    		} else {
    		bp_core_load_template(apply_filters('bp_core_template_plugin', 'plugin-template'));
    		}
    	}
    function my_new_group_show_screen_title() {
    		echo 'New Tab Title';
    		}
    
    function my_new_group_show_screen_content() {
    
    echo '<div class="clear"></br></div>';		
    echo '<ul class="button-nav" role="navigation">';
    echo bp_extend_fields_group_tabs( );
    echo '<ul>';
    
    echo '<div class="clear"></div>';
    
    include 'templates/groups/single/other-fields.php';
    
    	
    	}
    #269456
    darren1985
    Participant

    ive just noticed the same thing, its defo something with the theme inspirebook.

    if i switch to a different theme it works, i can upload cover images to profile and group.

    if i enable the theme again, i cant.

    i have deleted the theme and uploaded it again and still nothing.

    i have disabled all plugins except buddypress and still the same, so wondering what it could be

    adminontown
    Participant

    Hi,

    I’m new to buddypress and have had a good experience until spam hit me.

    Every day i log in and some spam accounts have set up accounts and user groups. Trust is a key issue within my community and this breach has left my users walking away.

    are you able to please recommend how i solve this issue?

    thank you

Viewing 25 results - 10,076 through 10,100 (of 94,565 total)
Skip to toolbar