Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 8,226 through 8,250 (of 68,934 total)
  • Author
    Search Results
  • #263830
    Slava Abakumov
    Moderator

    Is it BuddyPress 2.8.0?

    #263829

    In reply to: Hide members

    Hi. I struggled with this for a while, and I agree entirely that something like this needs to be in the BuddyPress core… actually, I think much better user management needs to be in the WordPress core, not just BuddyPress, but that’s a discussion for another time…

    I eventually found the code that you’re using and modified it to be able to ignore all users with a specific WP role or roles, thus removing the need to hard-code specific user IDs.

    To manage user roles you’ll need a plugin such as User Role Editor by Vladimir Garagulya and create a new role that you assign to users who you want excluded (I chose “suspended”). If you use URE you can assign this as an additional role to the main one that WordPress allows you to set.

    The code is here: http://pastebin.com/9xYALGfR, but I’m no PHP expert, so offer no assurances… all I can say is that it works for me 🙂

    #263825
    Slava Abakumov
    Moderator

    You will need to integrate Multi Vendor plugin into BuddyPress.
    That means create specific profile pages (there is an article in BuddyPress Codex), modify BuddyPress templates in your child theme (same – see articles in Codex).

    You can check this as well:

    #263819

    In reply to: Cannot Sign up

    danbp
    Participant

    Hi and welcome to BuddyPress!

    It seems that you didn’t setup correctly your BuddyPress pages. Ensure they exist and are correctly declared. And also don’t forget to activate your permalinks.

    Common advice: read the documentation before installing a plugin.

    Configure BuddyPress

    #263816
    Slava Abakumov
    Moderator

    What are your WordPress and BuddyPress versions?

    #263810
    chirri97
    Participant

    I get this error:
    Fatal error: Uncaught Error: [] operator not supported for strings in /***/**/**/**/chirri.dk/httpd.www/try/wp-content/plugins/buddypress/bp-activity/classes/class-bp-activity-component.php:281 Stack trace: #0 /***/**/**/**/chirri.dk/httpd.www/try/wp-includes/class-wp-hook.php(298): BP_Activity_Component->setup_admin_bar(”) #1 /***/**/**/**/chirri.dk/httpd.www/try/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #2 /***/**/**/**/chirri.dk/httpd.www/try/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /***/**/**/**/chirri.dk/httpd.www/try/wp-content/plugins/buddypress/bp-core/bp-core-dependency.php(143): do_action(‘bp_setup_admin_…’) #4 /***/**/**/**/chirri.dk/httpd.www/try/wp-includes/class-wp-hook.php(298): bp_setup_admin_bar(Object(WP_Admin_Bar)) #5 /***/**/**/**/chirri.dk/httpd.www/try/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #6 /***/**/**/**/chirri.dk/httpd.www/try/wp-includes/plugin.php(515): WP_Hook->do_action(Array) #7 /custom in /***/**/**/**/chirri.dk/httpd.www/try/wp-content/plugins/buddypress/bp-activity/classes/class-bp-activity-component.php on line 281

    Mod Edit: Server paths obscured – best not to reveal your server paths on a public forum.

    Slava Abakumov
    Moderator

    @mahwash


    @danbp
    already replied you with a proper advice. You should know CSS, you can also modify the HTML structure of the /buddypress/activity/activity-loop.php file (it should be in your theme).

    #263781

    In reply to: Hide members

    shanebp
    Moderator

    You need to create the code. Do so in bp-custom.php.

    #263780

    In reply to: Hide members

    beforeplastic
    Participant

    Re: Hiding admins from member list:

    In looking back at all of these threads I realize we didn’t jot down the root path to the file we need to update with this code: $excluded_user=’1, 23, 267′;

    Can someone provide the path to get to this file? I can’t seem to find it again.

    example: wp-content/buddypress/bp-themes/otherfoldername/filename.php

    #263779
    Sergio Peña
    Participant

    Thank you for your response.

    I did ask Learndash and they referred me to third party programmers.

    Since I am using buddypress groups, I thought it was appropriate to ask here as well. Apologies if I was mistaken!

    So would it be something like this:

    add_shortcode('course_mentor','nex_course_mentor');
    function nex_course_mentor($atts, $content = null){
      if(!is_user_logged_in())
        return;
      if(!bp_is_active('groups'))
        return;
    
      $nex_group_id  = bp_get_group_id(get_current_user_id());
    
      if(!empty($nex_group_id)){
        foreach($nex_group_id as $nex_group_id){
          $nex_admins = groups_get_group_admins( $nex_group_id );
          foreach($admins as $admin){
            ?>
            <a href="<?php echo bp_core_get_user_domain($admin->user_id) ?>"
            title="<?php echo bp_core_get_user_displayname( $admin->user_id, true ) ?>">
            <?php echo  bp_core_fetch_avatar ( array( 'item_id' => $admin->user_id, 'type' => 'thumb' ) ) ?></a>';
      <?php
          }
        }
      }
    }

    I’m just copy/pasting and trying to connect a bunch of different answers together. As you can tell, I’m no coder.

    Since each group may have more than one group leader/mentor I had a loop in there. Hopefully that will get the ball rolling on what I’m trying to do.

    Am I on the right track?

    #263773
    josselinl
    Participant

    Ok i find my problem !

    I have this code in functions.php for the user can go tu the wp-admin panel.

    function no_dashboard() {
      if (!current_user_can('publish_posts') && $_SERVER['DOING_AJAX'] != '/wp-admin/admin-ajax.php') {
     	wp_redirect(home_url()); exit;
      }
    }
    add_action('admin_init', 'no_dashboard');

    Thanks 🙂

    they help me https://buddypress.org/support/topic/only-admin-can-upload-new-profile-pic-avatar/

    #263760
    bheyne
    Participant

    I’m slowly approaching the solution. If i deactivate the plugin “BuddyPress Xprofile Custom Fields Type”. The Pictures are back. They overwrite the URL i think.

    #263754
    MarcusFuto
    Participant

    The reason seemed to be that the account I was posting from didnt have a buddypress registration only wordpress admin registratation.

    #263732
    januzi_pl
    Participant

    Yep, BP has replaced my changes and the changes that I did in *.po (so, eventually in *.mo) files. Is there a way to disable Buddypress from updating translation file with the broken ones? I don’t need poorly translated versions on my site.

    #263731
    Hugo Ashmore
    Participant

    Apparently ticketed:
    https://buddypress.trac.wordpress.org/ticket/7443

    We’ll consider a possible solution or ‘hack’ 🙁 to avoid the issue.

    #263730
    Henry Wright
    Moderator

    Using the buddypress() function avoids the need to declare a global. Try to avoid globals in your code if you can.

    #263724
    Henry Wright
    Moderator

    I’m not aware of a function. Anyone else here know of one?

    You should be able to avoid the global by doing this:

    echo buddypress()->bp_nav['foo']['link'];

    #263723
    maelga
    Participant

    Thanks @henrywright. No luck with the above.

    I got it working with this:

    global $bp;
    echo $bp->bp_nav['foo']['link'];

    from the $bp doc https://codex.buddypress.org/developer/the-bp-global/

    I am now wondering whether there is already a function defined for this.
    Just like bp_loggedin_user_domain() works instead of global $bp; echo $bp->loggedin_user->domain;

    #263722
    Henry Wright
    Moderator

    Try buddypress()->foo->slug where foo is the name of your item. If this doesn’t work then “foo” may need to be a component.

    #263721
    warezit
    Participant

    To follow up…

    I dug through the forums here a bit more, and re-checked my work (removing tables and keys from the database). I did not remove all settings from the database.

    After disabling and removing the BuddyPress plugin, then backing up my database… I loaded up phpmyadmin > wp_options table > search for bp_ and bbp_ (I know “bbp_” if for bbPress, I just wanted a clean reset) and then removed all those settings from the database. Re-installed a fresh download of BuddyPress, and we’re all set. BuddyPress has been reset to “out-of-the-box” settings, and I am able to create groups again! Woohoo!

    Hopefully this helps someone else! Thank you again for reaching out r-a-y. I am happy I didn’t have to bug anyone tremendously to get this resolved. 🙂

    Cheers!

    #263711
    r-a-y
    Keymaster

    This has nothing to do with BuddyPress, but it has to do with adding HTTPS support to your WordPress website.

    You have to either pay to get a SSL certificate or use the Let’s Encrypt service to get a free SSL certificate:
    https://letsencrypt.org/

    Then, configure WordPress to use SSL and this issue should be fixed.

    #263710

    In reply to: BP profile issue

    wonderdog4
    Participant

    WORDPRESS 4.7.2
    BUDDYPRESS 2.7.4

    #263707
    livingflame
    Participant

    @anthonylawton

    Create a plugin with this. But, if you use BuddyPress Honeypot, this plugin not work.

    <?php
    /*
    Plugin Name: Restricted Email Domains
    Description: Restricts registration user email addresses to valid domains.
    From: http://old.webit.ca/2011/03/limit-user-email-domains-in-buddypress/
    Version: 1.0
    */
    add_option('limited_email_domains', array('yahoo.com', 'outlook.com', 'hotmail.com', 'gmail.com', 'aol.com', 'mail.com')); 
    #263663
    Slava Abakumov
    Moderator

    Sure, you will need to filter out the $arguments variable in my code for the required by you activity_type.

    You can put the resulting code into a separate custom plugin or in https://codex.buddypress.org/themes/bp-custom-php/

    #263653
    r-a-y
    Keymaster

    Not sure what your issue is, but after going through the removal steps, did you deactivate BuddyPress and reactivate it?

    If you have an object cache plugin active, you should purge your entire cache after removing the DB options so BP can reinstall its tables properly when you reactivate BuddyPress.

Viewing 25 results - 8,226 through 8,250 (of 68,934 total)
Skip to toolbar