Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 16,401 through 16,425 (of 73,981 total)
  • Author
    Search Results
  • #247060
    shanebp
    Moderator

    Groups Loop


    <?php if ( bp_has_groups( bp_ajax_querystring( 'groups' ) . 'type=alphabetical' ) ) : ?>

    #247053
    mcpeanut
    Participant

    Nice one @imath and congrats to you and all the team, although i have not had time to try this out yet i will do do sometime soon, i have not been as active on here recently due to being so tied up with what i am doing myself, the cover was a well needed implementation and i am so glad it was added to core. now if only you guys could get a dedicated like system built into it or a favourite feature that would lets users favourite other pages and custom posts other than just on buddypress posts and related pages 🙂 … hehe.

    #247026
    r-a-y
    Keymaster

    I’ve got a fix ready:
    https://buddypress.trac.wordpress.org/attachment/ticket/6745/6745.01.patch

    Apply the lines in that patch to your BuddyPress install.

    To test this, you’ll need to set WP_DEBUG to true so it will load the unminified version of the javascript:
    https://codex.wordpress.org/WP_DEBUG

    Let me know if this fixes the problem.

    #247019
    Thagintoki
    Participant

    not showing the avatar but instead I want to attach the avatar to a specific user so buddypress will take care of showing it,

    the only problem is that it depends on a $_FILES variable

    this means that I can use the function if I had a form, else I can’t because the mother Class has needs as argument the file from ($_FILE) and the name of the form which i don’t have.

    #247013
    r-a-y
    Keymaster

    What are your URLs linking to? In your video you mentioned something like /members/?s=whatever?

    In BuddyPress 2.4.0, you have to change the s parameter to members_s. In 2.4.1, this will change to members_search due to a typo.

    How are you setting up the members loop to filter students by school?

    #247012
    r-a-y
    Keymaster

    We do not store avatar data in the database.

    We do a look up at the files level instead.

    If you want to show an avatar based on a custom avatar stored in the database, you’ll need to use the 'bp_core_fetch_avatar' filter to override how BuddyPress shows avatars:
    https://buddypress.trac.wordpress.org/browser/tags/2.4.0/src/bp-core/bp-core-avatars.php?marks=531-546,660-664#L531

    If you just want to display a user avatar, use the bp_core_fetch_avatar() function:

    echo bp_core_fetch_avatar( array(
        'item_id' => USER_ID_TO_GRAB_AVATAR_FOR
    ) );
    #247008
    gurusurfer
    Participant

    Ok for the is_buddypress() the functions

    function for_buddypress() {
        if ( is_buddyPress() ) {
            echo "<meta name=”robots” content=”noindex, nofollow>";
        } else {
        }
    }
    add_action( 'wp_head', 'for_buddypress' );

    Working perfectly, but when creating another function for the bp_is_groups() I am getting error “call to undefined functions bp_is_groups()

    Any help is much appreciated!

    Thanks

    #247005
    Henry Wright
    Moderator

    Check out the Using bp_parse_args() to filter BuddyPress template loops article. Specifically, you’d want to make use of date_query, which should be an array of date query clauses.

    #246988
    gurusurfer
    Participant

    I have also tried in a loop like in this codex, but breaking the page, what am i missing?

    <?php if ((is_buddypress() ) { echo '<meta name=”robots” content=”noindex, nofollow>'; } ?>

    You help is much appreciated!

    Thanks

    #246977
    tonydjukic
    Participant

    Thanks @henrywright. I installed it and tested it out, doesn’t seem to be even slightest issue with it. @jjj should just push incremental updates that update compatibility so WordPress removes that ‘warning’ message – the plugin works great so it’s a shame that people new to BuddyPress (like myself) are scared away from it for no reason.

    #246974
    r-a-y
    Keymaster

    Are you running the Woffice theme with their Birthday extension?

    If so, you need to update Woffice:
    https://buddypress.org/support/topic/fatal-error-call-to-undefined-method-stdclasssave/#post-246973

    #246966
    shanebp
    Moderator

    i have red all the files in buddypress plugin

    Then you know that BP does not store any data re individual avatars in the database.

    #246961
    gurusurfer
    Participant

    Thank you very much for the quick reply!

    Sorry I am no php pro here, tried like this but breaks page!

    add_action( 'wp_head','noindex_groups' );
    function noindex_groups() {
    if ( bp_is_groups() ) {
     echo '<meta name=”robots” content=”noindex, nofollow>'
    }
    }
    add_action( 'wp_head','noindex_buddypress' );
    function noindex_buddypress() {
    if ( bp_is_groups() ) {
     echo '<meta name=”robots” content=”noindex, nofollow>'
    }
    }

    Thanks

    #246959
    Thagintoki
    Participant

    all i want to know is how the avatar are set in the user meta, because I have an external image url and want to set it in the meta but don’t know how they do it in buddypress, i have red all the files in buddypress plugin, but nothing helps. For the field datebox also I don’t know why it is not working I am sure my data is good but why it is not showing ?

    #246953
    Henry Wright
    Moderator

    The Template Tag Reference will help you here. You can do things like the following inside your function to determine the type of page that is being accessed:

    if ( bp_is_groups() ) {
        // This is the groups page.
    }
    
    if ( is_buddypress() ) {
        // This is a BuddyPress screen.
    }
    #246948
    Thagintoki
    Participant

    $random_user = wp_insert_user( $userdata ) ;

    this is how i get the user ID its working fine only birthday and avatar which are my problem, I can’t set a date or an avatar from an external link.
    I have used an API to generate random users then I save it as a buddypress user.
    And $user_id was a mistake I use instead $random_user but it’s not working anyways.

    #246947
    Hugo Ashmore
    Participant

    @joost-abrahams buddypress.css is patched to resolve the issue and should be included in 2.4.1, thanks again for highlighting and testing issue.

    #246946
    Henry Wright
    Moderator

    Even though the plugin hasn’t been updated for 2+ years, it’s built by @jjj (BuddyPress project lead who knows BuddyPress inside out) so it will be well-written. If you do spot anything, open a support ticket on the plugin’s forum.

    Tafmakura
    Participant

    In this thread https://buddypress.org/support/topic/i-just-want-one-consistent-username-to-appear-everywhere-in-wp-bp/ @r-a-y successefully replaces all display names with usernames, I want to do the opposite I want the @mentions to display the current display name, so that when someone mentions someone it diplays that person’s current display name.

    How do i achieve this?

    Henry Wright
    Moderator

    Closing as a duplicate

    #246938
    Thagintoki
    Participant

    Hi and thanks for reading my question, I have been trying to create a default data for buddypress and I am stuck, Searched about 2 days in forums but no clue. Here is the code I use:

    <?php
                        $randDate = mt_rand(0062055681,0562055681);
                        $randDate = date('Y-d-m H:m:s', $randDate);
                        echo $randDate.'<br>';
                        xprofile_set_field_data( 1, $random_user, $displayname );
                        xprofile_set_field_data( 3, $random_user, 'Man' );
                        xprofile_set_field_data( 6, $random_user, 'Woman' );
                        xprofile_set_field_data( 9, $random_user, 'Single' );
                        xprofile_set_field_data( 17, $random_user, $city );
                        xprofile_set_field_data( 18, $random_user, $country );
                        xprofile_set_field_data( 2, $user_id, $randDate );
    ?>

    everything works fine except for the datebox field which is field number (2); Thanks for helping.

    #246934
    r-a-y
    Keymaster

    bbPress has its own at-mentions system, so you should be able to disable the Activity component in the WP admin dashboard.

    To do so, go to the WP admin dashboard and navigate to “Settings > BuddyPress > Components”. Next, uncheck the Activity Streams component and save.

    This will disable the Activity Streams component. Then, you should check if the at-mentions system in bbPress will still function properly.

    I’m not sure if bbPress’ at-mention system will send email notifications though.

    #246933
    UgoDimma
    Participant

    Hey @webgirl

    Thanks for the link, I followed the link and check all my settings, and all is in good shape. Beside, I installed the theme using their quick installation guide, which installs the theme with their default setting from the demo site.

    By looking at their demo site, it does not have this sidebar, so I don’t know exactly where the issue might have come from.
    Just take a look at single member profile, it still goes without side bar.
    No sidebar at the the demo

    In my members page edit, the sidebar I selected is buddypress sidebar.

    Henry Wright
    Moderator

    Hey @alessandrat

    Welcome to the BuddyPress forum!

    1. Have two separate front ends for different user types (with differently configured profiles), appearances, and accesses.

    Yes. This can be done with either a plugin (try searching the Plugin Directory) or coded through the Member Types feature introduced in version 2.2.

    2. Have a place where shortcode could be put in so that users can take a questionnaire containing likert questions on their profile and/or while creating their profile.

    Either a post, page or perhaps even an activity update all spring to mind as possible places to add it.

    3. One but not both kinds of users can create their own group (public, semiprivate or private) or forum and browse/ join existing ones

    The ability for all members to create new groups comes as standard.

    4. One kind of user but not the other needs to be able to set up ways for the other type of user to purchase products (I assume I can use another plugin but will need a place to put the shortcode)

    This will need to be either custom coded, or you may find a plugin with the functionality you need.

    Hope this info helps!

    #246927

    In reply to: How to fix Activations

    Venutius
    Moderator

    Di you set up the pages in Admin>>Settings>BuddyPress>>Pages

    If so they should not be blank

Viewing 25 results - 16,401 through 16,425 (of 73,981 total)
Skip to toolbar