Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'custom activity page'

Viewing 25 results - 26 through 50 (of 1,232 total)
  • Author
    Search Results
  • #328379
    semih2400
    Participant

    Hi, I have similar problem. I want to use my own activity loop on different page. This page is template for my custom post type. I created it php that named as ‘single-{mytype}.php’. I can use my own activity loop inside of this page but there is some wird behaviours. For example comment, favourite or delete buttons not seem properly also I think ajax/js doesnt work properly.
    I have used like this:

      <?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . '&action=new_quote' ) ) : ?>
        <?php while ( bp_activities() ) : bp_the_activity(); ?>
     
    	<?php bp_get_template_part( 'activity/entry' ); ?>
    				
        <?php endwhile; ?>
    <?php endif; ?>
    #328341
    eldamania
    Participant

    I have these errors in my site.

    Fatal error: Uncaught ArgumentCountError: 3 arguments are required, 2 given in /customers/5/b/d/eldamania.com/httpd.www/wp-content/plugins/buddypress/bp-blogs/bp-blogs-activity.php:230 Stack trace: #0 /customers/5/b/d/eldamania.com/httpd.www/wp-content/plugins/buddypress/bp-blogs/bp-blogs-activity.php(230): sprintf(‘%1$s ha escrito…’, ‘apply_filters(‘__construct(Array) #9 /customers/5/b/d/eldamania.com/httpd.www/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/activity/activity-loop.php(17): bp_has_activities(”) #10 /customers/5/b/d/eldamania.com/httpd.www/wp-includes/template.php(785): require(‘/customers/5/b/…’) #11
    /customers/5/b/d/eldamania.com/httpd.www/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(222): load_template(‘/customers/5/b/…’, false, Array) #12 /customers/5/b/d/eldamania.com/httpd.www/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(67): bp_locate_template(Array, true, false, Array) #13 /customers/5/b/d/eldamania.com/httpd.www/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/activity/index.php(241): bp_get_template_part(‘activity/activi…’) #14 /customers/5/b/d/eldamania.com/httpd.www/wp-includes/template.php(785): require(‘/customers/5/b/…’) #15
    /customers/5/b/d/eldamania.com/httpd.www/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(222): load_template(‘/customers/5/b/…’, false, Array) #16 /customers/5/b/d/eldamania.com/httpd.www/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(67): bp_locate_template(Array, true, false, Array) #17 /customers/5/b/d/eldamania.com/httpd.www/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(407): bp_get_template_part(‘activity/index’, NULL, Array) #18 /customers/5/b/d/eldamania.com/httpd.www/wp-content/plugins/buddypress/bp-activity/classes/class-bp-activity-theme-compat.php(118): bp_buffer_template_part(‘activity/index’, NULL, false) #19
    /customers/5/b/d/eldamania.com/httpd.www/wp-includes/class-wp-hook.php(308): BP_Activity_Theme_Compat->directory_content(”) #20 /customers/5/b/d/eldamania.com/httpd.www/wp-includes/plugin.php(205): WP_Hook->apply_filters(”, Array) #21 /customers/5/b/d/eldamania.com/httpd.www/wp-content/plugins/buddypress/bp-core/bp-core-theme-compatibility.php(767): apply_filters(‘bp_replace_the_…’, ”) #22 /customers/5/b/d/eldamania.com/httpd.www/wp-includes/class-wp-hook.php(308): bp_replace_the_content(”) #23 /customers/5/b/d/eldamania.com/httpd.www/wp-includes/plugin.php(205): WP_Hook->apply_filters(”, Array) #24 /customers/5/b/d/eldamania.com/httpd.www/wp-includes/post-template.php(255): apply_filters(‘the_content’, ”) #25 /customers/5/b/d/eldamania.com/httpd.www/wp-content/themes/twentyfourteen/content-page.php(20): the_content() #26 /customers/5/b/d/eldamania.com/httpd.www/wp-includes/template.php(785): require(‘/customers/5/b/…’) #27 /customers/5/b/d/eldamania.com/httpd.www/wp-includes/template.php(718): load_template(‘/customers/5/b/…’, false, Array) #28 /customers/5/b/d/eldamania.com/httpd.www/wp-includes/general-template.php(204): locate_template(Array, true, false, Array) #29 /customers/5/b/d/eldamania.com/httpd.www/wp-content/themes/twentyfourteen/page.php(33): get_template_part(‘content’, ‘page’) #30 /customers/5/b/d/eldamania.com/httpd.www/wp-includes/template-loader.php(106): include(‘/customers/5/b/…’) #31 /customers/5/b/d/eldamania.com/httpd.www/wp-blog-header.php(19): require_once(‘/customers/5/b/…’) #32 /customers/5/b/d/eldamania.com/httpd.www/index.php(17): require(‘/customers/5/b/…’) #33 {main} thrown in /customers/5/b/d/eldamania.com/httpd.www/wp-content/plugins/buddypress/bp-blogs/bp-blogs-activity.php on line 230

    #328155
    wackao
    Participant

    Heads up ! BP is currently not compatible with PHP 8.2

    Deprecated: Creation of dynamic property BP_Members_Component::$directory_title is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 299
    
    Deprecated: Creation of dynamic property BP_Members_Component::$table_name_invitations is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_Members_Component::$table_name_last_activity is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_Members_Component::$table_name_optouts is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_Members_Component::$table_name_signups is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_Members_Component::$nav is deprecated in wp-content/plugins/buddypress/bp-members/classes/class-bp-members-component.php on line 213
    
    Deprecated: Creation of dynamic property BP_Members_Component::$invitations is deprecated in wp-content/plugins/buddypress/bp-members/classes/class-bp-members-component.php on line 232
    
    Deprecated: Creation of dynamic property BP_XProfile_Component::$directory_title is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 299
    
    Deprecated: Creation of dynamic property BP_XProfile_Component::$table_name_data is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_XProfile_Component::$table_name_groups is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_XProfile_Component::$table_name_fields is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_XProfile_Component::$table_name_meta is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_Activity_Component::$directory_title is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 299
    
    Deprecated: Creation of dynamic property BP_Activity_Component::$table_name is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_Activity_Component::$table_name_meta is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_Friends_Component::$directory_title is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 299
    
    Deprecated: Creation of dynamic property BP_Friends_Component::$table_name is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_Friends_Component::$table_name_meta is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_Groups_Component::$directory_title is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 299
    
    Deprecated: Creation of dynamic property BP_Groups_Component::$table_name is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_Groups_Component::$table_name_members is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_Groups_Component::$table_name_groupmeta is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_Messages_Component::$directory_title is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 299
    
    Deprecated: Creation of dynamic property BP_Messages_Component::$table_name_notices is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_Messages_Component::$table_name_messages is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_Messages_Component::$table_name_recipients is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_Messages_Component::$table_name_meta is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_Notifications_Component::$directory_title is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 299
    
    Deprecated: Creation of dynamic property BP_Notifications_Component::$table_name is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_Notifications_Component::$table_name_meta is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 718
    
    Deprecated: Creation of dynamic property BP_Settings_Component::$directory_title is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 299
    
    Deprecated: Creation of dynamic property BP_Course_Component::$directory_title is deprecated in wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php on line 299
    
    Deprecated: Creation of dynamic property BP_Activity_Component::$actions is deprecated in wp-content/plugins/buddypress/bp-activity/bp-activity-functions.php on line 350
    
    Deprecated: Creation of dynamic property MemberTypes_Custom_Field::$bp_get_member_type_tax_name is deprecated in wp-content/plugins/vibebp/includes/class.membertypes.from.fields.php on line 29
    
    Deprecated: Creation of dynamic property BP_Members_Admin::$capability is deprecated in wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php on line 109
    
    Deprecated: Creation of dynamic property BP_Members_Admin::$user_profile is deprecated in wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php on line 115
    
    Deprecated: Creation of dynamic property BP_Members_Admin::$current_user_id is deprecated in wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php on line 118
    
    Deprecated: Creation of dynamic property BP_Members_Admin::$user_id is deprecated in wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php on line 121
    
    Deprecated: Creation of dynamic property BP_Members_Admin::$is_self_profile is deprecated in wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php on line 124
    
    Deprecated: Creation of dynamic property BP_Members_Admin::$screen_id is deprecated in wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php on line 127
    
    Deprecated: Creation of dynamic property BP_Members_Admin::$stats_metabox is deprecated in wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php on line 130
    
    Deprecated: Creation of dynamic property BP_Members_Admin::$edit_profile_args is deprecated in wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php on line 133
    
    Deprecated: Creation of dynamic property BP_Members_Admin::$edit_profile_url is deprecated in wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php on line 134
    
    Deprecated: Creation of dynamic property BP_Members_Admin::$edit_url is deprecated in wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php on line 135
    
    Deprecated: Creation of dynamic property BP_Members_Admin::$users_page is deprecated in wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php on line 138
    
    Deprecated: Creation of dynamic property BP_Members_Admin::$signups_page is deprecated in wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php on line 139
    
    Deprecated: Creation of dynamic property BP_Members_Admin::$users_url is deprecated in wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php on line 140
    
    Deprecated: Creation of dynamic property BP_Members_Admin::$users_screen is deprecated in wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php on line 141
    
    Deprecated: Creation of dynamic property BP_Members_Admin::$members_invites_page is deprecated in wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php on line 143
    
    Deprecated: Creation of dynamic property BP_Members_Admin::$subsite_activated is deprecated in wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php on line 146
    
    Deprecated: Creation of dynamic property BP_Members_Admin::$tools_parent is deprecated in wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php on line 160
    
    Deprecated: Creation of dynamic property BP_Members_Component::$admin is deprecated in wp-content/plugins/buddypress/bp-members/classes/class-bp-members-admin.php on line 78
    
    Deprecated: Creation of dynamic property BP_XProfile_Component::$admin is deprecated in wp-content/plugins/buddypress/bp-xprofile/classes/class-bp-xprofile-user-admin.php on line 38
    #328018
    luixv
    Participant

    I am using the following:
    WP Version: 6.1.1
    Permalink: /%postname%/
    Active Theme: BuddyX 4.4.5
    Platform: Windows
    Browser Name Chrome
    PHP Version: 8.0.7
    MySQL Version: 5.5.5
    The plugins I have are these:

    Activity Plus Reloaded for BuddyPress 1.0.8
    Akismet Anti-Spam 5.0.2
    BP Friends Suggestions Widget 1.1.0
    BP Profile Search 5.4.7
    BuddyPress 11.0.0
    BuddyPress Activity ShortCode 1.1.8
    BuddyPress Extended Friendship Request 1.2.1
    BuddyPress Global Search 1.2.1
    BuddyPress Login Redirect to Profile 1.2.3
    BuddyPress Profile Completion 1.0.8
    BuddyPress Simple Terms And Conditions 1.3
    BuddyPress Xprofile Custom Field Types 1.2.5
    Classic Editor 1.6.2
    Classic Widgets 0.3
    Colorlib Login Customizer 1.3.1
    CookieYes | GDPR Cookie Consent 3.0.8
    Custom Font Uploader 2.0.0
    Duplicator 1.5.1
    Easy Registration Forms 2.1.1
    Force Login 5.6.3
    GEO my WP 3.7.2.1
    Kirki Customizer Framework 4.0.24
    Quick and Easy FAQs 1.3.6
    Shared Counts 1.4.1
    Verified Member for BuddyPress 1.2.6
    Wbcom Designs – BuddyPress Member Reviews 2.8.3
    WordPress Username Availability Checker 1.1.8

    I have configured a new Register page using ERForms. I’ve created just a wordpress page which has only a shortcode to the ERform.
    I’ve set it at buddypress settings-> Pages -> register. Buddypress is redirecting to the wordpress regitration page instead of my page.
    I’ve also changed the redirection at buddypress setting to whatever page (for example my FAQ page) and always redirects to the wordpress registration page.

    I’ve tried also deactivating all plugin but buddypress and ERforms and no, buddypress is always redriecting to the standard wordpress registration page instead of what I am setting.

    Any hint / idea what to cope this problem?

    Thnks in advance

    #327985
    scottmotion
    Participant

    I haven’t used BuddyBuilder but after looking at their offering I would guess that you are correct that this plugin is the culprit. It looks like they provide some other templating system to replace some of the standard BuddyPress pages and provide an entire authentication process. I think the first course of action should be to work with them to fix the problem. I mean they offer this entire solution so I’m assuming it does work! Also, did you try disabling this plugin?

    Anyway, when I go to Settings>BuddyPress>Pages, I have these 4:
    Activate, Activity, Members, & Register.

    There may be more or less depending on features you’ve enabled. Activate, Activity, and Members are all blank pages, while Register uses the shortcode ‘[bbp-register]‘ (its actually a bbPress page). You should be able to at least create these 3 blank pages and assign them on that settings page.

    Here’s another post about missing pages: https://buddypress.org/support/topic/how-to-create-login-and-register-pages/

    Moderator shanebp says “BP does not handle a login page.” Here again I have a page with a bbPress shortcode ‘[bbp-login]‘. So basically it looks like login and registration need to be handled by some other plugin or theme.

    There are hooks that can be used to modify these pages, but full control over content and styling would probably require a theme, plugin, or custom page templates. I tried Elementor with BuddyPress but quickly found that Elementor was making the process too complicated. TBH I think Elementor gets in they way more than it helps. I ended up using Blocksy and Stackable.

    lighthousejack
    Participant

    Comments on activity item of custom post type in feed appear blank (empty body) but appear correctly in the single post page and tracking otherwise works as expected.

    I’ve got feed blog posts & comments enabled on BP back-end. Cannot figure out where the problem seems to be.

    Any king of help would be appreciated.

    #326827
    dektech2018
    Participant

    Fix: Deactivate the plugin, install “My Custom Functions” and paste this code into the PHP Inserter in the Dashboard settings menu.

    //Hide for non-logged-in users (public visitors)
    function bp_logged_out_page_template_redirect() {
    if( ! is_user_logged_in() && (is_page( ‘members’ )|| is_page( ‘activity’ ) || bp_is_user()) ) {
    wp_redirect( home_url( ‘/register/’ ) );
    exit();
    }
    } add_action( ‘template_redirect’, ‘bp_logged_out_page_template_redirect’ );

    hausmanconsulting
    Participant

    Using Youzify with a private BuddyPress site (i.e., everyone is a “member” and there is no public access), there is a profile privacy section at the bottom of the new post area on the activity feed that defaults to “Public”. On private communities this is likely to cause a fair amount of confusion because users will obviously not want anything they post to be truly “Public”, and there’s no need to force them to select “Members” before they post since it’s a private community.

    In Youzify, the list of privacy options is called with apply_filters and a function name “youzify_wall_activity_privacy_option”. So in your bp_custom.php you can add something like this, where I moved the “Members” option to the top and commented out the public option:

    add_filter('youzify_wall_activity_privacy_options', 'youzify_change_public_option' );
    function youzify_change_public_option( $options ) {
    
    	$options = array(
    
    		//'public' => array( 'title' => __( 'Public', 'youzify' ), 'icon' => 'fas fa-globe-asia' ),
    
    		'members' => array( 'title' => __( 'Members', 'youzify' ), 'icon' => 'fas fa-users' ),
    		
    		'onlyme' => array( 'title' => __( 'Only Me', 'youzify' ), 'icon' => 'fas fa-lock' ),
    
    		'friends' => array( 'title' => __( 'My Friends', 'youzify' ), 'icon' => 'fas fa-user-friends' ),
    		
    
    	);
    	
    	return $options;
    
    }

    The keys “public”.”onlyme”, “friends”, and “members” are hard coded into the privacy code so probably best not to change those. The default icon is still the globe when the page is first loaded with the members section at the top of the list, but I think that can be changed in a stylesheet or possibly a theme file override.

    The reason I didn’t just rename “Public” and remove the members option is because if the community ever goes public, we don’t want those posts that were destined for the private community to be shown. This way they are still tagged as “members”.

    #324939
    Socalmedia
    Participant

    How can I customise individual buddypress pages with the Divi Builder?

    I have already tried with the plugin “buddypress shortcodes”.

    However, I notice that the automatically created Buddypress page “activity” has more content than my individual page and the shortcode [activity-listing].

    Why is the whole page not displayed?

    Is there no clever solution for Buddypress with shortcodes?

    #324671
    t.schwarz
    Participant

    Hi,

    I’m trying to show a part of the activtiy feed (entries categorized as “tips” with feed meta category) on a different page than the standard activity page. Using the activity loop in a custom page template it’s easy to display the restricted activities on a standard WP page.

    However, as the standard WordPress page is not a registered BuddyPress page none of the Buddypress CSS classes and Javascript is loaded, which means that the custom loop looks pretty bad and is largely non-functional.

    So far I’ve come up with two ideas about how to solve this:

    1) using different feed templates on the standard activity feed page and indicate which one to use by adding a variable in the URL – this approach runs into problems because the standard feed is loaded by Admin-Ajax and there’s no apparent way to add an additional URL induced context variable to the ajax query – or is there?

    2) turning the standard WordPress page into a BuddyPress page (so the activity JS and CSS is loaded). I’ve been thinking about actually comparing loaded scripts and manually enqueuing them for the new page-template, but I wonder if there is not a much simpler solution.

    I’ve tried ideas like this “prehistoric” one, but they don’t appear to work anymore – https://buddypress.org/support/topic/make-your-own-custom-buddypress-page/page/2/

    Is there a modern equivalent to this?

    Should I maybe approach this completely differently?

    Thanks for any help!

    teslavolt
    Participant

    Wordpress v5.9
    Buddypress V10
    Theme – Nouveau enabled

    I’m trying to put the contents of a single activity onto a custom wordpress template page.
    e.g. https://www.mysite.com/members/myusername/activity/2/

    I looked at the \buddypress\bp-templates\bp-nouveau\buddypress\activity\activity-loop and \activity\single\home for code to put in my custom template:

    
    <div class="entry-content" id="start-a-project">
        <div id="buddypress" class="buddypress-wrap twentysixteen bp-dir-hori-nav">
            
            <?php $prj_activity_args = array("include"=> 2 );  // only pull activity id=2 from WP_BP_ACTIVITY ?> 
            <div class="activity" data-bp-single="2"> <!--hardcoding for testing-->
            <?php 
            if ( bp_has_activities( $prj_activity_args ) ) : ?>
                <?php if ( empty( $_POST['page'] ) || 1 === (int) $_POST['page'] ) : ?>
                    <ul id="activity-stream" class="activity-list item-list bp-list" data-bp-list="activity">
                        <ul class="activity-list item-list bp-list">
                <?php endif; ?>
                <?php
                    while ( bp_activities() ) :
                        bp_the_activity();
                ?>
                    <?php bp_get_template_part( 'activity/entry' );?>
                <?php endwhile; ?>
                <?php if ( empty( $_POST['page'] ) || 1 === (int) $_POST['page'] ) : ?>
                        </ul> <!-- .activity-list -->
                    </ul> <!-- #activity-stream -->
                <?php endif; ?>
            <?php else : ?>
                <?php //bp_nouveau_user_feedback( 'activity-loop-none' ); ?>
            <?php endif; ?>
            <?php// bp_nouveau_after_loop(); ?>
    
            </div>
        </div>
    

    I only want to pull one activity – so I passed array(“include”=> 2 ) to bp_has_activities() ; However, when the page is loaded, the <ul id=”activity-stream”> loads ALL the activities.

    Could someone help me figure out why this is happening? I switched to the legacy theme and the code works fine. I think it’s something to do with the data-bp-list=”activity” that is causing all the activities to get loaded.

    cheekeat
    Participant

    Hi!

    I am trying to create a shortcode to place the activity loop in a new page, so I can customize and highlight some activities. To start, I inserted the standard loop inside a shortcode function (code as below). But the standard loop failed to show. Just to ensure that my shortcode is ok, I just inserted a “testing 123” text to check.

    FYI, I am using BuddyX theme (WordPress version 5.8.3). I test the code below in functions.php before place it into Code Snippets plugin. Currently, the code is still inside functions.php.

    I placed the shortcode ([mkp_activity]) in a page (link to the page as below). I also try to place the shortcode in widget area. But the loop just did not appear.

    Test Page

    function mkp_bp_activity_shortcode() {
    
    $message = 'testing 123';
    return $message;
    
    if ( bp_has_activities( bp_ajax_querystring( 'activity' ) ) ) :
        while ( bp_activities() ) : bp_the_activity();
    
            locate_template( array( 'activity/entry.php' ), true, false );
    
        endwhile;
    endif;
    
    }
    add_shortcode('mkp_activity', 'mkp_bp_activity_shortcode');

    I am new to this. I am not sure if I am doing this completely wrong. Appreciate any advice. Thanks!

    Regards,
    CK

    #322849
    djsteveb
    Participant

    when filling out register form it just refreshes the page – seems to fail with no error message I can see.
    How would I find out what is happening in the browser and on the server to debug?

    tried with turning off plugins and back to default theme,
    also did the list of things to check from here:
    (
    – check the WordPress settings allows account to be created (Anyone can register checkbox needs to be active) See: wordpress.org/support/article/settings-general-screen/#membership
    – check your permalink settings are using one of the pretty permalink options (not plain), see this documentation page wordpress.org/support/article/using-permalinks/#mod_rewrite-pretty-permalinks
    – check the activate and register actions are associated with a public WordPress page. You can find some inputs about it from this documentation page : codex.buddypress.org/getting-started/configure-components/#settings-buddypress-pages

    NB: the registration and activation pages are only displayed to users who are not logged in,
    )

    site is https://www.chatyolo.com/register/ – it’s kind of NSFW

    1. Which version of WordPress are you running?
    5.8.3
    2. Did you install WordPress as a directory or subdomain install?
    main directory
    6. Which version of BP are you running?
    9.2
    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?
    301 Redirects, All in One SEO, AdRotate, Error Log Monitor, Forminator Pro,
    Slide Anything – Responsive Content / HTML Slider and Carousel, Wise Chat Pro, Wordfence Security,
    WP Activity Log, Smush Pro, Query Monitor,
    9. Are you using a standard WordPress theme or customized theme?
    tried both -happens with 2021 theme, zakra, and astra

    13. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?
    2.6.9 – it’s turned off through and still issue

    20. What BP Template Pack is activated in your installation? You will see that under Dashboard > Settings > BuddyPress – Options page.
    was on legacy, switched to neavox

    Tried with firefox and chrome and different computers..
    had a few other profile fields – then removed them from the base signup and it still fails –

    Help greatly appreciated

    #322754
    paolofru
    Participant

    Hello and thanks in advance to anyone who can answer me.

    I have created a section with buddypress on my site which is integrated with project management.

    In another section, the user can create (through a woocommerce product configuration plugin) his own customized product, only instead of concluding the purchase I would like the cart to be posted within the user’s activities.

    I already use a plugin that allows me to share the cart, a special page is created (eg http://www.mysite.com/mycustomization001) and this link can be shared on social networks or by email.

    Is there any way to post this link on the activity bulletin board?

    Thank you all

    deswegen
    Participant

    Greetings,

    I have a CPT “events” that I want to display on the activity feed. I stumbled upon this page: https://codex.buddypress.org/plugindev/post-types-activities/ which tells you how to implement it.
    I have added
    add_post_type_support( 'page', 'buddypress-activity' );
    to the custom-bp.php which works and indeed shows a post once I add a new event.

    However, the message it shows is a bit generic (Name wrote a new item) which I would like to change (including featured image).

    In the above-mentioned link it does explain how to do this (changing the text) but for some reason, I can’t make it work. I added the following code as mentioned to my custom-bp.php but it just does not change the message:

    function customize_page_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( 'events', array(
            'component_id'             => buddypress()->blogs->id,
            'action_id'                => 'new_blog_page',
            'bp_activity_admin_filter' => __( 'Published a new page', 'custom-domain' ),
            'bp_activity_front_filter' => __( 'Events', 'custom-domain' ),
            'contexts'                 => array( 'activity', 'member' ),
            'activity_comment'         => true,
            'bp_activity_new_post'     => __( '%1$s posted a new <a href="%2$s">event</a>', 'custom-textdomain' ),
            'bp_activity_new_post_ms'  => __( '%1$s posted a new <a href="%2$s">event</a>, on the site %3$s', 'custom-textdomain' ),
            'position'                 => 100,
        ) );
    }
    add_action( 'bp_init', 'customize_page_tracking_args' );

    Also, in the best case I would like to add the featured image to it which is clickable (exactly how it does it for a normal blog entry).

    Can somebody tell me what I do wrong?

    promtedcoin64
    Participant

    Hello, I have created a custom notification for when a Moderator or Admin comments in a Buddypress Group.
    It does two things:
    1. it creates a notification and
    2. sends out an email to the members.

    The email works fine with wp_mail() and the notification is also created fine in most cases, EXCEPT for when the last thing we do in the caption box is copy-paste text. In these scenarios the notification is created for the user (they see a +1), but clicking on the notification gives a “page not found” error.

    One of my last tests proved that I can in fact copy-paste content with no character limit in the caption box. But I must make sure I type with my keyboard something before Posting the Update IF I want the notification to save properly in the DB.

    I wonder if this is a bug and/or If anyone has experienced a similar problem when copying text into a form.

    Best regards,
    Pablo

    Functions and Hooks used:
    bp_notifications_add_notification
    bp_activity_add
    bp_notifications_get_notifications_for_user
    bp_notifications_get_registered_components
    wp_mail

    strudi1986
    Participant

    Hello!

    Im working for 2 days now to solve my problem, but i dont know how anymore. My Problem is, that i dont know how to activate the Stream Sidebars. On my live page, i cant show the sidebars on the activity site, if i open the activity stream site what is linked in the buddypress options, the sidebars are visible, but there is still my old webdesign and there is missing all of the extensions from the youzify plugin. that are 2 different versions of activity, why? on live page there is a completley different activity page.

    I am using the Hueman Pro Theme, but i tried also some other themes too. still the same problem.

    for some reason i cant customize or link the working activity stream with youzify and the live page. And i also dont have the wall sidebar widget?!

    Here are 2 images with working and non working stream and sidebars.

    Working Stream with Sidebars, but ol webdesign

    Livepage with no working sidebars and activity stream

    Hope anyone can help?! Im pretty bored at the moment. 🙂

    Sorry for my bad english and thank you 🙂

    webcarabao
    Participant

    Hi All,

    Is there a way to override the rendered image for the avatar photo on the What’s New form in the Activity page?
    I have applied the necessary custom values mentioned here – https://codex.buddypress.org/themes/guides/customizing-buddypress-avatars/
    But that does not seem to apply to the What’s New avatar.

    I am using the “Nouveau” template and I look as its files and I cannot see anything to directly override the whats-new-avatar size.

    I have set in my bp-custom.php the sizes to be 150, but the whats-new-avatar image being used still sticks to 50 and thus it becomes blurry.

    I hope somebody can help me on this.

    Thank you!

    lighthousejack
    Participant

    Hello all,
    I am looking to create a page with two loops.

    The first would fetch a given number of custom post type posts with each entry with it’s own custom markup and the second loop would display the standard global activity feed as usual (which will also include the custom post type entries).

    I have managed so far to create the custom post type and integrate the custom post type entries in the global activity feed but I cannot seem to find a way how to create the second feed and how to tell it what to show.

    Any help/ direction would be greatly appreciated.

    Thanks!

    mohamettarik
    Participant

    Hello and thanks for support,

    I have WooCommerce website and integrated BuddyPress for customers community.

    I had a landing page as a static home page for my site, but unfortunately BuddyPress activity page is a dominant home page now.

    Checked the site home page from site settings, it is my landing page.
    Checked BuddyPress settings pages and nothing to edit as home page or else.

    Also when I tried to access my best from different device, it asks me to activate account and provide activation key… it seems weird because my website have a landing page open for all people.

    #320246
    mjaitly123
    Participant

    Hi,

    I am using elementor but after disconnecting the group pages from BuddyPress Pages, I import a template and save the page. Then I again connect the page to BuddyPress Groups. However, after the connection, the formatting is all lost and the page appears plain white. How can I avoid this? I am asking because I want to give a background colour to the activity, group and members pages. If I use a templated after importing it. does Buddypress suppress all the formatting in the template?

    Thanks

    #320158
    pooriaarab
    Participant

    Hi Shane,

    Thanks for the quick reply and it actually worked! Thank you 🙂

    The sidebar shows for a specific user type now but it shows up in the wrong location. I tried the code in different places but it’s in the middle of the profile now and want it to be on the left side like the normal sidebar for user profile.

    The first part of the code is the simplified version you mentioned and the css styling. The rest is the remaining of the loop on that page. I suppose the code should go somewhere in there:

    </div><!-- #item-body -->
                <?php
                $member_type = bp_get_member_type( bp_displayed_user_id() );
           if ( $member_type == 'club' ) {?>
               <div id="secondary" class="widget-area sm-grid-1-1 no-padding-top" role="complementary">
                   <div class="bb-sticky-sidebar">
                       <?php dynamic_sidebar( 'club_sidebar'); ?>
                   </div>
               </div>
           <?php
            }
           
           ?>
       <?php
                    
                if ( ( !isset($bp_nouveau_appearance['user_nav_display']) || !$bp_nouveau_appearance['user_nav_display'] ) && is_active_sidebar('user_activity') && bp_is_user_activity() ) {
    
    				ob_start();
    				dynamic_sidebar('user_activity' );
    				$sidebar = ob_get_clean();  // get the contents of the buffer and turn it off.
    				if ( trim( $sidebar ) ) { ?>
    					<div id="user-activity" class="widget-area" role="complementary">
    						<div class="bb-sticky-sidebar">
    							<?php dynamic_sidebar( 'user_activity' ); ?>
    						</div>
    					</div><?php
    				}
    			}
              
    			if ( ( !isset($bp_nouveau_appearance['user_nav_display']) || !$bp_nouveau_appearance['user_nav_display'] ) && is_active_sidebar( 'profile' ) && !bp_is_user_settings() && !bp_is_user_messages() && !bp_is_user_notifications() && !bp_is_user_profile_edit() && !bp_is_user_change_avatar() && !bp_is_user_change_cover_image() && !bp_is_user_front() && $profile_cover_width == 'full' ) {
    
    			    ob_start();
    	            dynamic_sidebar('profile' );
    	            $sidebar = ob_get_clean();  // get the contents of the buffer and turn it off.
    				if ( trim( $sidebar ) ) { ?>
    					<div id="secondary" class="widget-area sm-grid-1-1 no-padding-top" role="complementary">
    						<div class="bb-sticky-sidebar">
    							<?php dynamic_sidebar( 'profile'); ?>
    						</div>
    					</div>
    					<?php
    				}
    			}
    			?>
    		</div>
    
    	</div><!-- // .bp-wrap -->
        	<?php if ( isset($bp_nouveau_appearance['user_nav_display']) && $bp_nouveau_appearance['user_nav_display'] &&  is_active_sidebar( 'profile' ) && !bp_is_user_settings() && !bp_is_user_messages() && !bp_is_user_notifications() && !bp_is_user_profile_edit() && !bp_is_user_change_avatar() && !bp_is_user_change_cover_image() && !bp_is_user_front() && $profile_cover_width != 'default' ) { ?>
    			</div>
    
    			<?php
    			ob_start();
    			dynamic_sidebar('profile' );
    			$sidebar = ob_get_clean();  // get the contents of the buffer and turn it off.
    			if ( trim( $sidebar ) ) {
    				?>
    				<div id="secondary" class="widget-area sm-grid-1-1 no-padding-top" role="complementary">
    					<div class="bb-sticky-sidebar">
    						<?php dynamic_sidebar( 'profile'); ?>
    					</div>
    				</div>
    				<?php
    			}
    			?>
    

    This is a screenshot of where the sidebar is appearing:

    Certificates is in the middle. How can it be in the place of cart?

    -How can I move the sidebar (Certificates) to where the left sidebar (Cart) is?

    -And how can I repeat this process for 3 different user types? 3 custom sidebars for 3 user types.

    -I was not sure what “ob_start()” and “bp_nouveau_appearance” were that appear in the beginning of the other sidebar code. How can I add them to the custom sidebar? Are they even necessary?

    Appreciate the support and the community around BuddyPress

    benofinil
    Participant

    Hello !

    First of all, I apologize if the answer already exists, but I am new to the php language, and I do not understand much …

    I created a website for an organization, and I set up a community space thanks to Buddy Press and Youzify.

    Here is my question: I want to make this space completely closed, and not accessible to non-logged in users. I tried putting this php code in wp-content / plugins / bp-custom.php:

    <? php
    / **
    * Redirect the Buddypress directories to the login page for non logged in users.
    * /
    function yzc_redirect_bp_directories_to_login_page () {

    if (! is_user_logged_in () && (bp_is_groups_directory () || bp_is_members_directory ())) {

    // Get pages Buddypress;
    $ bp_pages = get_option (‘bp-pages’);

    // Get the redirection URL
    $ redirect_url = youzify_get_login_page_url ();

    wp_redirect ($ redirect_url);
    go out();
    }
    }

    add_action (‘template_redirect’, ‘yzc_redirect_bp_directories_to_login_page’);

    Now unconnected users cannot have access to member directory and groups directory, but I would like to block access to all BuddyPress pages (such as member profile pages, activity page. ..) and redirect to the login page.

    Could someone help me complete this piece of code?
    Thank you for your help

    Mathieu Viet
    Moderator

    I’m bit amazed by this

    enabled direct registration of new members and disabled email confirmation

    As far as I know, a user registering from the front-end (managed by BuddyPress) is first receiving an email containing a secret key he needs to paste into the BuddyPress activate page to validate their account. But maybe you are using a plugin or some custom code to disable this..

    Otherwise, you can achieve what you describe adding the following code snippets to a bp-custom.php file.

    
    /**
     * Adds activities generated when a user activates their account when a user
     * is created using the wp-admin/user-new screen Add new action.
     */
    function automatically_generate_an_activation_activity( $user_id = 0 ) {
    	// Adds a "became a registered user" activity.
    	bp_core_new_user_activity( $user_id );
    
    	// Fake a user log in.
    	bp_update_user_last_activity( $user_id );
    }
    add_action( 'edit_user_created_user', 'automatically_generate_an_activation_activity' );
    
    homelesshenry
    Participant

    I’m trying to change the excerpt length for the activity feed. And I can’t figure out why it’s been so difficult.

    For example, I’ve used the following code:

    function buddydev_modify_excerpt_length( $length ) {
    	$length = 1225;
    
    	return $length;
    }
    add_filter('bp_activity_excerpt_length', 'buddydev_modify_excerpt_length' );

    I even went into bp-core/bp-core-template.php for a hard-coded solution:

    function bp_create_excerpt( $text, $length = 1225, $options = array() ) {

    Still it doesn’t change my excerpt length. I then thought it might be the theme I’m using (Buddyboss) and went poking around but couldn’t find anything; although maybe there is something and I didn’t look well enough.

    Otherwise, could it have anything to do with the activity feed posts in question being added post types (woocommerce product pages) via the guide by Mathieu Viet:

    Post Types Activities

    Anyone else have similar issue or know what it might be?

Viewing 25 results - 26 through 50 (of 1,232 total)
Skip to toolbar