Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 51,376 through 51,400 (of 94,539 total)
  • Author
    Search Results
  • rich
    Member

    looks like a bug
    https://buddypress.trac.wordpress.org/browser/tags/1.5/bp-blogs/bp-blogs-activity.php#L57

    Suppose to check for an existing activity keying off the blog id, post id, user id, etc and then it updates instead of inserting.

    #124169
    justbishop
    Member

    Nevermind, did it, and your 2nd query worked like a charm, @boonebgorges! Thanks :)

    P.S. I did make a db backup, and will hang onto it just in case some wonkiness that I’m just not seeing yet crops up ;)

    #124165
    candy2012
    Member

    Thank you @modemlooper but that’s not enough and makes no change; we need a function to check if friend or not to apply to all streams.

    And I think I can say …. yes yes yes yes yes! I found the combination that seems to finally turn buddypress into a modern social network :-)

    So here the wonder-code (it must have smth to do with 11/11/11 > wish came true :) ):

    Code:
    function my_is_friend_check( $friend_id = false) {
    global $bp;

    if ( !is_user_logged_in() )
    return false;

    if ( is_site_admin() )
    return true;

    if ( !$friend_id ) {
    $potential_friend_id = $bp->displayed_user->id;
    } else {
    $potential_friend_id = $friend_id;
    }

    if ( $bp->loggedin_user->id == $potential_friend_id )
    return false;

    if ( friends_check_friendship_status($bp->loggedin_user->id, $potential_friend_id) == ‘is_friend’ )
    return true;

    return false;
    }

    function my_denied_activity_nonfriends( $a, $activities ) {
    global $bp;

    //if admin we want to know
    if ( is_site_admin() )
    return $activities;

    foreach ( $activities->activities as $key => $activity ) {

    if ( $activity->user_id != $bp->loggedin_user->id && $activity->user_id != 0 && !my_is_friend_check($activity->user_id) ) {

    unset( $activities->activities[$key] );

    $activities->activity_count = $activities->activity_count-1;
    $activities->total_activity_count = $activities->total_activity_count-1;
    $activities->pag_num = $activities->pag_num -1;

    }
    }

    $activities_new = array_values( $activities->activities );
    $activities->activities = $activities_new;

    return $activities;
    }
    add_action( ‘bp_has_activities’, ‘my_denied_activity_nonfriends’, 10, 2 );

    For all buddymuppets to enjoy :-)

    Thanks, the problem is now solved.

    Just to add to the information I have php 5.2

    Using the default wordpress .htaccess file.

    Hi,

    I am getting 500 internal server error after activating buddypress, I have checked it many times and wordpress works fine if I deactivate the plugin. I was able to make it work by altering the content of .htaccess file but somehow my .htaccess got changed automatically I did not have any back up for the modified htaccess file.

    The error I am receiving is –
    [Fri Nov 11 01:52:39 2011] [warn] [client 209.85.224.86] mod_fcgid: read data timeout in 40 seconds
    [Fri Nov 11 01:52:39 2011] [error] [client 209.85.224.86] Premature end of script headers: index.php

    Can anyone help me solve this error ?

    P.S. – hosted on linux.

    #124159
    @mercime
    Participant

    Change to the BuddyPress default theme and see if same behavior applies

    #124155

    In reply to: Member since

    KatyP
    Member

    This is for everybody who wants to edit the BuddyPress Member Profile Stats plugin so that it will read “[username] has been a member since [date]” instead of “[username] has been a member since [x] days ago.”

    #1. Open buddypress-member-profile-stats/bp-member-profile-stats.php in the Editor

    #2. Find where it reads:

    `apply_filters( ‘etivite_bp_member_profile_stats_get_member_registered’, esc_attr( bp_core_time_since( $bp->displayed_user->userdata->user_registered ) ) );`

    #3. Paste in this right underneath it:

    `function etivite_filter_override_member_registered( $content ) {
    global $bp;

    return date( “F j, Y”, strtotime( $bp->displayed_user->userdata->user_registered ) );
    }
    add_filter(‘etivite_bp_member_profile_stats_get_member_registered’,’etivite_filter_override_member_registered’);`

    I made a further modification. I didn’t want it to read [username]. At first I thought I’d change it to FirstName Last Name, but then I decided that I just wanted it to read that they joined my site on that date. Here’s what I did.

    I found where it reads:

    `function etivite_bp_member_profile_stats_get_member_since() {
    return ‘

    ‘. bp_get_displayed_user_username() .’‘. __( ‘ has been a member for ‘, ‘bp-member-profile-stats’ ) .’‘. etivite_bp_member_profile_stats_get_member_registered() .’.

    ‘;`

    And I changed it to:

    `function etivite_bp_member_profile_stats_get_member_since() {
    return ‘

    ‘. __( ‘ Joined … on ‘, ‘bp-member-profile-stats’ ) .’‘. etivite_bp_member_profile_stats_get_member_registered() .’.

    ‘;
    }`

    where … is the name of my site.

    Hope this helps whoever is looking for this type of modification! :D Best of luck to everyone out there!

    #25606
    Muhang
    Member

    I would like to know your opinion.

    I’ve been getting some information about membership plugins to use in my site.
    The two most interesting ones would be s2members and membership from wpmudev.

    Wpmudev plugin is really easy regarding interface and to set things up, but s2members seems a lot more powerful and customizable then the other one. It looks like that they really care with security.

    My goal is to have at least three types of accounts, where user can create blogs, add extras to buddypress groups ( like forums, docs, events ), have more space, and much more.

    I know that both plugins in premium version have many payment gateways,

    We’re going to have the front page that is going to be like a magazine and then the back side, which is the community.

    Membership plugin will integrate with pro sites plugin, does s2members have something similar?
    They’re going to work with domain mapping too.

    Is there any other plugin that you would advice?
    Would be really nice to read your opinions about this.

    #124154
    Steve
    Participant

    Hi @piermaria

    Have you had any luck upgrading the plugin to be compatible with BuddyPress 1.5? How much will this cost?

    #25605

    I am getting the following error when I select “Friendship Request” button on the members directory page. I am running WordPress 3.2.1, Theme: Headway 2.0.13, Buddypress 15.1: Fatal error: Call to undefined function bp_get_settings_slug() in /home/jmccaffr/public_html/wp-content/plugins/buddypress/bp-friends/bp-friends-notifications.php on line 17. The request seems to go to the members and the error goes away when I refresh the page. Does anyone have any ideas?

    Thank you,

    Joe

    #25603
    KDSinc
    Member

    Hello everyone,

    I would like to ask if how to solve this issue of mine? the buddypress is working fine but its overlapping to my template? anyone codes to be inserted or inject to fix this?

    http://i43.tinypic.com/2ed5jd2.png

    or any template should i edit? please tell me..thanks you.

    Best,

    Welvin

    #25602
    ahelman
    Member

    Hi,

    I hope this is the right place for this question.
    I just got the latest version of buddypress 1.5, and was wondering how to limit the search only to posts. Also, it’d be nice to be able to remove the drop down completely.

    Thank you in advance

    #124149
    oddzuki
    Member

    VERY simple solution once @mercime helped. All that was needed was this added:

    Instead of this:

    http://cl.ly/3G06003q282I1O1J0C2T

    It should have been this:

    http://cl.ly/2X0c0F3H0H1N3B3L1t3s

    Thanks for the help!

    mustangus
    Member

    Hi @Mercime, thank you so much for your reply. The most relevant example from both examples that you put in your e-mail is: http://testbp.org/groups/the-mr-topp-group/forum/topic/my-hat-is-awesome/
    The posts are organized in a way that the oldest posts are on top and to see the newest posts you have to scroll down, sometimes for many pages if number of posts are big. What I am trying to find out is how to change the order of the posts to display new posts on top and old ones could go on the bottom. I’ve done a lot of research in the past 2 weeks and changed SQL values in WordPress to ASC but it does not seem to work. Seems like something in Buddy Press in overriding. Many thanks for your reply

    #124147
    oddzuki
    Member

    @mercime Thanks. I’m looking into it now. Looking at the groups-loop on the theme I’m using seems like it’s calling for it properly, but it’s still not showing. Will report back once I find out the issue. Hopefully it’ll help someone else.

    Edit: Looks like the “group-loops” are the exact same on the theme and the default theme. So I would assume that the issue is having the theme reference the default?

    #124144
    candy2012
    Member

    Thank you @modemlooper !

    I don’t think I really know how to start on that …

    I have tried this:

    foreach( $activities->activities as $key => $activity ) {
    if ( $activity->scope ==’friends’ || $activity->scope ==’just_me’) {
    unset( $activities->activities[$key] );

    but it does not work, I mean I only get the friends but not my own posts :-(

    As far as I understood is the “scope” I need not the action types (I want all actions to show, but for friends and the current user only)

    What am I doing wrong?

    An other thing that I have noticed, when I click on the “All users” Tab, the site-wide activity is there all untouched, and this is definitely not supposed to hapen. I need to filter that fully out!

    Just like Facebook! Imagine you loginto Facebook and get the billions of user activity statuses rolling in front of your eyes …

    I guess it has to be checked somehow that the displayed activity belongs to the current-user friends only …
    but how !??!

    #124141

    In reply to: Privacy????

    Ben Hansen
    Participant

    @DJPaul sorry man just thought i would try to do what i could client is impatient and the issue seems to be in limbo and quite important to quite a few people didnt mean to be rude.

    #124140
    justbishop
    Member

    @boonebgorges, thanks, and I have to ask why would you advise against doing it? Having those duplicates in the activity stream is actually an extremely bad thing for my site, because they are essentially items for sale. If a user is able to view the copy of a post made to my main site by the SWT plugin (as you are able to on certain posts that have been natively posted to one of my network’s child sites), the “add to form” cart renders using MY paypal info, rather than the seller’s info, as it does when you view the item on their site!

    Here is an example of a child site post (copied to the main site via SWT) that you can get to via one of the duplicate activity entries:

    http://www.riotcart.com/blog/2011/01/30/medium-juliette-skirty/

    And here is the item on the seller’s own site (a child site on my network):

    http://www.riotcart.com/hedgieshideaway/?p=115

    As you can imagine, it’s extremely important that users/front-end viewers are NOT given the option of which version (the original or the copy to the main site) they’d like to click into!

    @nahummadrid, I honestly have no idea what was going on. Like I mentioned, as soon as I removed the “before_blog_post” and “after_blog_post” BP codes from around my query for the featured post, the problem was non-existent, and I was able to just use the block activity stream types plugin you had recommended :D

    For the record, here is my query for the featured post. I use the Featured Content Showcase plugin for various reasons, but it displays a slideshow. All I wanted was one static, random post with an image, title, and excerpt on each page load, so I dug around and found the meta key/velue that the FCS plugin was adding to posts marked as featured, and ran with it:

    `$args=array(
    ‘orderby’ => ‘rand’,
    ‘post_type’ => ‘post’,
    ‘post_status’ => ‘publish’,
    ‘numberposts’ =>1,
    ‘post_type’ => ‘post’,
    ‘meta_key’ => ‘_fcs_featured’,
    ‘meta_value’ => ‘true’,
    );

    $latest = get_posts($args);
    $count = 0;
    foreach($latest as $post) {

    $blogid = get_post_meta($post->ID, ‘blogid’, true);
    $image = get_post_meta($post->ID, ‘thumbnail’, true);
    $title = get_post_meta($post->ID, ‘_fcs_title’, true);
    $text = get_post_meta($post->ID, ‘_fcs_text’, true);
    if ( empty($title) ) {
    $title = get_the_title($post->ID);
    }

    if ( empty($text) ) {
    $text = $post->post_excerpt;
    if ( post_password_required($post) ) {
    $text = __(‘There is no excerpt because this is a protected post.’);
    } elseif ( !empty($post->post_excerpt) ) {
    $text = apply_filters(‘get_the_excerpt’, $post->post_excerpt);
    } else {
    $text = $this->_makeExcerpt($post->post_content);
    }
    }`

    #124138
    Paul Wong-Gibbs
    Keymaster

    @ubernaut, no need to cross-post this sort of thing on 4 posts. It’s not polite. I’m locking this topic.

    #124137

    In reply to: Still no privacy??

    Paul Wong-Gibbs
    Keymaster

    @ubernaut, no need to cross-post this sort of thing on 4 posts. It’s not polite. I’m locking this topic.

    #124136
    jjkob
    Participant

    Did you ever get this working Chris? I see that the BuddyPress Real Names plugin has not been updated for some time — has a new/better plugin emerged to replace this one?

    #124135
    @mercime
    Participant
    @mercime
    Participant

    @mustangus default behavior is displaying the newest/latest posts on any topic first in either the
    group forums e.g. http://testbp.org/forums
    or the sitewide forums e.g. http://testbp.org/discussion/

    Which of the two kinds are you referring to?

    @mercime
    Participant

    Site URL? Did you develop the customized BP theme or did you download it elsewhere? Some customized BP or BP-default child themes make it more complicated to change the layout while others are much easier to implement new layout.

Viewing 25 results - 51,376 through 51,400 (of 94,539 total)
Skip to toolbar