Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 11,376 through 11,400 (of 68,918 total)
  • Author
    Search Results
  • #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

    #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

    #246923
    martinstr
    Participant

    @venutius: thank you! Not quite what I was looking for, but might work if there is nothing else.

    @danbp: I notice that the Mass Messaging in Buddypress plugin hasn’t been updated for 2 years. Is it still safe to use?

    General reflection: to me this seems like extremely obvious functionality (for an administrator to be able to message all users in a specific group). How come it isn’t part of Buddypress core functionality?

    #246922
    2paulm
    Participant

    shane thank you for your help I figured it out while I was waiting and used this function

    I added this to members-loop.php

    if ( bp_has_members( include_only_subscribers() ) ) :

    and added this to my themes function.php

    function include_only_subscribers() {
      
      global $wpdb;  
    
        $query = "SELECT user_id FROM " . $wpdb->prefix . "bp_xprofile_data WHERE user_id IN (SELECT user_id FROM wp_usermeta WHERE meta_value LIKE '%subscriber%')";
      
      $custom_ids = $wpdb->get_col( $query );
      
      if ( !empty( $custom_ids ) ) {
        // convert the array to a csv string
        $custom_ids_str = 'include=' . implode(",", $custom_ids);
        return $custom_ids_str;
      }
      else
       return '';
    }

    it seems to be working I just used some info from https://codex.buddypress.org/developer/loops-reference/the-members-loop/

    and modified to meet my needs.

    please let me know if you see any problem with my approach and thank you so much for your response and help with this

    #246920
    ml413
    Participant

    Hi PriR,
    I’m not a buddypress expert, but one thing to check with 500 errors is if there is any additional info in your PHP error log or in the web server’s (usually Apache or Nginx) error log. Sometimes, but sadly not always, those can give you clues as to what specifically is causing the crash.

    Another thing to try is disabling other plugins before you enable buddypress. If you have a test version of your site, or you do this when your site doesn’t have much traffic, you can try disabling all of them, enabling buddypress, then enabling plugins one by one until you find the one that causes the conflict.

    Hope this helps!

    #246899
    danbp
    Participant
    #246898
    Lars Henriksen
    Participant
Viewing 25 results - 11,376 through 11,400 (of 68,918 total)
Skip to toolbar