Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 15,251 through 15,275 (of 94,564 total)
  • Author
    Search Results
  • #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 ) ) ) {

    #253386
    Henky
    Participant

    Hy, I have a Problem.
    In the Widget i have this code, becouse see Only the Avatar from gravatar.com and not from Buddypress or WordPress

    <?php echo get_avatar( $comment, '45' ); ?>
    Display in Html
    <img alt="" src="https://secure.gravatar.com/avatar/ca07c51aecfa704741559ccc813d7b0d?s=45&d=mm&r=g" srcset="https://secure.gravatar.com/avatar/ca07c51aecfa704741559ccc813d7b0d?s=90&d=mm&r=g 2x" class="avatar avatar-45 gravatar" height="45" width="45">

    Than i have change the code to:
    <?php echo bp_core_fetch_avatar( array( 'item_id' => $comment->user_id,'type' => 'full','width' => 75,'height' => 75)); ?>
    becouse is not working.

    What is the correct code for Display Avatar from a Comment.

    Thanks a lot

    rateyourway
    Participant

    Hi Buddypressers!

    I am starting to configure my site and i have realized that when there is a buddypress page, this page can’t be edited from my admin side. I am creating a site using jupiter theme and visual composer, but i can’t add any content to that page, and te page won’t even show the title.

    Am I doing something wrong?

    Maybe this is an obvious thing, but i’m pretty new in this and my knowledge is pretty limited.

    Thanks in advance!

    #253372
    noobiestrikesagain
    Participant

    Hey,

    I’m trying to remove bp_add_friend_button from bp_member_header_actions by using

    remove_action( 'bp_member_header_actions', 'bp_add_friend_button', 5 );

    It is not working.
    While I was able to remove follow button (Buddypress Follow plugin) with the following code:
    remove_action( 'bp_member_header_actions', 'bp_follow_add_profile_follow_button' );

    The same code for friendship button is not working.

    I have also tried the following code:

    function remove_add_friend() {
    	 remove_action( 'bp_member_header_actions', 'bp_add_friend_button', 5 );
    }
    add_action( 'after_setup_theme', 'remove_add_friend', 11 );

    Any solution to the problem?

    Thanks!

    #253369
    drewin
    Participant

    Hello
    I am wondering if I can use buddypress to have an art gallery for members to post art of all kinds, music, pics, and video, and sell it from their profile using pay pal or anything else. Can buddypress handle all kinds of interactivity like this? Also, does buddypress have its own membership functionality or should I use a membership plugin that works with buddypress?
    Thanks!

    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;
    }
    semperaye
    Participant

    On my buddypress profiles, the last active is not showing on admin accounts (example: “active 2 weeks, 2 days ago”), throwing off the formatting of badges I have on admin profiles. Did I miss a setting somewhere? Is this a css issue?

    Thanx for the help!

    #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.

    justarandomuser
    Participant

    I just found a little problem on my website.
    As an admin I can edit directly on the Front-End the profiles of my users if there is bad data.

    I show the fields like this (I have only 1 group):

    <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
    // many things are going on here! but nothing special
    <?php enwhile; ?>

    The problem is… EMPTY fields are not in the output!

    I tried to put array('hide_empty_fields' => 0) into bp_the_profile_field() but this doesn’t work.

    I handle everything (display of the profile, editing of the profile fields etc) in <my-theme>/buddypress/members/single/cover-image-header.php

    Please help me 🙁

    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',
    	),
    ) );
    ndh01
    Participant

    The two options: Group Cover Image Uploads & Cover Image Uploads checkboxes do not show up in admin->settings->BuddyPress->Options when my custom theme is active (created before cover images existed natively in BP). However when switching to 2015 theme, I see the options available. Obviously this is a theme issue, but not sure why it would not show up on my theme.

    Thanks for your help!

    #253349
    Lars Henriksen
    Participant

    I hereby recommend the BP Group Documents plugin that gives a simple dropbox function in a group.

    User friendly and easy.

    I would like it to be included in Buddypress core.

    Lars

    prdufresne
    Participant

    We just installed BuddyPress on our website, and I’m having an issue with the color scheme that came up by default.

    On the member profile page, where it lists the field data, the column that is supposed to show field labels isn’t rendering correctly. It’s putting a border around the text (not the cell label, a separate text border offset from the cell), the text is being rendered in white and the background of the label is matching the background of the cell adjacent to it, but the cell itself remains white when the field data background is lightly shaded.

    By inspecting the element, I think I’ve figured out that the font color and border are being applied by bootstrap.min.css which appears to be part of the magee-shortcodes plugin and the funky text position is being applied by buddypress.min.css.

    Here’s the code from the bootstrap.min.css file:

    .label {
        display: inline;
        padding: .2em .6em .3em;
        font-size: 75%;
        font-weight: 700;
        line-height: 1;
        color: #fff;
        text-align: center;
        white-space: nowrap;
        vertical-align: baseline;
        border-radius: .25em;
    }

    Is there an easy way for me to override these? I just don’t know where to make the change.

    ThanX!

    nickrobinson352
    Participant

    I want to setup a social media website for my local school using buddypress. I am struggling on how to best create relationships between students, teachers and parents in buddypress.

    e.g.
    1 student = (1 or many) parents
    1 teacher = (1 or many) students
    1 class = (1 or many students)
    1 teacher = (1 or many class)
    etc

    I dont want to create user logins for students, as this portal will be primarily used by parents and teachers. A class would be a Group in buddy press. I want a teacher to be able to see a list of all the student in a given class and parent to be able to see the list of theis kid’s teachers by class.

    #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!

    #253331
    amaroak
    Participant

    Hi!, I try to integrate api in part registration with custom fields buddypress, but I can not make this save me the contact in the campaign that I need to give the fields to the API but seeing settings buddypress, I realized that if I have 2 textarea does not generate code 2 textarea, but one that I think is the array type, and throws.

    <?php if ( 'number' == bp_get_the_profile_field_type() ) : ?>
    
    <label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'vibe' ); ?><?php endif; ?></label>
    <?php do_action( bp_get_the_profile_field_errors_action() ); ?>
    <input type="number" name="<?php bp_the_profile_field_input_name(); ?>"  class="form_field" id="<?php bp_the_profile_field_input_name(); ?>" value="<?php bp_the_profile_field_edit_value(); ?>" />
    
    <?php endif; ?>
    <?php if ( 'textarea' == bp_get_the_profile_field_type() ) : ?>
    
    <label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'vibe' ); ?><?php endif; ?></label>
    <?php do_action( bp_get_the_profile_field_errors_action() ); ?>
    <textarea rows="5" cols="40" name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_edit_value(); ?></textarea>
    <?php endif; ?>

    And APIGETRESPONSE.php

    $CAMPAIGN_ID = array_pop(array_keys($campaigns));
    # add contact to the campaign
    $result = $client->add_contact(
        $api_key,
        array (
            # identifier of 'test' campaign
            'campaign'  => $CAMPAIGN_ID,
            # basic info
            'name'      => 'Test',
            'email'     => 'test@test.test',
            # custom fields
            'customs' => array(
                array(
                    'name'       => 'field name',
                    'content'    => 'field content'
                ),
                array(
                    'name'       => 'field name',
                    'content'    => 'field content'
                )
            )
        )
    );

    I need to spend the fields manually to the api so you know you add each field

    Regards

    obidos
    Participant

    Hi there,

    I am creating a custom theme and need to integrate BuddyPress. I am working locally.

    I have a custom template and created the activity loop. This works great. Now I want to show the post-form at the top of my activity loop. Which I have done by calling in activity/post-form.php. However, you type in the textarea box and hit post comment and nothing happens. Any ideas?

    I know the activity feed is working on /activity so everything is setup correctly with my theme. I just want to show it in a column on my new template page.


    <div id="buddypress">
    <div class="activity-comment">
    <?php locate_template( array( 'buddypress/activity/post-form.php' ), true ); ?>
    </div>
    <?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . '&action=activity_update' ) ) : ?>
    <?php while ( bp_activities() ) : bp_the_activity(); ?>

    <?php locate_template( array( 'buddypress/activity/entry.php' ), true, false ); ?>

    <?php endwhile; ?>
    <?php endif; ?>
    </div>

    ENHAdmin
    Participant

    I’ve recently installed BuddyPress on my test site and a completely vanilla site. Both sites are running WP: 4.5.2, and BuddyPress 2.5.2. On my test site I have a number of plugin’s installed: here’s what happened: No Activate or Register pages were created. Upon further reading, I discovered that if you create a page called Activate and Register, it fixes the issue. But it doesn’t: when viewing the page if comes up empty. And when you click on the Register option through the Meta and BuddPress widget, there’s an error: the url doesn’t exist.

    Now: on the vanilla site the install did create both the Activate and Register pages, but the same thing occurs. Now, I have logged out of the accounts and attempted to navigate to the pages but am met with either a blank page, or a: this url doesn’t exist.

    I seem to be seeing that this is a common issue with BUddyPress, I hope there’s a fix.

    #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). “

    #253321
    crcmarseille
    Participant

    Hello!

    Sorry for my poor english and if I’m writing in the wrong section.

    I’m currently developping an Intranet for my department.
    Every employees have created their profiles (name, job position, id and pswd etc.) to be able to navigate on the Intranet.
    I would like to generate automatically a Trombinoscope or Organigramm with these users datas.

    I know a plugin “Clicface Organi” (https://fr.wordpress.org/plugins/clicface-organi/) that provides me what I want but I have to add all the employees manually.

    Is there a way to automatically generate an Organigramm with directly Buddypress profile’s datas?

    I hope I was clear…

    Thank you for your help!

    stefannita
    Participant

    I use BuddyPress with BP Profile Search. I wish that when searches, any members to be in the top results. Is there any method?

    Best Regards,
    Stefan

Viewing 25 results - 15,251 through 15,275 (of 94,564 total)
Skip to toolbar