Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 10,201 through 10,225 (of 68,948 total)
  • Author
    Search Results
  • #253437
    danbp
    Participant

    Hi @famous,

    anything directly related to URL for bp is listed here:
    http://hookr.io/plugins/buddypress/#index=l&search=url

    In most case, you can built a link by array, which generally extend pre existing parameters. It’s very variable and depend where and how the link shoud work.

    Here some exemple snippets to add a link to a member’s profile.

    /* add external link on buddy menu bar */
    function bpfr_menubar_link() {
    global $bp;
    
    if ( !is_user_logged_in() )
        return false;
    
    $link = bp_get_loggedin_user_link();
    
    	$bp->bp_nav[$slug] = array(
    			'name'                    => 'View my profile',
    			'slug'                    => 'super_link',
    			'link'                    => $link,
    			'css_id'                  => 'super-link',	
    			'position'                => 20
    		);
    }
    add_action( 'bp_core_new_nav_item', 'bpfr_menubar_link', 999 );
    
    /* link to profile on SWA page */
    function goto_my_profile_tab() {
      if ( !is_user_logged_in() )
        return false;
    
      if ( bp_is_active( 'xprofile' ) )
    
        echo '<li><a href="'. bp_get_loggedin_user_link() .'">View my profile</a></li>';
      
    }
    add_action( 'bp_activity_type_tabs', 'goto_my_profile_tab' ); // SWA page
    add_action( 'bp_members_directory_member_types', 'goto_my_profile_tab' ); // members directory page
    
    /* shortcode linking to profile [xyz] */
    function bpfr_link_to_profile() {	
    return '<a href="'. bp_get_loggedin_user_link() .'">View my profile</a>';			
    }
    add_shortcode( 'xyz', 'bpfr_link_to_profile' );

    Another technique for groups here.

    In hope this will help you to go further.

    #253427
    Andrew Tegenkamp
    Participant

    There is also a free plugin at http://www.buddyboss.com/purchase/buddypress-auto-group-join/ if that helps.

    #253422
    modemlooper
    Moderator

    that’s correct, BuddyPress filters the the_content of a BP page so anything you add to the content editor will not show. BuddyPress uses your themes page.php for all its pages so its kind moot to add content in the editor unless its something to display site wide. You are better off hooking to bp template hooks to display extra content on specific pages.

    #253418
    semperaye
    Participant

    Better yet, it would be nice if there was a way to change all the BuddyPress buttons globally, including “Add Friend” “Cancel Friendship,” “SEARCH,” etc.

    Example:

    I found this code that changes all the wordpress buttons globally, just not the login and register.

    .wp-core-ui .button-primary, .button {
    background: #99cc66;
    border-color: #669933;
    box-shadow: inset 0 1px 0 rgba(102,153,51,.5),0 1px 0 rgba(0,0,0,.15);
    }

    .wp-core-ui .button-primary:hover, .button-primary:active {
    background: #669933;
    border-color: #99cc66;
    box-shadow: inset 0 1px 0 rgba(102,153,51,.5),0 1px 0 rgba(0,0,0,.15);
    }

    Perhaps there is a .buddypress-core-ui?????

    #253406
    semperaye
    Participant

    Someone helped me do this for bbpress and it looked like this:

    #bbpress-forums .submit {
    background-color: #0f5289;
    color: #FFFFFF;
    float: center;
    vertical-align: middle;
    border-radius: 0;
    height: auto;
    width: auto;
    }

    #bbpress-forums .submit:hover {
    background-color: #0c2b44;
    color: #FFFFFF;
    float: center;
    vertical-align: middle;
    border-radius: 0;
    height: auto;
    width: auto;

    How can I do the same with hover in buddypress?

    #253402

    In reply to: PHP 7.0 compatibility

    mln83
    Participant

    Thanks for the feedback!

    I am now testing it on my developer site. Also noticed problems with BuddyPress after restoring via VaultPress to my developer site. I got this error:

    require(): Failed opening required 'Xd#�F+' (include_path='.:/usr/local/php70/pear') in /home/****/public_html/dev/wp-content/plugins/buddypress/bp-messages/bp-messages-classes.php on line 14

    and

    Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 549755814048 bytes) in /home/****/public_html/dev/wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 370

    So it seems that BuddyPress needs to be updated for PHP 7.0.6+

    Best regards,
    Michael

    #253392

    In reply to: Group Type Development

    Christian Wach
    Participant

    A Group Types API is on its way – 7 commits yesterday 🙂 https://buddypress.trac.wordpress.org/ticket/6784

    #253387
    officeninjas
    Participant

    Thanks @r0z for the elegant solution.

    I would just add that in order to prevent PHP Notices, change the qualifier to the following:

    if ( function_exists( 'buddypress') && ( !empty( buddypress()->displayed_user->id ) || !empty( buddypress()->current_component ) ) ) {

    prdufresne
    Participant

    I was able to override the offending settings by adding a few lines in the custom css file of my theme. Below are the changes I made to resolve the issue, in case anyone else runs into a similar problem

    #buddypress table.profile-fields td.label {
        color: #555555;
        display: table-cell;
    }
    #253359
    shanebp
    Moderator

    …build the CPTs in a more traditional way.

    That would be useful knowledge, but registering CPTs for BP can be a bit different.
    If you haven’t, look at this codex page.
    And you may actually want to build a custom BP component.

    ndh01
    Participant

    I found I have to declare it in my theme as noted here https://buddypress.trac.wordpress.org/ticket/6570:

    bp_set_theme_compat_feature( 'legacy', array(
    	'name'     => 'cover_image',
    	'settings' => array(
    		'components'   => array( 'xprofile', 'groups' ), /* or you can only use array( 'xprofile' ) to restrict the cover image to users */
    		'width'        => 1170,
    		'height'       => 225,
    		'callback'     => 'swifter_theme_cover_image', /* function that will return to BuddyPress the css to attach to the theme_handle */
    		'theme_handle' => 'swifter',
    	),
    ) );
    #253337
    Paul Wong-Gibbs
    Keymaster

    The change reported in https://buddypress.trac.wordpress.org/ticket/6972 has been added to BuddyPress trunk, and will be included in BP 2.6.

    https://buddypress.trac.wordpress.org/changeset/10747

    wmerussi
    Participant

    Alright, found it!!!

    After placing the code into functions.php I just had to go to WP-Admin -> Appearance -> Menus and get the menu tab item under BuddyPress 🙂

    Cheers!

    #253328
    RGB Lab
    Participant

    Hi Henry,

    Here is screenshot from Dashboard: http://screencast.com/t/CWRf167CAT

    Furthermore, I’ve reported this to you guys as well as to dev team of Rev Slider: https://buddypress.org/support/topic/bp_setup_current_user-and-slider-revolution/ Just hoping new versions of plugins will be compatible among eachother.

    Thanks.

    #253324
    shanebp
    Moderator

    It sounds like you want to filter the content body of the activity item.

    There is a filter hook for that:
    apply_filters_ref_array( 'bp_get_activity_content_body', array( $activities_template->activity->content, &$activities_template->activity ) );
    in function bp_activity_content_body() in
    buddypress\bp-activity\bp-activity-template.php

    I think the main issue will be determining if the entry is related to your CPT.
    And that will be affected by how you created the CPT.
    There may be some info in the second argument – maybe in ["type"] ?

    Try:

    function ben_filter_activity_body( $content, $activity ) {
    	
    	var_dump( $activity );
    	
    	$content = ' Start of your content ' . $content;
    	
    	return $content;
    	
    }
    add_filter( 'bp_get_activity_content_body', 'ben_filter_activity_body', 25, 2 );
    #253323
    stefannita
    Participant

    Sorry for repost.

    “Unfortunately BP Profile Search cannot alter the order of results, that’s controlled by BuddyPress instead (Order By: Last Active / Newest Registered / Alphabetical). “

    #253306
    dcrowe
    Participant

    I am having the same issues. I can upload and set the crop marks but then when I click save I get “There was a problem cropping your profile photo.”

    I have updated buddypress and bbpress, made sure my file permissions on the avatar and uploads folder are set to 777

    No clue why this is happening.

    #253304
    Jot
    Participant

    Goodnight. Since the last update, buddypress not send emails validating new user accounts. I checked the plug smtp.wordpress and working properly. The problem occurs at the time of registration of a new user.

    #253294
    justarandomuser
    Participant

    OK AJAX is now working. I use now the $GLOBAL variable from WordPress.

    Just the new message, whoch is appended my AJAX, is not correctly dispayed. Will continue to find the problem.

    It looks like the AJAX response (new message) is appended right after <form …> and before the next <div ….>

    <form id="send-reply" action="<?php bp_messages_form_action(); ?>" method="post" class="standard-form">
                <div class="conv-textarea">
                  <?php //do_action( 'bp_before_message_reply_box' ); ?>
                  <textarea name="content" id="message_content" class="auto-height" placeholder=""></textarea>
                  <?php //do_action( 'bp_after_message_reply_box' ); ?>
                  <div class="conv-bottom">                
                    <?php //do_action( 'bp_after_message_reply_box' ); ?>
                    <div class="submit">
                      <input type="submit" name="send" value="<?php esc_attr_e( 'Send Reply', 'buddypress' ); ?>" id="send_reply_button"/>
                    </div>
                    <input type="hidden" id="thread_id" name="thread_id" value="<?php bp_the_thread_id(); ?>" />
                    <input type="hidden" id="messages_order" name="messages_order" value="<?php bp_thread_messages_order(); ?>" />
                    <?php wp_nonce_field( 'messages_send_message', 'send_message_nonce' ); ?>
                  </div>
                </div>
              </form>

    Very strange to put a message there.

    #253285

    In reply to: PHP 7.0 compatibility

    justarandomuser
    Participant

    Yes sir.
    Just found the problem:
    my import of my SQL file was a little bit failed. Everything was fine but BuddyPress was corrupted – I don’t know why! Fixed it!

    Now I can test PHP7. First opinion: it’s sensible faster on localhost.

    I’ll install PHP7 later on my Debian Server to test.

    #253283
    semperaye
    Participant

    There is this code posted by someone on this thread 2.5 years ago:

    https://buddypress.org/support/topic/hide-certain-admins-as-being-online/

    /* disable Recording Site Activity for Admins */
    add_action(“bp_loaded”,”bpdev_init_sm_mode”);
    function bpdev_init_sm_mode(){
    if(is_super_admin())
    remove_action(“wp_head”,”bp_core_record_activity”);//id SM is on, remove the record activity hook
    }
    /* ——————————————– */

    But not sure if that is custom css, or if that is something that needs to be placed in the bp-custom.php file? Also, that code appears to only block admin activity, not profile, and members list….

    Is there a way to do all of this via some custom CSS? That would obviously be the easiest way to solve this since there are no currently working plugins.

    #253282
    jameshh93
    Participant

    @fakrulislam thank you!! Coincidentally I was having trouble with this with twentysixteen and just creating a stylesheet in buddypress/css and now the cover image appears thanks to that code! YAY!!!!!!!!!!!!!!!!!!!!!!!

    #253280

    In reply to: PHP 7.0 compatibility

    justarandomuser
    Participant

    I just tested my whole Website with PHP7.
    I have 19 PlugIns activated. 18 are working fine – except BuddyPress.

    I really don’t know why but even simple functions like “messages_get_unread_count()” get an Fatal Error: Uncaught Error: Call to undefined function messages_get_unread_count().

    bp_get_messages_slug and many more gives me the same error.

    Can anyone help?

    #253271
    Henry Wright
    Moderator

    Do you mean like a deactivate option? That isn’t available right now in BuddyPress.

    #253267
    r0z
    Participant

    I solved this error without having to disable the SEO in BuddyPress pages, and without having to touch the core of the plugin.
    I’ll leave here (add in functions.php):

    
    function wpseo_fix_title_buddypress($title) {
        // Check if we are in a buddypress page 
        if (function_exists( 'buddypress') && buddypress()->displayed_user->id || buddypress()->current_component ) {
            $bp_title_parts = bp_modify_document_title_parts();
    
            // let's rebuild the title here
            $title = $bp_title_parts['title'] . ' ' . $title;
        }
        return $title;
    }
    add_filter( 'wpseo_title', 'wpseo_fix_title_buddypress');
    

    maybe this code or something similar would need to be implemented in Yoast SEO plugin… maybe.

Viewing 25 results - 10,201 through 10,225 (of 68,948 total)
Skip to toolbar