Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'custom activity page'

Viewing 25 results - 326 through 350 (of 1,252 total)
  • Author
    Search Results
  • traweczka
    Participant

    Hi,

    I have created a welcome page on my BP site, where are some nice buttons to go to specific pages.

    Now I need to link them, so that after clicking, user goes to appropriate page.

    While http://platformatrop.traweczka.pl/activity/ or http://platformatrop.traweczka.pl/members/ work great, i have problem with profile, groups and notifications links, as they all have “*.pl/members/user_name/notifications and so on.

    Can someone please help me with this issue?

    Kindly,
    Trawa šŸ˜‰

    #247273
    jimme595
    Participant

    So i’ve had some success trying to change the profile links with this code:

    function _bp_core_get_user_domain($domain) {
    	$url = get_home_url();
    	$user_id = bp_get_member_user_id();
    	if (empty($user_id)) {
    		$user_id = bp_get_activity_user_id();
    	}
    	if (empty($user_id)) {
    		//$user_id = bp_displayed_user_id();
    	}
    	$user_info = get_userdata($user_id);
    	$link = $user_info->display_name;
    	$domain = '' . $url . '/profiles/' . $link . '';
    	return $domain;
        }
    add_filter('bp_core_get_user_domain', '_bp_core_get_user_domain', 10, 4);
    apply_filters( 'bp_get_activity_user_link', '_bp_core_get_user_domain', 15, 1);

    This seems to work on every profile link except the one in the activity header section. This link is being changed but just to /profiles/. The display name is not being added to the end… so looking at my code this means i’m not retrieving the user id in the activity. Strangely enough though the user avatar next to the post has the correct link applied to it with the above filter! Any ideas?

    My other option is to use the buddypress member profile location but replace it with my profile templates. I tried to implement this by creaing a members/single/home.php in my wordpress custom theme folder… but the profile loads inside another page, i get a page within a page type effect with the username above the inner page… not sure what is going on there? If anyone can help with either of these solutions i’d really appreciate it!

    James

    Henry Wright
    Moderator

    Hey @alessandrat

    Welcome to the BuddyPress forum!

    1. Have two separate front ends for different user types (with differently configured profiles), appearances, and accesses.

    Yes. This can be done with either a plugin (try searching the Plugin Directory) or coded through the Member Types feature introduced in version 2.2.

    2. Have a place where shortcode could be put in so that users can take a questionnaire containing likert questions on their profile and/or while creating their profile.

    Either a post, page or perhaps even an activity update all spring to mind as possible places to add it.

    3. One but not both kinds of users can create their own group (public, semiprivate or private) or forum and browse/ join existing ones

    The ability for all members to create new groups comes as standard.

    4. One kind of user but not the other needs to be able to set up ways for the other type of user to purchase products (I assume I can use another plugin but will need a place to put the shortcode)

    This will need to be either custom coded, or you may find a plugin with the functionality you need.

    Hope this info helps!

    #246792
    paragbhagwat
    Participant

    @r-a-y thanks i did read that and i added a front.php in my theme under buddypress/groups/single and it worked perfectly fine. I was then looking to have a different page for pubblic groups vs private groups so i created a new file called

    front-status-public.php and placed it under the same location of buddypress/groups/single

    That is not working. Only front.php works.. as given in the hierarchy it should look at the status file before it even picks up the front.php. As shown below the home.php seems to be looking only for front.php and not the hierarchy. Any idea what is going on?

    home.php code

    
    if ( bp_is_group_home() ) :
    
    						// Use custom front if one exists
    						$custom_front = locate_template( array( 'groups/single/front.php' ) );
    						if     ( ! empty( $custom_front   ) ) : load_template( $custom_front, true );
    
    						// Default to activity
    						elseif ( bp_is_active( 'activity' ) ) : locate_template( array( 'groups/single/activity.php' ), true );
    
    						// Otherwise show members
    						elseif ( bp_is_active( 'members'  ) ) : locate_template( array( 'groups/single/members.php'  ), true );
    
    						endif;
    
    
    #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!

    Dono12
    Participant

    I’ having this old but new issue. Old because I forget about it until there is a new Buddypress update, then I’m painfully reminded again.
    I’ve been showing User Posts to the WordPress site on the Buddypress Activity page by using an awesome function I found in a Forum. It adds a Button to Buddypress Nav, titled (POSTS), with post count. These are all the posts that a user posted to the WordPress site. The problem I’m having is everytime Buddypress comes out with a new Update I have to pass on it because it interferes with the (Posts) Nav and Vice Versa. I do not want to keep losing out on these updates but I also do not want to lose the user Posts button on the activity page.
    Here is the function I used, can anyone tell me how to fix this:

    
    
    /* ------------------------------Start BP Post in profile code for function-------------------- */
    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] = "http:/...com/wp-content/uploads/2015/10/userpost.jpg";
    endif;
    
    echo '<li class="sidebar mostpop post-' . $post->ID . '"><span id="postimage"><a href="' . get_permalink($post->ID) . '"><img src="' . $image[0] . '" /></a></span><div id="postinfo"><a href="' . get_permalink($post->ID) . '">' . get_the_title($post->ID) . '</a></div></li>';
    }
    echo '</ul>';
    wp_reset_postdata();
    } else { ?>
    <div class="info" id="message">
    <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( "SELECT COUNT(*) FROM $wpdb->posts $where" );
    return apply_filters( 'get_usernumposts', $count, $userid );
    }
    /* ------------------------------This is end of the code for post in profile above function-------------------- */
    #246516

    In reply to: Disqus Integration

    jrunfitpro
    Participant

    Thank you @shanebp . Is there a better looking bp comments plugin with some better styling? Also, my theme Optimize Press 2 has custom page layouts for lessons. The only problem, the bp activity stream will not pick up these comments.

    Any thoughts on a solution there?

    gwanghyeonan
    Participant

    Hello, I made up a site which users can upload their own posts.
    So, on the profile page, I want to have a page which shows all of their own posts.

    On activitiy tab, I can choose ‘posts’ category but if I click it even if I’ve posted posts, it doesn’t show any.

    Also want this post tab to contain custom post type’s posts.

    Right now I just have
    -activity
    -profile
    -notification
    -messages
    -freinds
    -groups
    -forums
    -media
    -settings

    I want add ‘posts’ tab. How to do it ? Thank you šŸ™‚

    #246481
    jtorral
    Participant

    So I partially fixed it but I think I need buddypress input for the following.

    Here is what I did

    I created a custom template from a copy of the page.php in the themes directory. Inside of that template was a call to comments_template(); which I removed from the custom template.

    I then changed the “Members” page to use the new template with a name of “No Comments”

    Now when I load http://jorgetorralba.com/members/ I get the desired affect without the comments and ping backs.

    However, if I go one level deeper and click on a user name such as

    http://jorgetorralba.com/members/cjtorralba/

    The comments reappear. Same on Activity page even after changing activity to use the new custom templates.

    Any idea ???

    #246125
    AM77
    Participant

    I have created a custom page in my theme and it is almost the same as the activity page.

    I’ve added the activity post form and activity loop. It is all working fine, but the mentions popup doesn’t appear when writing out a mention name in the post form. This is because the mentions.js and mentions.css is not adding (though it does add and work if I turn comments on for that custom page in the WordPress admin). Also some plugins that use the activity post form such as activity plus plugin is not being added to the post form, but it works fine on the activity page. someone else had this problem: https://wordpress.org/support/topic/use-on-custom-page-template?replies=6.

    Is there something I’m supposed to add to make buddypress load up properly on a custom page?

    #246094
    splufford
    Participant

    Hi, struggling to get any of the the code in post #190874 to work. I have created a bp-custom.php file which I have uploaded to the root of the buddpress folder and my code looks like this:

    <?php
    // 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 );
    
    // 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');
    // 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 );
    ?>

    Not sure what I am doing wrong. All help gratefully received! Thanks

    #246091
    mc9625
    Participant

    Hi, actually I’ve already added
    add_post_type_support( 'recipe', 'buddypress-activity' );

    to bp-custom.php in /wp-content/plugins. The recipes are counted in the “member activity stream”, but only the ones posted directly in the parent site, not the ones posted in the member’s blog.

    I think it’s a pity you can’t use a “blog” as the user profile page, or at least give the user profile page, the same kind of customisation as a full blog install. I think this is more a “Facebook” kind of approach, everyone will have more or less the same kind of page, with minimal customisation option (I guess the header profile). But since WordPress already has a multisite option, and Buddypress already support multisite environment, have the chance to use the user’s blog as if it were his “user profile” would have been a huge facility.

    #245830
    sunwalker
    Participant

    NOTE: when I tried to submit a bug ticket, I was unable to login to do so. I kept getting the same error at https://buddypress.trac.wordpress.org/newticket – FORBIDDEN – when I clicked on login.

    ISSUE: (answers to your questions are below this description) THE SITE IS NOT LIVE NOW.
    I am unable to associate blank pages titled Members, Groups, Register, Activity, Activation as needed. I get this message: The following active BuddyPress Components do not have associated WordPress Pages: Members, Activity Streams, User Groups, Activate, Register. Repair

    When I click on repair, it goes to the BuddyPress Settings “Pages” tab where for some of those items, there is no box to select the page to associate with the component, but only a “View” button (that goes to the blank page set up which is actually still blank, having only a page title) OR there is nothing next to the component at all – neither selection box nor View button.

    I have deactivated, deleted, and reinstalled both BuddyPress and bbPress several times, to no avail. PLEASE HELP. I am using Themco’s X theme. Note that I am somewhat new.

    1. Which version of WordPress are you running? WordPress 4.3.1 running X theme.

    2. Did you install WordPress as a directory or subdomain install? Newbie! But this is on Bluehost and is a add-on domain to my primary domain.

    3. If a directory install, is it in root or in a subdirectory?

    4. Did you upgrade from a previous version of WordPress? If so, from which version? 4.3.1 was installed when I installed BuddyPress

    5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting. Yes

    6. Which version of BP are you running? 2.3.4

    7. Did you upgraded from a previous version of BP? If so, from which version? Not sure, but if so, likely the one previous.

    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones? LOTS: Askimet, All in One SEO Pack, Backup Creator, bbPress, BuddyPress Captcha, Bulletproof Security, Contact Form 7, Revolution Slider (though not using yet), Wordfence Security. I had quite a few more, but deactivated them.

    9. Are you using the standard WordPress theme or customized theme? Customized

    10. Have you modified the core files in any way? No, I don’t know how.

    11. Do you have any custom functions in bp-custom.php? Not that I know of (I’m not that sophisticated a user – sorry!)

    12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in? 2.5.8

    13. Please provide a list of any errors in your server’s log files. Please provide instructions on how to look this up.

    14. Which company provides your hosting? Bluehost

    15. Is your server running Windows, or if Linux; Apache, nginx or something else? My computer is running Windows 8.1. It is a stand alone computer.
    Basic Trouble Shooting:
    Noted above in description plus deactivating unused plugins.

    pnet
    Participant

    Well as soon as I post it I figure it out.. go figure šŸ™‚

    In case anyone else is confused here’s what I did and I had no clue going into it.

    Use this https://codex.buddypress.org/getting-started/customizing/customizing-labels-messages-and-urls/ for a reference on what to name your files and where to put them. (.po and .mo files, trust me I did not even know what these were)

    Download this editor/compiler here: https://poedit.net/download (it’s free!)
    You will need this to create (compile) the .mo file (if you want to know what these files are google it, that’s what I did)

    Use the buddypress link above and go to the “Translating with PoEdit” section, it will walk you through how to open the file with Poedit.
    (This part “This will open a settings dialog and you will be asked to fill in some details such as project name which we’ll skip. Click on ā€˜OK’ and you’ll be asked to save your language file.” did not happen for me, it asked me my language and I selected English United States, choose what you desire.)

    Now remember in my case I needed to change a few buddypress page titles.
    Example: I wanted to change the buddypress title “Groups” to “Chat Rooms” –
    While in Poedit with your .po file open, where you need to change it seems to be near the bottom of the file. Scroll down until you see something like this “Site-Wide Activity [component directory title]” (this was the first one for me). These are the buddypress page titles, this is where you can change them.

    Click on the title you want to change, my case Groups, below you will see “Source text” this is where “Groups” is showing. In the text area under that you will see “Translation”, this is where I typed “Chat Rooms”, as this is the title I would like it changed to.

    When finished Save your .po file. Back to Poedit, click File, select “Compile to MO” , save you .mo file as directed in the buddypress link above.
    Follow the rest of the instructions in the link to upload your .po and .mo files.

    I hope this helps out others who are new to buddypress! šŸ™‚

    Andrew
    Participant

    I have a custom page and filtering the activity using parameters:

    if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . '&action=activity_update&per_page=20&scope='

    With the BuddyPress Follow plugin, does anyone know the parameter to filter the activity for who you are following?

    I’ve tried a few like scope=following scope=bp-following

    https://wordpress.org/plugins/buddypress-followers/

    Any help appreciated

    #245366
    robert198222
    Participant

    Hi,
    I use a custom theme. wordpress 4.3.1, and now I installed buddypress 2.3.4.
    The buddypress pages weren’t created for some reason (“Membership – Anyone can register” was turned on when installing buddypress). I created the pages manually and assocciated them in buddypress settings (registrate, activate, activity stream, members).

    First of, when activating Buddypress plugin then this error (same kind of error occour everytime I visit any page in admin when buddypress is activated, so it doesn’t appear just on activiating the buddyress plugin, the error doesn’t occour when buddypress is deactivated):

    2015/10/12 13:24:37 [error] 23074#0: *3 FastCGI sent in stderr: “PHP message: PHP Notice: bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 1.7.) in /my/path/to/html/wp-includes/functions.php on line 3622″ while reading response header from upstream, client: my.computers.ip.number, server: mywebpage.com, request: “GET /wp-admin/plugins.php?activate=true&plugin_status=all&paged=1&s= HTTP/1.1”, upstream: “fastcgi://127.0.0.1:9000”, host: “my.host.ip.address”, referrer: “http://myserver.com/wp-admin/plugins.php?plugin_status=all&paged=1&s&#8221;

    Second issue is the frontend links, none of them work correctly, all links direct me to my users recent blog posts. The links in the URL look like this:
    mywebpage.com/members/myusername/
    mywebpage.com/members/myusername/friends/
    mywebpage.com/members/myusername/messages/
    mywebpage.com/members/myusername/notifications/
    mywebpage.com/members/myusername/profile/
    mywebpage.com/members/myusername/settings/

    “Log out” link works! when pressing the log out link I am logged out and redirected to /wp-admin/, on that page I have a message where it says: “You must log in to access the page you requested.”. It’s pretty logical that you need to be loged in to be able to access log out page, isn’t it?

    For the links to work properly I guess I have to copy some of the buddypress files to my custom theme in wp-content/themes/mycustomtheme, but what do I need to copy?

    /Robert

    #245252
    mrsminkie
    Participant

    Hi,

    I currently have a site developed using a BuddyPress specific theme, and it looks as though that element is going to become a part of a larger website – imagine it like a blog with a community section.

    The BuddyPress theme that I’m using is no good for normal website pages and customising templates has caused me enough problems already – I need to be able to use a different theme for the other pages.

    I considered multiple themes plugin, but I’d need to disable one theme to edit the other and it seems messy.

    I looked into multi-site, but I find conflicting information everywhere I look and I’m going round in circles.

    The community generates content (custom post type submitted from their profile) which I want to be able to use on the ‘main’ website – I don’t want any activity or other data on the main site. I also would prefer one login, although different users need to be put on different paths i.e. the community users get directed to their profile on login/registration; other site users need to remain on the page they were on or the ‘main’ site – I think I can handle that with a sidebar login widget.

    Should I use multisite? If so, I would prefer to use subfolder vs subdomain.

    Other options are separate installs, and hacking the code so that user tables are shared. I’ve also found BuddyPress Multi-blog (which doesn’t seem right because I want the community element contained apart from the CPT content) and installing BP on a secondary blog: https://codex.buddypress.org/legacy/getting-started/install-buddypress-on-a-secondary-blog/

    The latter seems the way to go, but then WP advice re using multi-site puts me off. Also, the community site uses a lot of plugins so I’m worried about compatibility using MS.

    Many thanks in advance if anyone can release me from my turmoil!

    #245162
    Zabelator
    Participant

    Hello, I am running buddypress on WordPress 4.3.1 running X – Child Theme: Renew theme. I have a site that uses Activity Streams and Groups components only.

    For my groups home pages, I have created a custom Front Page with a welcome message and the activity from the group.

    I dont use the member directory or any BP user profiles. I would like to keep the text from the activity on the page, but I dont want it to be a Link to their profile.

    For example: ” MannyMember joined the group GroupOne 6 days, 23 hours ago ”

    MannyMember and GroupOne are both links. I would like to remove the link for the member and group if possible, but more importantly just the Member.

    I was hoping I could use a filter to modify the output of bp_activity_action(); but cannot figure it out. Any help is greatly appreciated.

    Thanks.

    #244998
    Vikram Shaw
    Participant

    Hi, I’m using latest version of buddypress. I want to customize my activity page to show updates on activity page for me and my friends only, so I’ve used the codes which was given by @R-A-Y. But I want to make the blogs updates to be shown in activity page to everyone irrespective of friend, but I don’t know how to achieved that because the code which I’ve used is restricting to me and my friends only. And even I want to give “News” update in activity page can anyone suggest me how to achieve that two things.

    The codes which I’ve used for activity page which shows activity updates for me and my friends is given below:–

    add_action( 'bp_loaded', array( 'BP_Home', 'init' ) );
    /**
     * BP Home
     */
    class BP_Home {
    	/**
    	 * Our activity scope name.
    	 *
    	 * @var string
    	 */
    	const SCOPE_NAME = 'swa-home';
    	/**
    	 * Multiple scopes we will be using for our 'Home' tab.
    	 *
    	 * @var string
    	 */
    	protected static $scopes = '';
    	/**
    	 * Marker to determine when to stop our object buffer
    	 *
    	 * @var bool
    	 */
    	public $should_end_buffer = false;
    	/**
    	 * Static initializer.
    	 */
    	public static function init() {
    		return new self();
    	}
    	/**
    	 * Constructor.
    	 */
    	public function __construct() {
    		if ( ! bp_is_active( 'activity' ) ) {
    			return;
    		}
    		// set our default scopes
    		$this->set_default_scopes();
    		// add in our hooks
    		$this->hooks();
    	}
    	/**
    	 * Sets the default scopes used by the "Home" tab.
    	 *
    	 * Filterable.
    	 */
    	private function set_default_scopes() {
    		$scopes = array();
    		$scopes[] = 'just-me';
    		$scopes[] = 'mentions';
    		if ( bp_is_active( 'friends' ) ) {
    			$scopes[] = 'friends';
    		}
    		self::$scopes = apply_filters( 'bp_activity_home_scopes', $scopes );
    	}
    	/**
    	 * Hooks.
    	 */
    	private function hooks() {
    		add_action( 'bp_activity_screen_index', array( $this, 'set_home_scope' ) );
    		add_action( 'wp_logout',                array( $this, 'reset_activity_scope_cookie' ) );
    		add_filter( 'bp_after_has_activities_parse_args', array( $this, 'filter_activity_loop' ) );
    		add_action( 'bp_before_activity_type_tab_all',       array( $this, 'ob_start' ), 0 );
    		add_action( 'bp_before_activity_type_tab_friends',   array( $this, 'ob_end_clean' ), 0 );
    		add_action( 'bp_before_activity_type_tab_groups',    array( $this, 'ob_end_clean' ), 0 );
    		add_action( 'bp_before_activity_type_tab_favorites', array( $this, 'ob_end_clean' ), 0 );
    	}
    	/**
    	 * Override some activity default / AJAX parameters if we're on the Sitewide Activity page.
    	 */
    	public function set_home_scope() {
    		// reset cookie for logged-out users
    		if ( ! is_user_logged_in() ) {
    			$this->reset_activity_scope_cookie();
    			return;
    		}
    		// override post title
    		add_action( 'bp_template_include_reset_dummy_post_data', array( $this, 'post_title' ), 20 );
    		// if we have a post value already, let's add our scope to the existing cookie value
    		if ( !empty( $_POST['cookie'] ) ) {
    			$_POST['cookie'] .= '%3B%20bp-activity-scope%3D' . self::SCOPE_NAME;
    		} else {
    			$_POST['cookie'] = 'bp-activity-scope%3D' . self::SCOPE_NAME;
    		}
    		// set the activity scope by faking an ajax request (loophole!)
    		if ( ! defined( 'DOING_AJAX' ) ) {
    			$_POST['cookie'] .= "%3B%20bp-activity-filter%3D-1";
    			// reset the selected tab
    			@setcookie( 'bp-activity-scope',  self::SCOPE_NAME, 0, '/' );
    			//reset the dropdown menu to 'Everything'
    			@setcookie( 'bp-activity-filter', '-1',   0, '/' );
    		}
    	}
    	/**
    	 * Resets BP's activity scope cookie to 'all'.
    	 *
    	 * Only reset if the activity scope is set to 'swa-home' since the 'Home' tab
    	 * will not be available when logged out.
    	 *
    	 * We do this when a user is logging out or is logged out.
    	 */
    	public function reset_activity_scope_cookie() {
    		if ( ! empty( $_COOKIE['bp-activity-scope'] ) && self::SCOPE_NAME === $_COOKIE['bp-activity-scope'] ) {
    			@setcookie( 'bp-activity-scope', 'all', 0, '/' );
    			$_COOKIE['bp-activity-scope'] = 'all';
    		}
    	}
    	/**
    	 * Filter the activity loop with our custom scope.
    	 */
    	public function filter_activity_loop( $r ) {
    		if ( self::SCOPE_NAME !== $r['scope'] ) {
    			return $r;
    		}
    		// add in our custom scopes
    		$r['scope'] = self::$scopes;
    		// change default empty activity text as well while we're at it
    		add_filter( 'gettext', array( $this, 'override_empty_message' ), 10, 3 );
    		return $r;
    	}
    	/**
    	 * Start the object buffer before any activity tabs are outputted.
    	 */
    	public function ob_start() {
    		if ( ! is_user_logged_in() ) {
    			return;
    		}
    		ob_start();
    	}
    	/**
    	 * Replace the "All Members" tab with "Home" on the Sitewide Activity page.
    	 *
    	 * Try to determine when to stop our object buffer and inject our "Home" tab.
    	 * Accounts for whether certain BP components are active or not.
    	 */
    	public function ob_end_clean() {
    		if ( ! is_user_logged_in() ) {
    			return;
    		}
    		if ( false === $this->should_end_buffer ) {
    			$this->should_end_buffer = true;
    			$buffer = ob_get_contents();
    			ob_end_clean();
    			// find the default 'All Members' tab
    			$all_start = strpos( $buffer, '<li class="selected" id="activity-all">' );
    			$all_end   = strpos( $buffer, '</li>', $all_start );
    			// our custom 'Home 'tab
    			$home = '<li class="selected" id="activity-' . self::SCOPE_NAME . '"><a href="' . bp_get_activity_directory_permalink() . '">' . __( "Home", "bp-home" ) . '</a></li>';
    			// output and replace the 'All Members' tab with the 'Home' tab
    			echo substr_replace( $buffer, $home, $all_start, $all_end + 5 );
    		}
    	}
    	/**
    	 * Post title override.
    	 *
    	 * Whee! Dirty hack!
    	 */
    	public function post_title() {
    		global $wp_query;
    		$wp_query->post->post_title = __( 'Home', 'bp-home' );
    	}
    	/**
    	 * Overrides the "Sorry, there was no activity found. Please try a different filter." message.
    	 *
    	 * @param string $translated Current translated text
    	 * @param string $untranslated Untranslated text
    	 * @param string $domain Domain for the string
    	 * @return string
    	 */
    	public function override_empty_message( $translated, $untranslated, $domain ) {
    		if ( 'Sorry, there was no activity found. Please try a different filter.' === $untranslated ) {
    			$translated = sprintf( __( "It looks like you're new here. To see some activity, try posting an update or <a href='%s'>adding a friend</a>.", 'bp-home' ), bp_get_members_directory_permalink() );
    		}
    		return $translated;
    	}
    }
    #244861
    sharmavishal
    Participant

    @danbp thanks for your reply. its highly appreciated. I understand its bit unnecessary.

    Am using a custom home page via BuddyPress Groups Extras. So on my site the home page for groups is gpages which doesnt have a slug in the URL which is great.

    now my second tab is “Home” which i renamed to “Activity”. This is also fine. But the slug of Activity page is “home”. so when i click on the activity tab the URL in the broswer shows group/name/home.

    I believe the previous versions of BP the home page was actually named as Activity right?

    the only way i can fix this is via hacking the core BP file bp-groups-loader.php

    // Add the "Home" subnav item, as this will always be present
    			$sub_nav[] = array(
    				'name'            =>  _x( 'Activity', 'Group screen navigation title', 'buddypress' ),
    				'slug'            => 'activity',
    

    Thanks once again

    #244570
    qurgh
    Participant

    I’m trying to add a link into the main WordPress menu that points to a subnav of a Buddypress page.

    I see there’s an option for menu items that point directly to the main Buddypress pages (/activity/, /forums/, /groups/, /achievements/, etc), including my own custom slug (/kag/). I’d like to have a menu option that points to a subnav of my custom page (/members/USERNAME/kag/ship/) but since it has a varaible in it I can’t just setup a custom link (unless there’s something I’m missing).

    Can anyone tell me how to add items to the Buddypress section of the Menu editor, or how to make a direct link to the subnav page?

    I’m using the most current WordPress, Buddypress, bbpress, and BadgeOS. I’m using the Firmasite theme.

    #244443
    anbusurendhar
    Participant

    In buddypress, activity, members, group have a definite pages like ‘domain/activity’, ‘domain/members’, ‘domain/group’, respectively. Likewise I’m trying to create my own custom page like ‘domain/mycustom’.

    For this purpose I referred John James Jacoby’s Post in here. The snippet used in that link didn’t work for me. I don’t know where I’m missing.

    From that snippet, I found that $bp->current_component returns me an empty string.

    #244438
    anbusurendhar
    Participant

    @danbp : Thank You very much for your reply.

    Even I’ve tried bp_current_component() and bp_is_current_component() functions with no success.

    Actually this function works fine when used in default buddypress pages like domain/activity/. This returns me “activity”, which is exactly correct. But when I tried this in my custom page (domain/custompage), I’m getting an empty string.

    #244398
    Venutius
    Moderator

    Yes I would like better customisation options for activity stream to be able to identify exactly which items appear in the activity stream.

    Some new options could be to include updates to blogs and pages to be included in the activity stream. Similarly I would like to have the ability to choose not to show items such as members joining groups in the stream.

    Just would be nice to have some options over what is and is not included.

    #244377
    Maddish
    Participant

    I’m trying to override the default /_inc/global.js file with a custom one, but after deregister the original one, every post_update is run twice, so each post is duplicated.

    I’m using

    Wordpress version 4.3
    buddypress version 2.3.3
    typal-makewp005 Chld theme

    In bp-custom.php:

    
    function deregister_bp_scripts(){
    
    wp_deregister_script( 'dtheme-ajax-js');
    wp_dequeue_script( 'dtheme-ajax-js');
    }
    add_action('wp_enqueue_scripts', 'deregister_bp_scripts');
    
    function mytheme_enqueue_scripts() {
    
    			$params = array(
    					'my_favs'           => __( 'My Favorites', 'buddypress' ),
    					'accepted'          => __( 'Accepted', 'buddypress' ),
    					'rejected'          => __( 'Rejected', 'buddypress' ),
    					'show_all_comments' => __( 'Show all comments for this thread', 'buddypress' ),
    					'show_x_comments'   => __( 'Show all %d comments', 'buddypress' ),
    					'show_all'          => __( 'Show all', 'buddypress' ),
    					'comments'          => __( 'comments', 'buddypress' ),
    					'close'             => __( 'Close', 'buddypress' ),
    					'view'              => __( 'View', 'buddypress' ),
    					'mark_as_fav'       => __( 'Favorite', 'buddypress' ),
    					'remove_fav'        => __( 'Remove Favorite', 'buddypress' ),
    					'unsaved_changes'   => __( 'Your profile has unsaved changes. If you leave the page, the changes will be lost.', 'buddypress' ),
    			);
    wp_enqueue_script( 'custom_dtheme-ajax-js', get_stylesheet_directory_uri() . '/js/global.js', array( 'jquery' ) );
    	wp_localize_script( 'custom_dtheme-ajax-js', 'BP_DTheme', $params );
    }
    
    add_action('wp_enqueue_scripts', 'mytheme_enqueue_scripts');
    

    I already tried to set different priority , to move this code to functions.php instead of bp-custom.php, to use the twentyfifteen theme, to make a child of the bp-default theme, but no way…
    What I need to do is to add some custom fileds to the activity form to create a facebook-like link-preview.

    I followed this post in which they say you have to add to global.js the new fields’ values, but I don’t want to change the global.js file directly (for next updates)

    https://buddypress.org/support/topic/adding-a-second-element-for-posting-with-an-activity/

    Does anybody know what am I doing wrong?

Viewing 25 results - 326 through 350 (of 1,252 total)
Skip to toolbar