Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 16,426 through 16,450 (of 73,981 total)
  • Author
    Search Results
  • #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
    #246894
    danbp
    Participant

    Hi,

    no idea what happen to your install, but read here some advice:
    https://buddypress.org/support/topic/debug-error-bp_setup_current_user-was-called-incorrectly/

    #246883
    Henry Wright
    Moderator

    Only for components that have a directory. Also, you will need to do that for the “register” and “activate” pages (this is all done via Settings > BuddyPress > Pages).

    #246867
    Joost abrahams
    Participant

    More testing with fresh install WP4.3.1
    Plugins active : buddypress, maintenance
    theme test data imported
    buddypress test data imported

    2013, 2015 themes no issues

    2014 only exist on group pages, members pages no issues

    #246862
    r-a-y
    Keymaster

    BuddyPress does not come with a built-in export tool, so whatever you are using is a 3rd-party plugin.

    #246861

    In reply to: Groups Pages

    r-a-y
    Keymaster

    Can we have separate template for any-group-name page?

    Yes! That’s what the template hierarchy is for:

    Template Hierarchy

    #246858
    r-a-y
    Keymaster

    Are you using BuddyPress Multilingual as well?

    My guess is that BuddyPress has newer translation strings in v2.4.0 and you’ll need to update the BuddyPress-specific strings on your WPML install to reflect that.

    Read their “Translating profile fields” tutorial:

    BuddyPress Multilingual

    They also have a support forum here:
    https://wpml.org/forums/topic-tag/buddypress/

    It might be that their plugin will need to be updated.

    If it ends up that this is indeed a BuddyPress problem, please let us know.

    #246857
    r-a-y
    Keymaster

    Thanks @joost-abrhahams.

    I’ve filed a ticket here:
    https://buddypress.trac.wordpress.org/ticket/6738

    We’ll get this fixed for v2.4.1.

    #246849
    bum2
    Participant

    Hi r-a-y,

    – Changing the theme x to twentyfifteen does not solve the issue.
    – There’re many plugins used, but found that deactivating ‘sitepress-multilingual-cms’ (v3.2.7) was the way to show up again the form controls in BP 2.4
    – The issue happens without any browser console error, nor any note using the debug-bar plugin, and nor any log entry at the apache’s error log.
    – Not overridded the register form, only a custom .js added to show-hide form fields, but the issue happens even without javascript in the browser.

    Seems to be an incompatibility with wpml, are you sure it works for other sites? both buddypress and wpml are important plugins for us.
    Thanks!

    #246848
    DerAphelion
    Participant

    Great work!

    I´m REALY new in WordPress/Buddypress.
    Now i have a question:

    How can i do it in another language now (Buddypress), in this case german needed?

    greetings

    Aphelion

    #246837
    paragbhagwat
    Participant

    @r-a-y i got it.. in buddypress 4.0 under buddypress.2.4.0\buddypress\bp-templates\bp-legacy\buddypress\groups\single the new file is there but under

    buddypress.2.4.0\buddypress\bp-themes\bp-default\groups\single

    it has the older file. Is that how its supposed to be? I am now going to check my theme to see if it has overridden any of those files.

    Thanks,
    Parag

    #246836
    paragbhagwat
    Participant

    @r-a-y hmmm i am not even checking it in my theme i just unzipped buddypress.2.4.0 and i am seeing the old file inside that.

    #246834
    r-a-y
    Keymaster

    You might have to do a fresh install because BuddyPress 2.4.0 uses new code for the /groups/single/home.php template:
    https://buddypress.trac.wordpress.org/browser/tags/2.4.0/src/bp-templates/bp-legacy/buddypress/groups/single/home.php#L75

    The code you listed above is older code.

    If you already have those changes, then I’m guessing you are using a custom theme with BuddyPress support that has overriden the groups/single/home.php template. If that is the case, you’ll have to change the group home template to use these new lines.

    #246832
    paragbhagwat
    Participant

    @r-a-y i did not any changes to home.php the code that i sent you was directly from the plugin buddypress2.4.0 folders.

    #246826
    Michael Kracke
    Participant

    This is a theme I have hand built, so there may be something that I don’t have correct.

    I am using WordPress: 4.3.1 and BuddyPress 2.4.0

    I have gone through and tried deactivating plugins and still no luck. All plugins are up-to-date. Problem seemed to occur when i would create a new field group and delete it. It almost seems like if I had a field then deleted it, it would show up again but as the Name field which is not deletable.

    #246825
    earthjibber
    Participant

    thanks again for the info.

    I have another question, do you think I will have to use bbPress and buddypress together? I’ve used bp before and I know it does come with some forum type functionality so I’m just wondering if that is what you are recommending with what you know about my project.

    I haven’t used bbp before and I also haven’t heard if anyone has used both bbp and bp together. Or maybe I just don’t know enough about the difference between the two?

    #246824
    antonydennis
    Participant

    @djsteveb – yes, I thought about that… but because the forum has been associated with a Buddypress group, then it becomes a Buddypress page – so is_buddypress() returns true, bp_is_group_forum_topic() returns true, and is_bbpress() returns false… so this is very much a buddypress question!

    #246821
    scoobs2000
    Participant

    Hi, thanks and glad there was something in there for you. Don’t spend too much time digesting as above was provided as a generalised overview of possibilities, as too is below.

    **I find once narrowing down a couple of solutions concepts for a project next step is roll out a concept build and play for yourself and see how things work or not work including if the concept platform sits well with your own methodology of design and capacities .

    Re, including buddypress from the start, sure Why not?

    I challenge you to list any reasons why one wouldn’t consider committing to buddy on initial planning. (no need to post, just a thought provoking exercise)

    With my own project one primary key point goal was the project must be built on WP, right from the start I even consultant client against this idea, at the time I believed there are “better” solutions out there for a community building site (of this nature). Without going into details why and how such other platforms “could be” implemented.

    The end result was I always came back to Buddypress being a perfect smooth integration as a small component of the complete project. At that time it was just a case of commitment and understanding there are going to be some big customs on the horizon, I’m very familiar with WP and its hooks and filters so developing bp / bbp was just a case of heading to the codex pages and certainly an influencing factor in using buddy – having an extensive self-help support system.

    Regarding other community platforms built on WP I did look at other open and premium paid systems , my findings: in support of buddy for this project.

    1. Self help support community – provides a wider understanding of what you are trying to do, and therefore can provide much wider access to resources and solutions (access to 100’s of developers , compared to a single tech support that can take longer to explain things before they “get it!”) – stuck on something just search the support, before posting you will be really surprised that even 5year old post can provide direction.

    2. Plugin support – say plugins, today if there is not a plugin that does it, there will be soon… Very common on long term projects I work on, I will write a plugin / function code, then 6months later either a theme, plugin or even a core update is released with the same feature. That’s not a bad thing, it just means I’m always at least 6months ahead of the rest of the world……. Well that’s how I read it 

    3. Warm and fuzzy feel good feeling in the open source arena – everybody to his own, with respect. And the open source arena means different things to different people. For me this project has opened further opportunities to release certain features / plugins back into the community once tested and proved etc. – so there is a level of warm and fuzzy for me regarding using buddy press being something not provided elsewhere. (but that’s just me)

    What you use for the community building and offering of other features it’s really up to you. It makes sense that if your store is built on wp, then you would use wp for all other components of the project. (buddy, bbp etc).

    So why not commit to buddy right from the start if you choose to using a wp based store?
    You could consider the store / payment systems a separate project, where you decide to use a wp base store. And the other project is a wp based community building site.

    you are just using the same wp install for both projects. –

    referring to my suggestion “start with the payment systems first” it’s more so, maybe focus more energy on this part to ensure you get it working first before investing too much time in rest of the project.

    Maybe consider your concept build to be an “out of box” wp / buddypress install (provides opportunity to play with buddy while working on the store / payment systems and check out the woo plugin library too.

    One advantage will be each customer account (user id) will be same buddy press member id (user id) – from there you’re pretty much only limited to your own capacities as a developer and of course client time and budget.

    My understanding of BuddyPress is it’s an extendable community building framework eg, has friend’s connections, member’s directory, forums(bbp), message systems + a bunch of other cool features etc. apart from the specific community building features it’s up to the developer to extend using existing plugins or creation.

    Enjoy!

    #246819
    @mercime
    Participant

    I remember someone reporting a similar issue last year or so. They used a theme which was not updated with the current BP version at that time. What have you done so far to troubleshoot the issue?

    WP/BP versions? Theme used? If you change to the Twenty Fifteen theme, does the issue remain or is it resolved? Have you tried deactivating plugins except BP and use WP default theme to check if that resolves the issue? If that doesn’t solve it, do provide more information about your installation https://buddypress.org/support/topic/when-asking-for-support-2/

    #246818
    shanebp
    Moderator

    Please use the code button when sharing code.
    For long pieces of code, please use a service like gist.

    You can submit an enhancement ticket here. Please search the existing tickets first for entries that already make the same request.

    #246814
    Dono12
    Participant

    I wish the developers/contributors would add a post on profile button to show user posts in the next update. It makes sense to have this function as it incorporates WordPress and Buddypress respectively. There is only one plugin that I found which accomplished this feet:

    BP Posts On Profile

    by Huseyin Berberoglu. The plugin is out of date and it takes tons of modifications to get it going with an up to date Buddypress install.

    The second method is a block of code placed in functions.php

    function importSomething(){
    return include_once 'bp-custom.php';
    }
    add_action( 'bp_setup_nav', 'buddyboss_child_bp_nav_adder' );
    add_action( 'bp_template_content', 'profile_buddyboss_child_loop' );
    bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
    
    function buddyboss_child_bp_nav_adder() {
    global $bp;
    $post_count = count_user_posts_by_type( $bp->displayed_user->id );
    bp_core_new_nav_item(
    array(
    'name' => sprintf( __( 'Posts <span>%d</span>', 'my-poems' ), $post_count ),
    'slug' => 'Articles',
    'position' => 250,
    'show_for_displayed_user' => true,
    'screen_function' => 'buddyboss_child_list',
    'item_css_id' => 'articles',
    'default_subnav_slug' => 'public'
    ));
    }
    function buddyboss_child_list() {
    add_action( 'bp_template_content', 'profile_buddyboss_child_loop' );
    bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
    }
    /*------- This is end of the code for above function ---------*/
    function profile_buddyboss_child_loop() {
    $myposts = get_posts(  array(
    'posts_per_page' => -1,
    'author'         => bp_displayed_user_id(),
    'post_type'      => 'post'
    ));
    if( ! empty($myposts) ) { 
    foreach($myposts as $post) {
    setup_postdata( $post );
    if (has_post_thumbnail( $post->ID ) ):
    $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'sidebar-smallthumbnew' );
    else :
    
    $image[0] = &quot;http://....com/wp-content/uploads/2015/10/userpost.jpg&quot;;
    endif;
    
    echo '<li class=&quot;sidebar mostpop post-' . $post->ID . '&quot;><span id=&quot;postimage&quot;><a>ID) . '&quot;><img src=&quot;' . $image[0] . '&quot; /></a></span><div id=&quot;postinfo&quot;><a>ID) . '&quot;>' . get_the_title($post->ID) . '</a></div></li>';
    }
    echo '</ul>';
    wp_reset_postdata();
    } else { ?>
    <div class=&quot;info&quot; id=&quot;message&quot;>
    <p><strong><?php bp_displayed_user_fullname(); ?></strong> has No posts.</p>
    </div>
    <?php }
    }
    /* This is end of the code for above function */
    remove_filter('bp_setup_nav','');
    function count_user_posts_by_type( $userid, $post_type = 'post' ) {
    global $wpdb;
    $where = get_posts_by_author_sql( $post_type, true, $userid, true);
    $count = $wpdb->get_var( &quot;SELECT COUNT(*) FROM $wpdb->posts $where&quot; );
    return apply_filters( 'get_usernumposts', $count, $userid );
    }

    This works fine but it’s quite limited. It also messes with Buddypress updates rendering the two latest Buddypress updates useless (Star message, and Upload Background image).

    Guys please get around to integrating this ability in Buddypress so one doesn’t have to spend hours searching and trouble shooting for a function which I believe and others should be an already main component.

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