Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'custom activity page'

Viewing 25 results - 151 through 175 (of 831 total)
  • Author
    Search Results
  • ngoegan
    Participant

    I tried and am now getting this error on the site:

    /** * Add location to BP Member directory */ function my_directory() {	if ( bp_is_active( 'xprofile' ) ) if ( $field_7 = xprofile_get_field_data( 'Location', bp_get_member_user_id() ) ) : echo '
    ';	echo $field_7; echo '
    '; endif;	} add_filter ( 'bp_directory_members_item', 'my_directory' ); /** * */redirect all users to homepage function bbg_bp_loggedin_register_page_redirect_to( $redirect_to ) { if ( bp_is_component_front_page( 'register' ) ) $redirect_to = bp_get_root_domain() . '/activity'; return $redirect_to; } add_filter( 'bp_loggedin_register_page_redirect_to', 'bbg_bp_loggedin_register_page_redirect_to' );
    Warning: Cannot modify header information - headers already sent by (output started at /home4/cgoegan/public_html/charlottemasoneducation.org/wp-content/plugins/bp-custom.php:33) in /home4/cgoegan/public_html/charlottemasoneducation.org/wp-includes/pluggable.php on line 1216
    Shashi Kumar
    Participant

    @ngoegan the logic in the Buddypress is correct why an user would like to go to register page when he is already registered and logged in. According to your stated problem your can make register page as static homepage and add the above code in your child’s theme function file or bp-custom.php. It will redirect all your logged in user to activity page.
    To know about how to add bp-custom file read this beautiful post

    averyjleon
    Participant

    1. Which version of WordPress are you running? 4.9.2
    2. Did you install WordPress as a directory or subdomain install? directory
    3. If a directory install, is it in root or in a subdirectory? root
    4. Did you upgrade from a previous version of WordPress? If so, from which version? no
    5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting. Yes, definitely checked that, permalinks are set to “pretty urls”
    6. Which version of BP are you running? 2.9.2
    7. Did you upgraded from a previous version of BP? If so, from which version? no
    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones? No, we disabled all of them, it still isn’t working
    9. Are you using the standard WordPress theme or customized theme? standard
    10. Which theme do you use ? twentyseventeen
    11. Have you modified the core files in any way? no
    12. Do you have any custom functions in bp-custom.php? no
    13. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in? No, disabled it, still not working
    14. Please provide a list of any errors in your server’s log files.
    [Mon Jan 15 20:34:25.026815 2018] [authz_core:error] [pid 1160] [client 52.33.40.5:59040] AH01630: client denied by server configuration: /var/www/transfamilies.org/web/.user.ini, referer: https://www.transfamilies.org/.user.ini
    [Thu Jan 18 19:10:09.771753 2018] [fcgid:warn] [pid 29851] (32)Broken pipe: [client 73.221.194.79:54064] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: https://www.transfamilies.org/wp-admin/plugins.php
    [Thu Jan 18 19:45:39.653380 2018] [authz_core:error] [pid 31518] [client 52.33.40.5:60936] AH01630: client denied by server configuration: /var/www/transfamilies.org/web/.user.ini, referer: http://www.transfamilies.org/.user.ini
    15. Which company provides your hosting? Amazon
    16. Is your server running Windows, or if Linux; Apache, nginx or something else? Linux, Ubuntu LTS, most recent version
    Running most current version of WordPress, not on a subdomain. We have tried disabling all plugins and selecting the default theme (twenty seventeen) and the same issue persists.
    BuddyPress (and bbpress) were previously installed and working. I then installed Theme-My-Login, but it disabled all login access. I removed Theme-My-Login via FTP and was able to log back in, but the Register and Login pages were no longer accessible. I deactivated and deleted BuddyPress and tried reinstalling.
    Then I got this message:
    “The following active BuddyPress Components do not have associated WordPress Pages: Members, Activity Streams, User Groups, Activate, Register. Repair”
    BuddyPress had not created these pages on install. I’ve since tried several times to reinstall it, but same problem. I can create the pages, but they’re just blank.
    That about covers it!

    #270163
    stoi2m1
    Participant

    I found the default theme was also showing issues which I missed.

    I had both Groups and Members as a Child Page to My Activity Page, named Community. This was causing both single members profiles and single groups to not work. Until I find a solution I have made them Main Pages (no parent assigned). Is there a way to set the slug? I found these deprecated constants, is there some new way?

    Deprecated Method in bp-custom.php use:

    define ( 'BP_MEMBERS_SLUG', 'community/groups' );
    define ( 'BP_GROUPS_SLUG', 'community/members' );

    From the following link:

    Changing Internal Configuration Settings

    I also found my other issue in bp-custom.php. Forgot all about that one.

    I created an aggregate feed called “My Feed” to display a more personal feed (which is working just fine). I used it on both the Activity in Profiles and the Main Activity Stream (site wide). I am using the following function to change the default sub nav for activities in profiles (Profile >> Activity >> Default Sub Nav) to “My Feed”. This works for profiles but causes the Site Activity to stop working.

    function gzp_set_default_activity_sub_nav() {
     
        bp_core_new_nav_default (
            array(
                'parent_slug'       => buddypress()->activity->id,
                'subnav_slug'       => 'my-feed',
                'screen_function'   => 'gzp_bp_my_feed_screen_activity'
            )
        );
    }
    add_action( 'bp_setup_nav', 'gzp_set_default_activity_sub_nav', 20 );
    #269844
    leog371
    Participant

    Hey Frank, I guess the best question to ask you after all this is how comfortable are you with digging into or working with html, css and basic php?

    If a pre made theme is what your looking for, how comfortable are you with taking hours and days looking thru theme demos to find your golden pony or at least making child themes or customizing code?

    And then to answer you more specifically to your “How long would it take to develop a theme like the one I described?” , I guess that just depends really. Over the years I have accumulated many libraries of code and theme snippets and I know where everything is in WP/BP core and template files. So for me, A fully custom and dressed out theme might take anywhere from 3 days to 3 weeks if I know exactly what I am working towards at the beginning and have a clear, though out, planned out idea. If I hen peck it or free hand it” like I do from time to time” It may take a day or it might take 8 months, lol.

    As a bit of comfort to your quandary, everything you asked for in your opening inquiry is all ready done for you in BuddyPress “for the most part”. A theme like the one you describe sounds like a 3 day to 1 week job to me. Keep in mind however that with me saying that, things always have a way changing and evolving into monsters, lol.

    So lets break down your theme and see how it look on paper…. He He, my favorite part…

    1. I want users to come to my site, register, and log in…… (Its all ready there) just have to set it up to your liking. It can all be customized quite a bit as well.

    2. I would love to be able to customize the way these pages look!(background image, logo, and content inside them)……… (The logo, background and most of the design items are easy breezy as long as your ok with basic html and css and not looking for flying dragons and wizards shooting lightning bolts across the screen. Alas, even those can be done with css, flash and JS, lol. )

    3. I’m not looking for a full-blown social media site (yet)…….No need to have what you dont want to use. BP has a full host of controls to limit what can be done onsite by users or what is implemented frontend in its settings. WP Dash/settings/buddypress. Select what you want to use. You also have the ability to write functions, and use hooks and actions and filters to limit or build on anything you like.

    4. I want to build a site that where users can log in, create a “blog” excerpt with media …… There are several ways to do this in buddypress, just have to plan it out and test the methods and see what works for you. Mu, Activity and Groups/Forums.

    5. They should also be able to put a location tag on it. ….. it sounds like this is what x-profile fields are good for. Just create your custom location field and add it with a template tag in the loop you want to use it in. They fill out the filed on their profile page and it will display in that loop.

    6. When they post it, the only people I want to see that are the people they added as friends or if they have their profile set to public……BuddyPress frontend “user profile area” has a settings tab, under it are quite a few privacy features, not fully comprehensive in my opinion but there are a few plugins that add on to this and you can code it in as well. either way. Easy task.

    7. And when it shows up on their friend’s news feed it should just show a featured image, title, and the beginning of their text with a like counter….. Easy enough, just write the loop that way, lol. Easy to do.

    8. When their friends click on that post it brings them to the full blog post, not just the featured image. Their friends can favorite the content or comment on it. …..The natural behavior of WP and BP posts so we are good there.

    9. On a users profile, I would like to show their recent posts, and posts they’ve favorited…. Thats what the friends tab shows but you can add custom queries, and stuff and otherwise tear it apart and pick it of the pieces you want and use them in other places to make custom loops and queries and all kinds of goodness, lol. As long as you make sure things are firing in the right places and make sure certain things are in the loops where they belong, No worries.

    10. Site homepage is basically just a file called front-page.php. Copy the page.php from the theme root and then customize the heck out it. Work it up however you like.

    As far as the themes go, I never use premade themes. I do however make full use of the libraries of code I have accumulated, (_s) and bootstrap for a lot of my work. Cheesy I know but hey, it saves me time and money and gives me freedom. I rarely find the need to actually make a complete custom theme or write much in the way of custom code from scratch anymore. And I certainly never purchase any themes. So I am not the best person to ask about themes really. I know that there are tons of themes that do all kinds of stuff available around the web. Just have to give them the litmus test and see if they fit your project.

    Let me know if you have any other questions or what have you. I will be around.

    Michael Gentry
    Participant

    Helloooooo everybody(I’m glad you’re taking the time to help me, and hey, we all start somewhere),

    So I’ve been looking into BuddyPress for about a month now, and I still can’t decide if its what I need. I love it and I respect all its glory, So let me explain what I need.

    1) The overview of my site
    – I want users to come to my site, register, and log in. I would love to be able to customize the way these pages look!(background image, logo, and content inside them). With regard to my user experience, I need everything done from the front end because the backend is too confusing for members.

    2) What users can do on my site
    – Okay, this is what I’m having trouble figuring out. I’m not looking for a full-blown social media site (yet). I want to build a site that where users can log in, create a “blog” excerpt with media and then post it.An example would be “Me and my dog” with photos, and a paragraph explaining. They should also be able to put a location tag on it. When they post it, the only people I want to see that are the people they added as friends or if they have their profile set to public. And when it shows up on their friend’s news feed it should just show a featured image, title, and the beginning of their text with a like counter.When their friends click on that post it brings them to the full blog post, not just the featured image. Their friends can favorite the content or comment on it. On a users profile, I would like to show their recent posts, and posts they’ve favorited. and that’s it. No excess information like a changed profile picture, etc. An extended bio profile would work great as well.

    – I’m not looking for messaging, groups, sitewide activity, or showcasing my own personal blog to the members. I would like this site to be customized solely for the user. I wouldn’t mind having a site homepage. Would I need to enable multi-site to allow this to happen?

    3) I would like this to look simple, and clean; so that brings me up to my final hurdle. What theme should I use? I’ve been looking at X, Divi, and Soledad. Are any of these themes able to do what I’m looking for? I would love to just be able to customize how everything looks on my site.

    Thanks & happy holidays

    #269611
    pscolv
    Participant

    Hi,

    I managed to customize my activity feed for a custom post type, however I’m struggling to influence the output of “standard” blog posts !

    Ideally I would like to redirect the “format_callback” parameter to the custom callback I created for my custom post type, which should handle both standard and custom types ultimately.

    I tried the following code, and the format_callback stayed desperately the same for the blog posts…

    add_action( ‘bp_register_activity_actions’, ‘customize_posts_tracking_args’ );
    function customize_posts_tracking_args() {
    // Check if the Activity component is active before using it.
    if ( ! bp_is_active( ‘activity’ ) ) return;
    bp_activity_set_post_type_tracking_args( ‘post’, array(
    ‘component_id’ => buddypress()->blogs->id,
    ‘action_id’ => ‘new_blog_post’,
    ‘format_callback’ => ‘custom_format_activity_action_post’,
    ) );
    }

    Then I also tried the filters, which I found in some web pages, but they didn’t work either for blog post type… The code below didn’t cause any change to my activity feed.

    // Customize post publication activity feed content
    add_filter(‘bp_blogs_record_activity_action’, ‘record_cpt_activity_content’);
    add_filter(‘bp_blogs_record_activity_content’, ‘record_cpt_activity_content’);
    function record_cpt_activity_content( $cpt ) {
    echo “Any text”;
    $cpt=’Any text’;
    $cpt[‘content’]=’Any text’;
    return $cpt;
    }

    Any help is very welcome here !!!

    Regards,

    Pascal.

    #269512
    Boone Gorges
    Keymaster

    Hi @billybelly – It’s difficult for us on the buddypress.org forums to provide concrete advice on a non-free product, because we don’t have access to test it. If you paid for the UX Builder project, then they ought to be the ones providing you with support.

    That being said, it’s possible that BP templates are inherently incompatible with this plugin. BP technically uses WP pages like Activity, Register, etc, but it sorta hijacks the page loading process in a way that can make it incompatible with certain kinds of “builder” plugins. If you’re looking to customize the interior portions of a BP page, it’s best to do it either using CSS (which you can access via the Customizer and a plugin like https://wordpress.org/plugins/simple-custom-css/) or by overriding the templates in a child theme. See https://codex.buddypress.org/themes/theme-compatibility-1-7/a-quick-look-at-1-7-theme-compatibility/#overloading-template-compatibility-theme-files

    #269508
    peter-hamilton
    Participant

    I think you need a child-theme and change the header.php to include your custom navigation, I have created a similar menu but did require a lot of work in the header.

    Full profile functionalities added to the main navigation

    When new messages the number of messages shows in the message-icon, links to profile page, also woocommerce integrated and a dashboard link for admin only.

    The following is in my custom header.php

    First code links to profile.
    <li><a href="<?php echo bp_loggedin_user_domain(); ?>" class="activitylink" title="My Account"><span class="dashicons dashicons-admin-users"></span></a></li>

    This code deals with messages.

    <li><a href="<?php global $current_user; echo home_url() . '/members/' . $current_user->user_login . '/messages/'; ?>"><span class="dashicons dashicons-admin-comments"></span><span class="commentcount"><?php if (bp_get_total_unread_messages_count( bp_loggedin_user_id() ) > 0 ) { ?> <?php bp_total_unread_messages_count( bp_loggedin_user_id() ) ?><?php } ?></span></a>
    </li>

    Since I did not want too much in my nav I only used these buddypress features, more would clog up my website too much.

    But where it comes down to is with a child-theme you can make it exactly as you like.

    Good luck
    P.H.

    astrologeeks
    Participant

    You will need to add something like this to your bp-custom.php file. If you haven’t already, create this file and place it in the wp-content/plugins/ folder. I added “aside” to the name to tell buddypress this is a custom function and not re-declare an already existing function.

    function bp_get_activity_delete_link_aside() { 
     
        $url = bp_get_activity_delete_url(); 
        $class = 'delete-activity'; 
     
        // Determine if we're on a single activity page, and customize accordingly. 
        if ( bp_is_activity_component() && is_numeric( bp_current_action() ) ) { 
            $class = 'delete-activity-single'; 
        } 
     
        $link = '<a href="' . esc_url( $url ) . '" class="item-button bp-secondary-action ' . $class . ' confirm btn white btn-xs" rel="nofollow" style="padding: .2195rem .5rem;font-size: 0.8rem;">' . __( '<i class="fa fa-fw fa-trash text-muted"></i>', 'buddypress' ) . '</a>'; 
     
        /** 
         * Filters the activity delete link. 
         * 
         * @since 1.1.0 
         * 
         * @param string $link Activity delete HTML link. 
         */ 
        return apply_filters( 'bp_get_activity_delete_link', $link ); 
    } 
    function bp_activity_delete_link_aside() { 
        echo bp_get_activity_delete_link_aside(); 
    } 
    #269073
    capnjazz
    Participant

    hi,
    i want to customize members info shown in members list page,

    in the list of all users, i want to show something more than the name and last activity online.
    i created customed fields for the inner-page of the user, but they don’t show in the members list page.

    how can i do this?
    thank you.

    #269055
    MBV
    Participant

    I tried to add some shortcode to the Activity page via Admin Dashboard > Pages > Activity > Page Edit Section, but it’s not rendering, instead it just renders the actual text for the shortcode.

    Is there a way to allow BP page to render shortcodes from the page content?

    I read on another forum to do the following but it was and old forum and I can’t find that file he referred to:

    Try replacing line 39 of content-buddypress.php
    $custom_content = wpautop( get_the_content() );
    with this:
    $custom_content = do_shortcode( get_the_content() );

    Any ideas?

    #268968
    hornets2002
    Participant

    Hi, I am trying to add a custom nav link titled “sub-members” to buddypress profiles that shows a list of members who inherit membership to my client’s services through the parent member. I have successfully added the custom nav link to the profile by inserting some code into bp-custom.php and I have successfully called the contents of a members loop template into the page (I will add filtering for the members loop after initial functionality is in place.)

    Here is my code below:

    <?php
    function add_communications_tabs() {
    	global $bp;
    
    		if (xprofile_get_field_data('Sub-Members') == "Yes")  :
    		bp_core_new_nav_item( array(
    		'name'                  => 'Sub-Members',
    		'slug'                  => 'submembers',
    		'parent_url'            => $bp->displayed_user->domain,
    		'parent_slug'           => $bp->profile->slug,
    		'screen_function'       => 'submembers_screen',		
    		'position'              => 100,
    		'default_subnav_slug'   => 'submembers'
    	) );
    	endif;
    }
    
    add_action( 'bp_setup_nav', 'add_communications_tabs', 100 );
    
    function submembers_screen() {
        add_action( 'bp_template_content', 'submembers_screen_content' );
        bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
    }
    
    function submembers_screen_title() {
      	echo $_POST[bp_displayed_user_id()];
    	echo 'Sub-members of '.bp_get_displayed_user_fullname().'<br/>';
    }
    
    function submembers_screen_content() { 
    get_template_part( '\buddypress\members\members', 'loop' ); 
    }
    
    ?>

    Here is my problem:

    Pagination and any other function using ajax seems to break when the members loop is placed here.

    It seems that while ajax work fine for the members loop when placed on a normal page outside the profile–and I should also mention ajax works fine for built-in Buddypress profile functions like activity stream posting–the same cannot be said for my members loop or any other content I test on the custom-made ‘sub-members’ page that requires ajax functionality. For instance, when I try to click on a link within the pagination on the member loop within the ‘sub-members’ page, the link is correct (loads the next page in the loop if it were to be opened in a new tab), but nothing happens when it is clicked.

    Steps I tried to pinpoint the issue:
    – Disabled all plugins besides Buddypress for potential conflicts
    – Inserted other ajax content independent of Buddypress onto the ‘sub-members’ page (this content failed too)
    – Tested the Members Loop within existing profile page templates to see if it had to do with inserting it onto a custom Buddypress page (loaded it on the “Activity” page and the ajax didn’t work for this either)
    – Tried to enqueue ajax.php and other relevant scripts despite the fact that in the <head> section, it seems they are being called correctly and working for other built-in ajax calls.

    I have spent many hours trying to figure this out and I would greatly appreciate any help as I am truly stumped and not very knowledgeable about ajax. Thank you

    #268916
    vincent46
    Participant

    Hi everyone. I would like to know if you can give access to the page (admin) bp-activity with the list of all activities, to a specific user role.
    My customers in the future need to see the whole list of activities from the wordpress back-end.

    #268823
    #268805
    David Cavins
    Keymaster

    What about using a custom member front page? Then you’d have total flexibility:
    Custom Front Pages for your users profiles

    Otherwise, I think you could conditionally filter bp_displayed_user_get_front_template to specify members/single/activity.php for self and friends and members/single/profile.php for non-friends. See this function:
    https://buddypress.trac.wordpress.org/browser/tags/2.9.2/src/bp-members/bp-members-template.php#L1397

    #268759
    deanljbirch
    Participant

    Thank you in advance for any help given on this…

    The aim…

    1. What we’d like is to add a new top level tab (such as Activity, Profile & Notifications) entitled “Add content”.
    2. The “Add content” tab should have the following sub-navigation sections… “Create article”, “Create event”, “Create vacancy” & “Create Service Listing”.
    3. Each of the tabs above should only be visible to the logged in user on their own profile.

    We’ll be including front-end publishing forms in each tab.

    Let’s be honest…
    If you feel that this would cause any issues, be too much hassle or just wouldn’t work, please feel free to tell me straight as there is an alternative method I can use (Creating specific pages requiring login etc).

    #268373
    wzshop
    Participant

    Hi,
    I have this code below for one custom post type to be shown in the activity feed. All works fine, but how can i use this also for an extra CTP?

    I tried adding an extra line add_post_type_support( 'listing_2', 'buddypress-activity' );
    But that is not working. Also i rather have different tracking_args for the different custom post types.

    Anyone? Thanks!

    <?php
    //Listing activity support
    function customize_page_tracking_args_listing() {
        // Check if the Activity component is active before using it.
        if ( ! bp_is_active( 'activity' ) ) {
            return;
        }
     
        // Don't forget to add the 'buddypress-activity' support!
        add_post_type_support( 'listing', 'buddypress-activity' );
     
        /**
         * Also don't forget to allow comments from the WordPress Edit Page screen
         * see this screencap https://cldup.com/nsl4TxBV_j.png
         */
     
        bp_activity_set_post_type_tracking_args( 'listing', array(
            'action_id'                         => 'new_listing',
            'bp_activity_admin_filter'          => __( 'Vermelding toegevoegd', 'custom-textdomain' ),
            'bp_activity_front_filter'          => __( 'Vermelding', 'custom-textdomain' ),
            'bp_activity_new_post'              => __( '%1$s heeft een nieuwe vermelding genaamd <a href="%2$s">[vermelding]</a> toegevoegd', 'custom-textdomain' ),
                    'contexts'                          => array( 'activity', 'member' ),
            'comment_action_id'                 => 'new_listing_comment',
            'bp_activity_comments_admin_filter' => __( 'Reageerde op vermelding', 'custom-textdomain' ),
            'bp_activity_comments_front_filter' => __( 'Reacties op vermelding', 'custom-textdomain' ),
            'bp_activity_new_comment'           => __( '%1$s reageerde op <a href="%2$s">een vermelding</a>', 'custom-textdomain' ),
            'position'                          => 100,
        ) );
    }
    add_action( 'bp_init', 'customize_page_tracking_args_listing', 1000 );
    function new_listing_include_post_type_title( $action, $activity ) {
    	if ( empty( $activity->id ) ) {
    		return $action;
    	}
    
    	if ( 'new_listing' != $activity->type ) {
    		return $action;
    	}
    
    	preg_match_all( '/<a.*?>([^>]*)<\/a>/', $action, $matches );
    
    	if ( empty( $matches[1][1] ) || '[vermelding]' != $matches[1][1] ) {
    		return $action;
    	}
    
    	$post_type_title = bp_activity_get_meta( $activity->id, 'post_title' );
    
    	if ( empty( $post_type_title ) ) {
    
    		switch_to_blog( $activity->item_id );
    
    		$post_type_title = get_post_field( 'post_title', $activity->secondary_item_id );
    
    		// We have a title save it in activity meta to avoid switching blogs too much
    		if ( ! empty( $post_type_title ) ) {
    			bp_activity_update_meta( $activity->id, 'post_title', $post_type_title );
    		}
    
    		restore_current_blog();
    	}
    
    	return str_replace( $matches[1][1], esc_html( $post_type_title ), $action );
    }
    add_filter( 'bp_activity_custom_post_type_post_action', 'new_listing_include_post_type_title', 10, 2 );
    wzshop
    Participant

    Hi,
    So i have this script in my /plugins/bp-custom.php file (see below). I was wondering if it is possible to exclude new posts, from posting them on the activity wall, for a certain category. So that (i.e.) new posts that are posted in category_id 2 are not posted on the wall.

    Any ideas on this?
    Here is my script:

    <?php
    //Listing activity support
    function customize_page_tracking_args_listing() {
        // Check if the Activity component is active before using it.
        if ( ! bp_is_active( 'activity' ) ) {
            return;
        }
     
        // Don't forget to add the 'buddypress-activity' support!
        add_post_type_support( 'listing', 'buddypress-activity' );
     
        /**
         * Also don't forget to allow comments from the WordPress Edit Page screen
         * see this screencap https://cldup.com/nsl4TxBV_j.png
         */
     
        bp_activity_set_post_type_tracking_args( 'listing', array(
            'action_id'                         => 'new_listing',
            'bp_activity_admin_filter'          => __( 'Post added', 'custom-textdomain' ),
            'bp_activity_front_filter'          => __( 'Post', 'custom-textdomain' ),
            'bp_activity_new_post'              => __( '%1$s added a new post called <a href="%2$s">[post]</a>', 'custom-textdomain' ),
            'contexts'                          => array( 'activity', 'member' ),
            'comment_action_id'                 => 'new_listing_comment',
            'bp_activity_comments_admin_filter' => __( 'Commented on', 'custom-textdomain' ),
            'bp_activity_comments_front_filter' => __( 'Comments on post', 'custom-textdomain' ),
            'bp_activity_new_comment'           => __( '%1$s commented on <a href="%2$s">a post</a>', 'custom-textdomain' ),
            'position'                          => 100,
        ) );
    }
    add_action( 'bp_init', 'customize_page_tracking_args_listing', 1000 );
    function new_listing_include_post_type_title( $action, $activity ) {
    	if ( empty( $activity->id ) ) {
    		return $action;
    	}
    
    	if ( 'new_listing' != $activity->type ) {
    		return $action;
    	}
    
    	preg_match_all( '/<a.*?>([^>]*)<\/a>/', $action, $matches );
    
    	if ( empty( $matches[1][1] ) || '[post]' != $matches[1][1] ) {
    		return $action;
    	}
    
    	$post_type_title = bp_activity_get_meta( $activity->id, 'post_title' );
    
    	if ( empty( $post_type_title ) ) {
    
    		switch_to_blog( $activity->item_id );
    
    		$post_type_title = get_post_field( 'post_title', $activity->secondary_item_id );
    
    		// We have a title save it in activity meta to avoid switching blogs too much
    		if ( ! empty( $post_type_title ) ) {
    			bp_activity_update_meta( $activity->id, 'post_title', $post_type_title );
    		}
    
    		restore_current_blog();
    	}
    
    	return str_replace( $matches[1][1], esc_html( $post_type_title ), $action );
    }
    add_filter( 'bp_activity_custom_post_type_post_action', 'new_listing_include_post_type_title', 10, 2 );
    soporteomega
    Participant

    Hi, I’m trying to create a custom profile page using visual composer with aditional forms and categories. I’ll like to add the whole buddypress profile page header into a page (cover image, profile picture and buttons: activity, profiles, messages). I found some shortcodes but it only shows parts of the profile.

    mika69400
    Participant

    Hello,

    First of all here is my config:

    Server vps ssd 8GB ram 3×3.7 ghz apache
    Wordpress 4.8.1
    Theme Responsive free 2.9

    Plugins :
    Wp rocket cache
    Buddypress 2.9
    Admin custom login
    Advanced ads pro
    Responsive menu pro
    Ban Hammer
    Bp profile search
    Buddypress activity shortcode
    Buddypress like
    Wp foro
    Google analytics dashboard
    Iq block country
    Newsletter
    Plugin business directory
    Redirection
    Secupress
    Social Plug
    Strong testimonials
    Table of content plus
    Wordpress database backup
    Wp asset cleanup
    Wp excerpt generator
    Wp testing
    Yoast seo

    Database SQL manage on phpmyadmin; modify :
    max connection = 502
    timeout = 69
    table open cache = 71144
    max heap table size = 3G
    tmp table size = 3G
    allowed pack 1 000 000
    open files limit = 150 000
    myisam_sort_buffer_size = 72M
    read_rnd_buffer_size = 24M
    join_buffer_size = 32M
    query_prealloc_size = 65K
    query_alloc_block_size = 128K
    table_definition_cache = 71144
    thread_stack = 512K
    thread_concurrency = 28
    read_buffer_size = 36M
    query cache min res unit = 512
    bulk insert buffer size = 72M
    thread_cache_size = 16K
    query_cache_limit = 512M
    innodb_buffer_pool_size = 3G
    query_cache_size= 512M
    innodb_log_buffer_size = 32M
    sort_buffer_size = 192M
    innodb_read_io_threads = 12
    innodb_write_io_threads = 12?
    innodb_open_files = 1200

    Members on my buddypress : 1300
    monthly visitors : 100 000
    monthly pages views : 200 000

    For several months now, I have activities that disappear completely from my database !!! I checked all the plugins, in case there was a conflict, but everything is ok. So I changed the table type from my MYISAM database to INNODB, but that still has not solved the problem. Same, I have changed many times some sql varibals in phpmyadmin, but nothing works. I also tried the data recovery via the buddypress dashboard, but it does not help! Activities disappear when some members are very active. Bizarre ??? !! So, if people have the solution to my problem, thank you for telling me what to change. Thank you !

    ajitjohnson
    Participant

    Hello there, I have been trying and researching about this for over a week and haven’t been able to figure it out. Any help is much appreciated.

    So here is the problem: Any changes that I make to the template files are not mirrored on the site.

    What have I have already tried? I hope I have done all the basics correctly.
    1. I have a child theme.
    2. I have copied the files from: plugins/buddypress/bp-templates/bp-legacy/buddypress… into my child theme. (so my file structure looks like childtheme/buddypress/members/….(everything inside).
    3. I am able to style the profile pages using CSS (I add them in my child theme stylesheet.css)

    What I am not able to do: Any changes I make to the template files are not visible on the website. Let me give an example.

    Say I wanted to remove my name (@ajitjohnson) from the profile page.

    I locate the header php file, so that is now located at childtheme/buddypress/members/single/member-header.php

    Now I remove the following lines,
    <?php if ( bp_is_active( ‘activity’ ) && bp_activity_do_mentions() ) : ?>
    <h2 class=”user-nicename”>@<?php bp_displayed_user_mentionname(); ?></h2>
    <?php endif; ?>

    I would imagine it should remove my name from the profile page but it doesn’t. May be something else is overriding it?

    I have also tried editing the core template files without adding them to the child theme. It still doesn’t work.

    Please help. Thank you.

    Ps: WordPress version 4.8.1, buddypress version: 2.9, theme: _tk (basic bootstrap theme that I have customised)

    #267331
    Joost abrahams
    Participant

    1. Which version of WordPress are you running?

    4.8

    2. Did you install WordPress as a directory or subdomain install?

    directory

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

    root

    4. Did you upgrade from a previous version of WordPress? If so, from which version?

    No

    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.9

    7. Did you upgraded from a previous version of BP? If so, from which version?

    2.8.2

    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?

    Ban Hammer: 2.6
    bbPress: 2.6-rc-3
    BP Blog Author Profile Link: 2.8.1
    BP Idea Stream: 1.0.1
    BP XProfile WordPress User Sync: 0.6.4
    BuddyDrive: 2.1.1
    BuddyPress: 2.9.0
    BuddyPress Docs: 1.9.4
    BuddyPress Edit Activity: 1.0.8
    BuddyPress Groups Extras: 3.6.9.1
    Co-Authors Plus: 3.2.2
    Jetpack by WordPress.com: 5.1
    JetPack Non-Admin Removal: 3.0
    Login Site Icon: 1.0
    Mantablog bp register text: 0.1
    Mantablog bp remove rss: 0.1
    Mantablog Custom Profile: 0.1
    Mantablog meta desc homepage: 0.1
    MediaPress: 1.1.6
    Registration Honeypot: 1.1.0-alpha-1
    SEO – Remove H1: 1.0.2
    TablePress: 1.8
    TinyMCE Advanced: 4.6.3
    WP Idea Stream: 2.4.0
    WP Revisions Control: 1.2.1
    WP Sitemap Page: 1.6

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

    standard WordPress theme

    10. Which theme do you use ?

    Generatepress

    11. Have you modified the core files in any way?

    No

    12. Do you have any custom functions in bp-custom.php?

    No

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

    2.6rc3

    14. Please provide a list of any errors in your server’s log files.

    15. Which company provides your hosting?

    16. Is your server running Windows, or if Linux; Apache, nginx or something else?

    Linux; Apache

    Eric Thomas Weber
    Participant

    Hi! I did follow the documentation. You’re right that those two pages work. Both of those pages use a certain template within the theme. That template uses a full-width page, without the sidebar and search bar that are on other pages. I’ve a few things to see what can remedy the matter:

    1) Yes, I switched to a different template to test, and yes, on the 2016 template, BP works, so I don’t need to reinstall BP or get it working on its own. That part is working. I didn’t realize I’d have to reset all of my widgets and stuff. Fortunately, they weren’t deleted… Got those set up again.

    2) I tried making all other relevant pages, creating pages for the stuff that BP uses, and setting each of those to use the template that works for Activity, Members, and Chapters. That didn’t work, though.

    3) I tried creating a Custom CSS entry that uses the .buddypress class, telling it to use full-width for #primary. That made the page use full-width, but it didn’t make the functionality of BP work… Like on this page:
    https://www.philosophersinamerica.com/chapters/create/step/group-details/

    Please help! I’ve reached out to my theme’s creator – and there’s no changing to a different theme. We’re super committed and it works really well for everything else, and he’s had no experience using BuddyPress. I need help! This is just the plugin I’ve been looking for to help my people create groups that they need to manage.

    It seems to me that if we’re able to get some of the pages to work there’s GOT to be a way to get other relevant pages to use whatever that same setting is to work also. Any help would be hugely appreciated.
    Best,

    Eric

    wzshop
    Participant

    Hi,
    I want to change the user profile url for the activity stream, so that these are linked to a custom profile page. Ive found the link below, but in my case this only edits the link of the user avatar and not of the in-text link in the activity stream like: %avatar% “user_x just signed up”. Now the %avatar% is linked to the custom profile page but the user_x is still linked to the BP profile page.. How to fix this?

    function imborx_profile_link( $link ) {
    global $activities_template; 
    if( $link != bp_loggedin_user_domain() )
    $link = esc_url( get_author_posts_url( $activities_template->activity->user_id ) );
    return $link; 
    }
    add_filter( 'bp_get_activity_user_link', 'imborx_profile_link', 15, 1 );
Viewing 25 results - 151 through 175 (of 831 total)
Skip to toolbar