Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'Activity Feed for members only'

Viewing 25 results - 26 through 50 (of 167 total)
  • Author
    Search Results
  • #263935
    livingflame
    Participant

    Hi there!

    I have this code —-> But this code does not work anymore with BuddyPress 2.8

    // Hide admin's activities from all activity feeds
    function bpfr_hide_admin_activity( $a, $activities ) {	
    	
    	// ... but allow admin to see his activities!
    	if ( is_site_admin() )	
    		return $activities;	
    	
    	foreach ( $activities->activities as $key => $activity ) {	
    		// ID's to exclude, separated by commas. ID 1 is always the superadmin
    		if ( $activity->user_id == 1  ) {			
    			
    			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;				
    		}		
    	}
    	
    	// Renumber the array keys to account for missing items 	
    	$activities_new = array_values( $activities->activities );		
    	$activities->activities = $activities_new;	
    	
    	return $activities;
    	
    }
    add_action( 'bp_has_activities', 'bpfr_hide_admin_activity', 10, 2 );

    And, I have other code, but this only hide admin from Directories and Bp Widgets.

    // Exclude Admins from Directories and BP Widgets 
    add_filter( 'bp_after_has_members_parse_args', 'buddydev_exclude_users' );
     
    function buddydev_exclude_users( $args ) {
        //do not exclude in admin
        if( is_admin() && ! defined( 'DOING_AJAX' ) ) {
            return $args;
        }
        $excluded = isset( $args['exclude'] )? $args['exclude'] : array();
        if( !is_array( $excluded ) ) {
            $excluded = explode(',', $excluded );
        }
        $user_ids = array( 1, ); // enter user ids here
        $excluded = array_merge( $excluded, $user_ids );
        $args['exclude'] = $excluded;
        return $args;
    }
    #263534
    djsteveb
    Participant

    with my default bp installs just about everything IS public.. it’s actually not easy to make the bp pages like activity and groups and such private.

    I think most of those things are fine to be public – and people can choose to make groups members only, logged in only, or public viewable.. default is all public I think..

    Most profile fields the user can choose similar privacy settings for certain fields if you allow..

    Sometimes I make a group non-pulbic viewable as super admin..

    I also choose a lot of things to be blocked by the robot search engine spiders – as there is no need for them to go pulling 100 pages of activity feed and such – so even though most of my BP site is publicly viewable, only about half of it is (supposed to be) crawled by the big engines – most follow the robots.txt directive – but not all..

    #262757
    danbp
    Moderator

    If you mean the text: “Good people […] (Plato)”- you can remove this update from the site activity, wwhen you’re logged-in, by using:

    – dashboard > activities – from here only, as site admin, you can modify the text – normal user can’t modify the text, only delete it.
    or
    – click on “view” below the quote (actually http://medicinalplantclub.com/activity/p/182/) on members directory or profile header
    or
    – click on “delete” under the activity in the front-end SWA feed

    #262296
    livingflame
    Participant

    @danbp
    Hi!
    Can you help me?
    How I can hide super admin’s vcard from BuddyPress Widgets??

    Your code only hide super admin from members and activity…

    // Deny access to admins profile. User is redirected to the homepage
    
    function bpfr_hide_admins_profile() {
    
    global $bp;
    
    if(bp_is_profile && $bp->displayed_user->id == 1 && $bp->loggedin_user->id != 1) :
    
    wp_redirect( home_url() );
    
    exit;
    
    endif;
    
    }
    
    add_action( ‘wp’, ‘bpfr_hide_admins_profile’, 1 );
    
     
    
     
    
    // Hide admin’s activities from all activity feeds
    
    function bpfr_hide_admin_activity( $a, $activities ) {
    
     
    
    // … but allow admin to see his activities!
    
    if ( is_site_admin() )
    
    return $activities;
    
     
    
    foreach ( $activities->activities as $key => $activity ) {
    
    // ID’s to exclude, separated by commas. ID 1 is always the superadmin
    
    if ( $activity->user_id == 1  ) {
    
     
    
    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;
    
    }
    
    }
    
    // Renumber the array keys to account for missing items
    
    $activities_new = array_values( $activities->activities );
    
    $activities->activities = $activities_new;
    
     
    
    return $activities;
    
     
    
    }
    
    add_action( ‘bp_has_activities’, ‘bpfr_hide_admin_activity’, 10, 2 );
    
     
    
     
    
    // Remove admin from the member directory
    
    function bpdev_exclude_users($qs=false,$object=false){
    
     
    
    $excluded_user=’1′; // Id’s to remove, separated by comma
    
     
    
    if($object != ‘members’ && $object != ‘friends’)// hide admin to members & friends
    
    return $qs;
    
     
    
    $args=wp_parse_args($qs);
    
     
    
    if(!empty($args[‘user_id’]))
    
    return $qs;
    
     
    
    if(!empty($args[‘exclude’]))
    
    $args[‘exclude’] = $args[‘exclude’].’,’.$excluded_user;
    
    else
    
    $args[‘exclude’] = $excluded_user;
    
     
    
    $qs = build_query($args);
    
     
    
    return $qs;
    
     
    
    }
    
    add_action(‘bp_ajax_querystring’,’bpdev_exclude_users’,20,2);
    
     
    
    // once admin is removed, we must recount the members !
    
    function bpfr_hide_get_total_filter($count){
    
    return $count-1;
    
    }
    
    add_filter(‘bp_get_total_member_count’,’bpfr_hide_get_total_filter’);
    
     
    
     
    403laura
    Participant

    I have wordpress version 4.6.1. I have buddypress version 2.2.2 (child theme in use). I also have bbpress 2.5.10. My website is http://getjobhelp.ca

    I am having issues with the activity stream…I am unable to see any activity posted by other people in my forum, regardless of what dropdown menu I use. I am able to only see my own activity. I hope the following example is specific enough, asI don’t really know how else to describe this.

    ***Example 1: when I am logged in as the “adminsitrator/keyholder”, I am able to see what I have posted in the activity stream but I cannot see anyone elses posts, no matter what dropdown menu I use i.e.; everything, updates, friendship, group updates, group memberships, posts, comments topics, replies, new docs, doc edits, doc comments.***

    ***Example 2: when I am logged in as a “User” I can see my own activity but I cannot see what anyone else has posted, regardless of which dropdown menu I use. (Same as above example but as a user) So in other words, the posts I made as the “administrator/keyholder” do not show up on my activity stream as a “user.”***

    After reading through this help section to get help with seeing the activity feed, someone suggested to deactivate the “buddyboss wall” plugin…I did that and was finally able to see my own activity stream but still having the above issues.

    I then installed the buddypress activity plus” plugin so users could interact through comments, videos and links…which appears and seems to work just fine. But When you cant see what anyone other than yourself posts in the forum, what use does it really serve? I would like for the members to be able to interact with each other but they wont know if someone else posted in the forum if the activity stream doesn’t work. (When I say forum, I do mean the whole site…not an individual forum)

    Lastly, I really do not know anything about code or where to put it or how to find where to insert it into the css or php or whatever, as I am not a developer, I am just a networking forum owner looking for some help please. 🙂 Thank you.

    #259231
    shivangiprasad
    Participant

    Hi,

    i have 26 members registered on my website. in the activity feed, i am getting an update that new members are joining in. however, the list of members is constantly only displaying 18 members and not showing any new members. i am using a free theme and a couple of plugins including woocommerce.

    what exactly is the problem? can somebody please help me?

    Thanks in advance,
    Shivangi

    #258998
    bikerwp000
    Participant

    Hi Paul,

    I just copy/paste my original inquiry to pastebin.com. I’m not sure how that works, but I assume just by posting it there, people will potentially respond, right?

    Anyway, this whole afternoon I’ve been testing the 3 paragraphs rule you graciously advised me and found it a true statement.

    My conclusion is I need to have
    at least 4 paragraphs separated by [Enter],
    there must be at least one blank line in between paragraphs, and
    each paragraph needs to have at least 1 character, either letter or numeral,

    when I got all those covered, and when I have both feature image and embed video in the post, the feature image will appear in the member’s Activity feed, not the video, which is what I want.

    And there can be more than one embed video.

    What wasted me a lot of time was after successfully achieving the result I want (4 paragraphs and all those other above requirements), I experimentally deleted 1 paragraph at a time to test what makes it fail and what makes it work. After all was done, when I restored it back to the way it originally worked, suddenly either the featured image wouldn’t show up like it did the first time on Activity feed or the embed video only show the URL link but not the video itself in the post.

    I kept tweaking it every possible way hoping to find out what went wrong or if the 3 paragraphs rule was in effect incorrect.

    In the end, I realized it would work again if I simply abandoned the messed-up post and started a new post by following all the above requirements.

    So that’s what you should try if something were to go wrong and you’re at a loss of what’s going on.

    I may also need to point out that all the posts in this upcoming website of mine will be contributed by frontend members via WP User Frontend plugin, which was what I used testing this 3 paragraph rule. But I think the conclusion I came up above should remain the same if you post via backend admin.

    @ Paul, thanks again for your help. Not sure if you’d care to help me out on my the other thread “How to add self-created category to member Activity filter dropdown box?”

    How to add self-created category to member Activity filter dropdown box?

    I’d really appreciate if you, or anybody, could help me out on that one.

    I had another quickie inquiry appended at the end of that thread. That one is not as important, so please don’t worry about if if you’re not interested.

    Thank you.

    Apokh
    Participant

    – checked- theres only one Activity page
    – resaved permalink structure
    – i dont use custom code, but activity+ plugin
    – i use quiet a bunch of additional plugins:
    –BoweCodes
    –Buddypress
    –DisableFeeds
    –DownloadManager
    –DynamicWidgets
    –EventsManager
    –GoogleAnalyticsDashboard
    –GoogleFonts for WP
    –HungryFEED
    –LayerSliderWP
    –Mediapress
    –Members
    –Metaslider+Pro
    –myCred
    –myCredHookBP
    –PageBuilder Siteorigin
    –PaypalDonations
    –Peters Login Redirect
    –PHP Text Widget
    –SimplePress
    –Siteorigins Masonry
    –SpamProtect by Cleantalk
    –TablePress
    –Wordpress VideoGalery
    –WP FullCalendar
    –WP Lastlogin
    –WP TwitterFeeds
    –WP ULike
    –WP touchmobile

    brettdarnesh
    Participant

    Hi,

    I have searched and searched for a solution. I have an existing private bbpress forum up and running for subscribers using Memberpress. I have installed Buddypress hoping to use ‘mentions’ and the activity feed to try to make it more social and a little bit like facebook.

    I have tried all sorts of settings with using all the components and with partial. I only want the bbpress forum, Activity feed and notifications/mentions. I don’t want the friends feature, but have tried it with this component switched on. I have no friends obviously to start with but there are no members anywhere to request to at least test that. If this is needed to see the activity of others in the bbpress forum, I need to find a simple way so all members are friends as a default with no additional notifications or emails.

    Are their any issues with installing buddypress with an existing bbpress forum. In every integration tut, there seems to be an order of installing Buddypress first.

    Does having Memberpress protecting the bbpress forums affect buddypress so I only see my own activity in the bbpress forum?

    can I do away with groups, and just have a global bbpess forum?

    The more troubleshooting I do, the more solutions I rad the more I am getting confused.

    Some help would be greatly appreciated

    thanks

    #251295
    ds123
    Participant

    does anyone know how we can prevent members from over promoting themselves by posting the same thing over and over in our community? for example we have some guys that post the same youtube video over and over in multiple locations on groups ..activity feed …etc…..on Twitter it has the function where it says “you already posted that” …so my dream would be wherever they try to post it they can only post it at most 3 times …thanks in advance for any help this is really hurting our community

    #247264
    jimme595
    Participant

    Hi, thanks for the heads up, have got fetch avatar no grav disabled now and my filter on bp_core_default_avatar_user is now working! However it is only working for things like members list and and ‘who’s online’ widget. In the activity feed the avatar is always my admin avatar… is there a different filter for avatars fetched during activity feeds?

    BEst, James

    #246705
    scoobs2000
    Participant

    Hi
    in short everything you have asked can be done.

    But I’m a little bias as I honestly believe regarding technology there is nothing that can’t be achieved it just comes down to how much time and budget you have to invest… 🙂

    Below is a bit of a ramble…. But might provide insight. after you organize your coffee and come back.

    I have nearly completed a project that sounds similar in nature (few weeks from launch in final beta testing), however it was a highly customised solution (private membership site) .
    With nearly 70 plugins, 100’s hours coding integration code (lots of trial and error) between the plugins and also compatibility tests with multiples of plugins to ensure no issues, because of slow load times the project requires deploying from CDN,fast servers and customised caching solutions.
    most of work load appeasr to be bbpress – so an near out of the box solution, you prob don’t need to go that far.

    But not to scare you. Here are some pointers that might answer your questions, based on my understanding of the OP.

    In my case I spent many months researching solutions with many platforms (open source / paid / managed premium) – buddy press was selected simply because is built on WordPress that’s already has the core abilities you need, you just need to “hook in to’em” and take advantage of this concept – you can keep working on bettering and adding separate components / features as time goes by, great for client, works out a bit cheaper in the startup phase and great for developer – land ya self a permanent support / ongoing development contract……

    Is it possible to update profile content/meta? : In general yes, buddy press allows this out of the box

    Either the user or the admin can update, you can have admin only fields (the user doesn’t access them – but the admin can)
    if you use a membership plugin eg, s2member – you can extend this idea much further eg, only require email on signup, then all other fields are accessible from profile and can set fields on a per membership level,

    In your case, you might have different profile fields for students, teachers, Parents and only require a couple of basic fields to be completed on signup and all other fields can still be “required” when they reach their profile page.
    For profile field management I recommend the s2membership pro plugin (free version available) http://s2member.com/

    My project has a “todo list” for each and every member – however I’m still to this day unable to find a plugin that interacts with a completed wp/bbp/buddypress site. So I had to code one. The todo list was designed / engineered in a way that interacts with “wordpress” in general, by storing a completely unique data feed much like the activity feed with time stamps and can be programmed to be linked to any site link, media download, page view, forum post, reply any activity on the site can be logged and applied to the feed which the to-do-list interacts with and auto completing (crossing of the item) each item also has dependencies, so you rattle off a list of activities before the task is crossed off and each to-do-list also has dependencies so it is not seen by a user until certain tasks are completed, eg, purchase a course from the store, or complete a previous to-do-list.

    In short: Yes it can be done, however I’m not aware of any 3rd party plugin that does this successfully.

    In my case I have the to-do-list shown in the sidebar so as a member goes through the tasks the list is also available to them no matter what page they are on. But possible to publish it in the profile page if required.

    Regarding email notices, I recommend looking into the woo commerce sensei http://www.woothemes.com/products/sensei/ plugin for your courses that way you have management of email notices, in fact prob most of the things you require will be available via sensei – note this is a premium paid plugin with yearly ongoing licence costs.
    Without a free trial version to try before you buy.

    But maybe gravity forms developer licence might be fine in your case as it has, gateway plugins, qiz and survey plugins – it would be possible to build certain simple courses on the gravity framework including delivery of custom emails – if building a form based system than certainly worth a look into – but would require a developers licence to get all the plugins you would prob require.

    In fact what I do is use gravity forms email chimp plugin to send the members email address to an email list (automation campaign) in mail chimp (paid account) that auto sends a welcome emails that I have customize to suit the activity they have completed, this way I can send pretty html + marketing emails + scheduled follow up emails and take the work load off WordPress other than a quick API connect on demand.

    Regarding: is it possible to have multiple logins or users access the same account/profile?
    In simple: Yes, but it all comes to context of the profile, will each member be able to see other members profiles or will parents be able to edit a child profile etc.

    Although my project does not require the need for 2 or more members to edit a single profile, I do have multiple levels of context (horizontal and vertical memberships) all with their own set of rules who profiles they can see and what buddypress features are available to them – some members don’t have activity feeds or messages, But I needed to ensure that members that do have access to these features can’t access the features of cross membership and so on.

    This is 100% custom code (no plugin) but while coding this up I recall thinking I’m 100% confident it is possible to add another level of check “if current user can edit displayed user” and go from there, all you would need is a profile field / meta that links multiple accounts together –
    Eg, a parent account has a profiled field “child user name” – they just enter the child username / user ID – and now we would add the profile check if a parent is viewing the child’s profile.

    Regarding paying a deposit, and payment, this is my findings.

    There was no single one membership / payment plugin that integrated perfectly into what I wished to achieve – I have tested many. please note I’m suggesting there are no plugins that do this stuff just none that achieved the outcomes I needed for my project.

    – Tips: – start the project design based on the payment systems / gateway (the complete project and direction of development is 100% dependent on this) because the simple reason every feature you implement needs to check “is a paid member and what level (cap / role) ” – including free membership with paid features “is not a paid member” but has paid for… this includes recurring and non-recurring subscriptions with consideration of what you intend to do if a subscription expires.

    Eg, a recurring subscription will either just auto subscribe and pay for the next time frame (or fail)
    A non-reoccurring subscription will auto expire after a given time frame (or X cycles)

    The difference between to the two –
    Is generally on a recurring subscription when it expires it also linked to a member account to “do something” eg downgrade membership

    A non-recurring subscription is generally used for a onetime payment you have access forever feature- eg, a course and resources, you pay once on a deposit, subscription over several weeks when the subscription expires the member still has access to the course as long as they remain at minimum a free member on the site. (anyhow that’s how I have implemented things)

    These two concepts are completely different in the way they interact with the member as well at many levels although on the surface appear to be almost the same, add in a deposit feature you are also opening another level of context to play with, mostly limiting the available options regarding the payment gateway service you will need to use or more so which services have this feature on offer.

    As mentioned – my suggestion is start with the gateway solutions first and reverse the design back to the front end. – this is the big lesson I took away with this project (4 rewrites in total) as it was always a block relating to the gateway limitations (and laws relating to online subscriptions in my country).

    My project:
    Woo commerce (free) for shopping cart system including purchase of courses, subscription to site and deposit/ subscription to courses, plus all other products, deliverable products, workshops, webinars, one on one sessions, resource downloads from pdf to videos. Anything you can think off can be sold through woo

    Woo commerce quick cart – plugin (paid)– now I can add a buy now button on any page for any product including subscriptions – the membership info page has a standard 3 column price comparison chart with nothing more than a “sign up now” button – clicking the button auto adds the subscription to cart and opens the checkout popup with one click and without leaving the page (no need to send to store)

    Sensei (paid)– for courses and fits well into woo commerce system (but requires a couple more plugins and custom integration code if implementing paid / subscription based courses )

    Groups plugin (free) to easily manage roles and caps (as I have to teach client staff how to do this and manage the site) WordPress has this capability built in if your a coding ninja (I’m not)

    Groups Woo commerce (paid plugin) to link groups to a purchase – apply a role / cap or groups of, to a user based on the purchase.

    Then some custom code is required – to perform a check and if a user has a particular role or cap than apply the s2membership level – this check is done at the store level so if a member cancels or defaults on a payment – the membership level is auto adjusted depending on what role or cap is supplied to the user from the groups woo commerce automation. groups plugin manages non-recurring subscriptions so a expired subscription does not remove the users caps and roles (but a default on payment does)

    S2member pro – for membership level management including profile fields management and most importantly complete site access management – I can apply access to each and every competent of the site this includes , forums, topics, replies, posts, pages, media, courses, and content within pages eg, home page displays different content based on the membership level / logged in or general public. s2member pro is also used to override default bbpress / buddy visibility settings eg, hidden forums only available to certain member levels – but requires custom code to apply or traverse access levels on submitting topics / replies to ensure widgets and other snippets don’t display private areas to members that don’t have access. (it allows you to write custom queries with zero concern or consideration to access levels)

    For subscriptions (paid)– I use woo commerce Subscriptions plugin – this manages on its own site access based on paid recurring subscriptions (or in simple turns on or off user account based on payment) – pay x amount monthly to access certain site features, courses and resources, forums, pages, blog articles etc.

    However – woo commerce subscriptions does not manage deposit / time based subscriptions (non-recurring subscriptions) eg, pay a deposit for a course and gain instant access then pay off on a subscription for x amount of weeks / months –
    I was not able to find any plugin (free or paid) that does this, so I had to write a plugin currently under experimental concept stage.

    Other tips: often it’s better to find compatible, well supported and pay for premium plugins that have overlapping features and disengage these features you don’t want to achieve your goals and do as little integration code as possible, but anything you do needs to be well planned and though out as to not to touch core code in any platform, framework or plugin.
    At the end of the day you want the ability to upgrade all systems as time go by.

    Eg, s2member plugin has its build in membership system that is “required to be active” for the plugin to work. – all I did was setup a single paid (never to be used membership) on a paypal sandbox store this includes setting up all the s2membership registration pages etc – then put a simple redirect in the .htaccess on any of these pages. Now to purchase membership you must go to the store (woo commerce) and purchase a subscription via woo – s2member has now has nothing to do with membership registration / payment systems.

    And of course I have “force account creation” turned on at the store – you cannot make a purchase without signup at a minimum free site membership.
    by disengaging the buddy, bbp, Wp, and all other means of registering (by redirect) but only leaving the woo commerce customer account registration available – The pop up registration form I use for free members is just a woocommerce customer account registration form (with no products attached) with a fallback to the s2membership cut down reg form (in case ajax / jquery etc not working on client side)

    And now all purchases, subscriptions, shop account, courses etc are now available from the buddy press profile page also via a “woo to buddypress” plugin (or in my case built into the theme)

    May sound complicated but as mentioned I would really suggest starting with payment solutions and nut out this part of the project first as this will most likely force development direction,

    one of my project goals was a solution that can cater for anything…. so,

    Regarding variable deposit / costs amounts based on user input – if using similar approach as I did – you would just setup woo commerce discount codes per variable outcome / result and would just reveal the correct coupon code to the user on the checkout page. they just cut and paste this code into the discount field and click apply.

    or setup up multi products – one product per price base. – have the user input their details first and the result would be – apply a groups cap / role then only offer the courses products in the store with the associated price base based on user caps / role –

    woo discount coupons can be setup on multiple bases – eg, deposit amount / on going subscription amount or total amount or per product or per cart total etc.

    for me was plenty of research into this including concept builds of other community platforms and as above is only a bit of a sample of features used relating to the OP.
    I was under very strict key point goals and achievements requiring very specific outcomes many of these affected development direction how / why I implemented the above.

    There may be better simpler ways to suit your specific project, but thought it might be worth a mention for some direction. or at least insight into some of the plugins I use / ideas and concepts.

    my usual disclaimer – if there is something in there for you, that’s great! if not that’s fine too!

    enjoy!

    #244829
    Julia_B
    Participant

    I’m considering a redesign for my busy members site.

    I currently have around 250 members, most of whom are very active in the community, and I’m looking to increase numbers to around 500 over the next six months.

    I currently have the Buddy theme installed by Ghostpool. It has been great for the first year of the site, I just have some concerns about how well it will scale up as member numbers increase.

    At the moment I have my site set up with a single Buddypress group for general chat and then members use the BBpress forums for more involved conversations. All activity appears on a feed in the centre of the homepage so members can quickly catch up with what’s been going on.

    This has been working well so far, but I’m not sure how it will scale up. For example, with my current theme, replies to posts in the chat group are nested and start to look untidy after a few replies (the font size also decreases making them difficult to read). Another issue is that replies appear twice on the activity feed – once under the original post and again individually. As the site gets busier this could get really confusing.

    Another issue is that members can reply to (buddypress) group comments via the homepage activity feed but to reply to (bbpress) forum posts they see in the activity feed they have to click the title to go through to the forum to reply. This often causes confusion.

    It is good to have the forum activity appearing on the homepage though, I think this helps keeps conversations going much more than if members only saw the forum topic headers on arriving at the site.

    The community is central to the site, but members also need to access post/page content, so I need to consider how content is presented too.

    It’d be really useful to know what themes people are using for busy community-focused sites, especially larger sites.

    Any recommendations?

    (I know I can search the theme directory, by the way, I’d just really like some recommendations from site owners using the themes)

    #243538
    coffeywebdev
    Participant

    Take a look at this code, I think it may be helpful for you…

    I created a function vp_add_group_activity_comments() that hooks to the ‘post_comment’ action, so when a user posts a comment an activity stream item is created and added to their group’s feed.. (on my site users can only be in one group at a time)

    It’s all about what you set for the $args array….

    
    function vp_add_group_activity_comments($comment_id){
    
    $comment = get_comment( $comment_id );
    GLOBAL $wpdb;
    $user_id = get_current_user_id();
    $user_info = get_userdata( $user_id );
    
    $current_user_group_id = $wpdb->get_var("SELECT group_id FROM ".$wpdb->prefix."bp_groups_members WHERE user_id = '".(int)$user_id."'");
    
    $comment_action = "<a href='".site_url()."/members/".$user_info->user_login."'>".$user_info->first_name." ".$user_info->last_name."</a> posted a comment on <a href='".get_permalink($comment->comment_post_ID )."'>".get_the_title($comment->comment_post_ID)."</a>";
    
    // arguments to pass to the bp_activity_add() function
    $args = array(
    'action'            => $comment_action,                     // The activity action - e.g. "Jon Doe posted an update"
    'content'           => $comment->comment_content,                     // Optional: The content of the activity item e.g. "BuddyPress is awesome guys!"
    'component'         => 'groups',                  // The name/ID of the component e.g. groups, profile, mycomponent
    'type'              => 'activity_update',                  // The activity type e.g. activity_update, profile_updated
    'primary_link'      => get_permalink($comment->comment_post_ID ),                     // Optional: The primary URL for this item in RSS feeds (defaults to activity permalink)
    'user_id'           => $user_id,  // Optional: The user to record the activity for, can be false if this activity is not for a user.
    'item_id'           => $current_user_group_id,                  // Optional: The ID of the specific item being recorded, e.g. a blog_id
    'secondary_item_id' => $comment->comment_ID,                  // Optional: A second ID used to further filter e.g. a comment_id
    'recorded_time'     => bp_core_current_time(), // The GMT time that this activity was recorded
    'hide_sitewide'     => 0,                  // Should this be hidden on the sitewide activity stream?
    'is_spam'           => 0,                  // Is this activity item to be marked as spam?
    );
    
    $add_activity = bp_activity_add($args);
    
    // Update the group's last activity
    groups_update_last_activity( $current_user_group_id );
    
    return true;
    }  
    add_action('comment_post', 'vp_add_group_activity_comments' );
    
    tomnikkola
    Participant

    Hello

    We have two different membership groups using our website. The first group should only see certain forum topics and replies. The other group can see all. When the members use the actual forums, this works great, but if any of the members use their activity feed, they see content from forums they should not see.

    As a short-term solution, I want to hide ALL topics and replies from the activity feed, but not hide the “mentions.”

    I put this in my CSS editor:

    .bbpress.activity-item {
    display: none;
    }

    and while it it does remove the forum topics and replies from all activity feeds, it also removes the list of mentions.

    I’ve looked throughout the BuddyPress and bbPress forums and can’t find an answer. I’d much appreciate any assistance.

    #238579
    aaronkine
    Participant

    Before i explain this issue I apologize that this is also related to a third party plugin combined with Buddypress, I have contacted their support again and again and they just cant seem to get this resolved. Now its been weeks. I am posting here in HOPE that this is and easy fix that someone can help with.

    I’m using Wp User FrontEnd Pro and thier buddypress addon that allows me to create custom Registration Form for Buddyrpess. But when people register it no longer shows up in the Activity Feed correctly. IT USED TO until I updated Buddypress to 2.1, I’m now on latest BP 2.2.3.1.

    All i see when someone registers is their username and its not linked. You can see three recent members that registered on my site here http://nprnsb.org/ or see the screenshot here http://nprnsb.org/new-members.jpg

    Here are the three code attempts they have tried.

    1.) This was the original that used to work with older version of Buddypress (2.0)

        function on_user_registration( $user_id, $userdata, $form_id ) {
    	         $this->update_user_data( $user_id, $form_id );
    	       if ( function_exists( 'bp_activity_add' ) ) {
    	           bp_activity_add( array(
    	                'user_id'   => $user_id,
    	                'component' => 'xprofile',
    	                'type'      => 'new_member'
    	            ));
    	        }
    	     }
    	}
     // WPUF_BP_Profile
    
    $wpuf_bp = WPUF_BP_Profile::init();

    After Buddypress update to 2.1.1 Only the NAME of the new member would show up (no link, no “became a member” no timestamp).. just their name.
    2.) Here is their attempt to fix which made things worse and did not show ANYTHING in the Activity Feed.

        function on_user_registration( $user_id, $userdata, $form_id ) {
            $this->update_user_data( $user_id, $form_id );
    
            if ( function_exists( 'bp_activity_add' ) ) {
                bp_activity_add( array(
                    'user_id'   => $user_id,
                    'component' => 'members',
                    'type'      => 'new_member'
                ));
            }
        }
    } // WPUF_BP_Profile
    
    $wpuf_bp = WPUF_BP_Profile::init();

    Here their THIRD attempt to fix but this still does now show anything.
    3.)

    function on_user_registration( $user_id, $userdata, $form_id ) {
             $this->update_user_data( $user_id, $form_id );
           if ( function_exists( 'bp_activity_add' ) ) {
               bp_activity_add( array(
                    'user_id'   => $user_id,
                    'component' => 'members',
                    'type'      => 'new_member'
                ));
            }
         }
    }
    add_action( 'plugins_loaded', 'wpuf_bp_init' );
    function wpuf_bp_init() {
        //check dependency for wp_user_frontend
        if ( ! class_exists( 'WP_User_Frontend' ) ) {
            return;
        }
        //check dependency for buddypress
        if ( ! class_exists( 'BuddyPress' ) ) {
            return;
        }
        $wpuf_bp = WPUF_BP_Profile::init();
    }

    I would be very grateful for any info I can pass on to them… Or a FIX would be ideal.

    Thanks for reading.

    mbarbakov
    Participant

    Hello, everyone. I have a problem with Buddypress.

    Wordpress 4.1.1 – Buddypress 2.2.2

    There is no posts, pages or comments in Activity feed.

    At first I encountered this problem on another site and then I decided that the problem may be associated with multiple revisions of WordPress files or there may be a conflict between installed plugins.

    Then I created a special website for the test – http://test.mbarbakov.ru/members/sabi

    I installed only Buddypress and no other plugins. I’ve used a standard theme “twentyfifteen” (and after that “bp-default” theme), but still there is no posts, pages or comments in Activity feed. Only “Sorry, there was no activity found. Please try a different filter.”

    Issue still happens with Twenty Thirteen, Twenty Fourteen and Twenty Fifteen.

    I’ve tried several solutions. Including those that have been recorded in this forum (Search Engine Visibility, “add_post_type_support( ‘page’, ‘buddypress-activity’ );” and other).

    Please help.

    P.S. BTW, excuse me for my english. 🙂

    aljo1985
    Participant

    This outputs “test left the group Group logo of Test GroupTest Group 16 seconds ago”
    Into your activity feed. Useful if you want to track who has currently left your group. As there is no way of knowing if your groups get large. It also inserts in show with disbanded groups to view all members who have disbanded.
    Just insert this code into your themes functions.php file and you are good to go.
    Preview Left Group Preview

    //////////////////////////////////////////
    ////////// LEFT GROUP ////////////////////
    //////////////////////////////////////////
    add_action( 'groups_leave_group', 'groups_left_group', 10, 2 );
    function groups_left_group( $group_id, $user_id = 0 ) {
    	global $bp;
    
    	if ( empty( $user_id ) )
    		$user_id = bp_loggedin_user_id();
    
    	// Record this in activity streams
    	groups_record_activity( array(
    		'type'    => 'left_group',
    		'item_id' => $group_id,
    		'user_id' => $user_id,
    	) );
    
    	// Modify group meta
    	groups_update_groupmeta( $group_id, 'last_activity', bp_core_current_time() );
    
    	return true;
    }
    function groups_register_left_actions() {
    	$bp = buddypress();
    
    	if ( ! bp_is_active( 'activity' ) ) {
    		return false;
    	}
    
    	bp_activity_set_action(
    		$bp->groups->id,
    		'left_group',
    		__( 'Left group', 'buddypress' ),
    		'bp_groups_format_activity_action_left_group',
    		__( 'Group Disbands', 'buddypress' ),
    		array( 'activity', 'group', 'member', 'member_groups' )
    	);
    
    	do_action( 'groups_register_activity_actions' );
    }
    add_action( 'bp_register_activity_actions', 'groups_register_left_actions' );
    function bp_groups_format_activity_action_left_group( $action, $activity ) {
    	$user_link = bp_core_get_userlink( $activity->user_id );
    
    	$group = groups_get_group( array(
    		'group_id'        => $activity->item_id,
    		'populate_extras' => false,
    	) );
    	$group_link = '<a href="' . esc_url( bp_get_group_permalink( $group ) ) . '">' . esc_html( $group->name ) . '</a>';
    
    	$action = sprintf( __( '%1$s left the group %2$s', 'buddypress' ), $user_link, $group_link );
    
    	return apply_filters( 'bp_groups_format_activity_action_joined_group', $action, $activity );
    }

    I do have a question for the developers here, how do you make this so that the join/left activity log cannot be deleted by the user who joined/left? I want it so that if a person joins/leaves, then they can’t delete their join/left activity from the log.

    I could probably use
    groups_is_user_member( $user_id, $group_id )
    For when the member leaves a group but what about posting that they joined a group? I would prefer if admins/mods of the group could only delete those.

    Enjoy, and hope someone can answer this question also.

    aljo1985
    Participant

    For some reason the site title doesn’t display the domain name in any section of buddypress.
    Funny enough in the feeds that it displays in the head, they display the sites title.

    Right now my title looks like this.
    <title>Username – Profile – Edit –</title>

    When it should look like this
    <title>Username – Profile – Edit – domain name</title>

    I would like to actually remove all the feeds from my head, as I don’t actually want feeds on the website.

    I have created my own script for blocking non members from viewing members profiles. So removing the feeds is the next step.

    I can’t seem to remove profile feeds or mention feeds or any of the other. The only feed I have managed to remove from the head is the sitewide feed.

    remove_action( 'bp_head', 'bp_activity_sitewide_feed');

    friendlyfire
    Participant

    I’ve been working with the luminary, Ron Rennik, over at networks + on this issue and he took it as far as he could go. He asked me to post here so we could figure out what’s going on.

    Please, help me restore sanity and all that’s right with the world!

    Issue:
    I set up a subsite on any of the subnetworks (only 2 right now). When I go to set up component pages on the subsite of the subnetwork, I can only select pages from the parent site’s list of pages. I believe this may be as designed.

    So far so good.

    However, when I select one of the parent site’s pages in the subsite’s component page list, let’s say “members”, and then go to view subsite.subnetwork.mastersite.com/members I see a 404 page.

    However, when I set up a “members” page on the subsite, it then shows the activity feed instead of the members page.

    The odd thing is, when I set up the members page on another subsite on the network, I’ll sometimes get the page to actually display the members page properly.

    I’m at a total lost as to what to do here. Any help is greatly appreciated.

    My setup:

    • I have a multinetwork install of multisite and buddypress.
    • It’s set up as a subdomain install
    • BP_ENABLE_MULTIBLOG is defined as true
    • I am running the latest version of buddypress, multisite and networks + (these are the only plugins installed)
    • I want to use buddypress out of the box. Meaning all sites networked together across one installation (no bp-mutlinetwork etc)

    Here’s a look at the config file:

    define(‘WP_DEBUG’, false);
    define(‘WP_ALLOW_MULTISITE’, true);
    // define(‘FS_METHOD’, ‘direct’);
    define(‘MULTISITE’, true);
    define(‘SUBDOMAIN_INSTALL’, true);
    // define(‘DOMAIN_CURRENT_SITE’, ‘topnetwork2.dev’); // commmenting for use of networks +
    define(‘PATH_CURRENT_SITE’, ‘/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1);
    define( ‘BP_ENABLE_MULTIBLOG’, true );

    #234099
    danbp
    Moderator

    Activity feed for Members only or Friends only ?

    Activity Loop


    and pay attention to scope. As of BP 2.2.0, you can now use multiple scope.

    if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . '&scope=friends,groups' ) ) :

    You could also use bp_parse_args in a custom function or
    search on forum for similar to your question, like this one.

    #234098
    Rhoward8419
    Participant

    Does anyone know how to make the activity page so that you are only sharing posts within your circle of friends? The activity page is very cool except that everyone on the whole site will see your comments, updates, timeline, etc. If you make a comment on your profile activity page the only way for someone to see it besides the activity page is if they check yoour profile each time. I hate using the “F” word but I guess it would be similar to Facebook. Thanks and have a great weekend!

    #231425
    PedroDiogo
    Participant

    I have a new project in mind I’m experimenting WordPress with a few plugins to achieve what I desire. However, I haven’t been able to achieve everything exactly as I want, so your feedback is much appreciated since I am new to WordPress.

    I’m building up a blog with 4 different categories where different Contributors can write new posts and interact with the Participants in the forum (better way to comment and reply to questions using the forum, than WordPress’s commenting system). These Contributors, however, must have their own public profile and allow for Participants to subscribe to their posts. So far, I’ve used different plugins:

      bbPress
      BuddyPress
      bbPress Topics for Posts -> Allows me to automatically create a new Topic in the forum for each newly published Post. This is how the Author will interact with the participants.
      BP Blog Author Profile Link -> When clicking the Author’s name, redirects to its BuddyPress member’s page.
      BuddyPress Follow -> I only need a few components of BudyPress’s social capacities… Friendship is not one of them. I just want participants to follow their desired Author and be notified of his/her new blog post. This plugin allows members to just follow other members without Friendship requests.

    These set of plugins solves *almost* every problem. However, I still need to change a few things like:

      the ability to Allow members to follow Authors and be notified of their new posts: so far, members can only check if a member has published something by accessing its Activity tab under his/her profile page. The member is not notified of this activity…
      disable the “Activity” part of BudyPress: I don’t want this on every member’s profile, but if I disable this component, members can not check for Authors’ latest blog posts…

    There are others thing I must change, but these are the most important ones. How can achieve such a thing? Should I not use BuddyPress at all (and loose its bbPress nice integration)? How can I improve its notification system while still not allowing them exchange messages (public or private) and activity statuses?

    I’ve search for a few plugins that could improve BuddyPress to work as I need, but could not found any. I’m not a PHP programmer neither I know how WordPress works, but, if needed, I can try to do some coding on BuddyPress… I want to avoid that, if possible, though, as it would cost me time and the solution might not really work properly…

    ANY help is much appreciated! Let me know if you need more information. Thank you, in advance.

    Regards,
    Pedro

    #230815
    wadsworth4
    Participant

    Fell in love with BP through the CUNY Commons, but not all web communities wish to be wide open to the public.

    Years ago, there were a handful of plugins that helped to make a BuddyPress multi-site install private. I put together a sweet little community for some senior citizens back then. Seems like those plugins are all dead now. After days of researching and reading outdated forum posts, I am scratching my head asking things like, “So how does one disable the public visibility of member activity feeds?”

    Is it actually possible to create a members-only community with BuddyPress 2.1.1. without hacking BP?

    Thanks for any feedback.

    #227769

    In reply to: Facebook-esk Features

    Julia_B
    Participant

    Thanks @danbp, some wise words there!

    You’re right, I do need to sort of let things settle for a while and maybe think along the lines of how to make my site the best it can be rather than trying to replicate Facebook.

    In a way though, I was just using Facebook as example of something with great community functions, there are certainly several ways which my site could be improved especially in making the activity easier for members to follow and more of a Facebook-style feed would help with that. The site is a lot less easy to use on phones and some people have said they use it less than the FB group because they find it fiddly. So I don’t just mean that it has be Facebook really, just that I’d like to make it easy to use as I can.

    I had a look at the Nextgen Facebook plugin, looks good but it seems like it’s more for sharing site content to social media which is not really what I need as most of what is on my site is either confidential member activity or member-only content.

    I’ll keep looking around for more ways to make it more user-friendly and I will try to think out of the Facebook-box, you are right about that! 🙂

Viewing 25 results - 26 through 50 (of 167 total)
Skip to toolbar