Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 1,351 through 1,375 (of 22,682 total)
  • Author
    Search Results
  • King Ding
    Participant

    I’m creating a plugin that records wordpress comments as a bp_activity post. I’ve been successful at recording the activity, but there’s just one thing that I want to add… a new possible value! Here’s the plugin in a nutshell:

    function kd_record_activity($comment_id, $approval) {
        if($approval == 1) {
            $comment = get_comment($comment_id);
            $userlink = bp_core_get_userlink($comment->user_id);
            $postlink = '<a href="' . get_permalink($comment->comment_post_ID) . '">' 
                            . get_the_title($comment->comment_post_ID) . '</a>';
     
            bp_activity_add(array(
                'action'            => sprintf( __( '%1$s commented on: %2$s', 'buddypress' ), 
                                                    $userlink, $postlink),
                'content'           => $comment->comment_content,
                'component'         => 'groups',
                'user_id'           => $comment->user_id,
                'type'              => 'new_blog_comment',
    	    'new_row'           => '123'  //THIS is the new row I want to record
            ));
         
        }
    }
    //triggered just after a comment is saved in the database.
    add_action('comment_post', 'kd_record_activity', 10, 2);
    
    // We want activity entries of blog comments to be shown as mini-entries
    function kd_minify_activity($array) {
        $array[] = 'new_blog_comment';
        return $array;
    }
    add_filter('bp_activity_mini_activity_types', 'kd_minify_activity');

    I understand that by default, the bp_activity_add hook only allows for certain variables. I expected that I could just add another variable to the array in bp-activity-functions.php and everything would work as expected, but apparently not! Please find //MY NEW ROW! in the following code: https://pastebin.com/3nVE4fya

    What else am I missing? P.S – the row exists in the database, it’s just that it does not record any data that I set.

    Thank you!

    #313936
    iamthewebb
    Participant

    Does your site send any email?
    I’ve used https://wordpress.org/plugins/post-smtp/ in the past to track what is happening on my sites with email.

    #313932
    sayri88
    Participant

    Hello when I try to enter to profile/edit I get the error “Page Not Found 404”, I already deactivated all the plugin and installed the Twenty Twenty theme of wordpress but I still have this error.

    https://inkaofert.com/members/johan88/profile/edit/group/1/

    #313929
    iamthewebb
    Participant

    What have you tried to debug the problem so far? There are plugins like https://wordpress.org/plugins/post-smtp/ which will log and show you any errors that may be happening

    #313921
    shanebp
    Moderator

    buddypress.org is a subsite of wordpress.org – only one person can address that error and they know about it.

    #313893
    shanebp
    Moderator

    So write a dynamic query to get the ids that you want in include.
    I suggest using $wpdb->get_col.

    wpdb

    #313889
    shanebp
    Moderator

    WP_User_Query has an include parameter:
    include (array) – List of users to be included.

    WP_User_Query

    Gather the ids of the members you want and then use that array for include.

    #313869
    iamthewebb
    Participant

    Have you tested with the twenty twenty theme and other plugins disabled to ensure it is not something else that is causing the problem?

    Any errors in your server logs?
    You can also enable debugging and check the file it creates to see if it gives any indication https://wordpress.org/support/article/debugging-in-wordpress/

    #313821
    nolymityash
    Participant

    Our website is made with bbPress and Buddypress plugins in wordpress. This old plugin “BuddyPress Global Search” used to work well on our site. But this plugin stopped updating and working from 2019; We are looking for a search plugin that also allows sorting of search results.
    I have tried plugins like Relevanssi, Ajax, and GD Power Search, but for some reason, nothing shows up on the site, once I disabled Global Search, the search only yields a Google style list with no sorting options.
    Thank you for any feedback!

    BBPress 2.6.5
    BuddyPress 6.3.0
    Wordpress 5.5.1

    #313801
    judymacmahon
    Participant

    Hi this all started when I couldn’t upload a member profile image – the upload link wouldn’t open.
    I contacted the 3rd party developer -I’ve deleted a plugin that was no longer supported and replaced it with a Buddy Press replacement: https://wordpress.org/plugins/bp-xprofile-custom-field-types/

    This is the error I’m getting and it’s causing an ERROR RENDERING FILE.
    Pagely my server have reinstated access to the dashboard and deactivated the plugin.

    ***here is the error info from them:
    —–
    “Hey Judy,

    The buddypress-xprofile-custom-fields-type plugin was reporting the following php error:

    [14-Sep-2020 07:42:15 UTC] PHP Fatal error: Uncaught Error: [] operator not supported for strings in /dom6056/wp-content/plugins/buddypress-xprofile-custom-fields-type/bp-xprofile-custom-fields-type.php:155
    Stack trace:
    #0 /wordpress-5.5.1/wp-includes/class-wp-hook.php(287): Bxcft_Plugin->admin_init(”)
    #1 /wordpress-5.5.1/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
    #2 /wordpress-5.5.1/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #3 /wordpress-5.5.1/wp-admin/admin.php(175): do_action(‘admin_init’)
    #4 /wordpress-5.5.1/wp-admin/index.php(10): require_once(‘/wordpress-5.5….’)
    #5 {main}
    thrown in /dom6056/wp-content/plugins/buddypress-xprofile-custom-fields-type/bp-xprofile-custom-fields-type.php on line 155

    I went ahead and commented out line 155 of the plugin file wp-content/plugins/buddypress-xprofile-custom-fields-type/bp-xprofile-custom-fields-type.php

    //$notices[] = __(‘BuddyPress Xprofile Custom Fields Type plugin needs <b>BuddyPress 2.5</b>, please install or upgrade BuddyPress.’, ‘bxcft’);
    This seems to allow the dashboard to load but you will want to get in touch with the plugin developer for any additional information or consider looking into replacing the plugin.”

    ——

    I’d like to attach a screenshot of the relevant plugins but can’t see how to do that???

    Thanks
    Judy

    #313800
    Bitclu Inc
    Participant

    Hello

    Go through this link https://www.wpbeginner.com/plugins/how-to-change-author-url-slug-and-base-in-wordpress/

    And you will know how this works.

    #313793
    iamthewebb
    Participant

    Hi @reubenclosbanos,
    I think this is the same bug as reported https://buddypress.trac.wordpress.org/ticket/8347
    There is a patch file on that link to correct this which you may wish to try or a new version of BuddyPress (6.3.0) should be released on September 14th that includes this fix.

    Unknown
    Participant

    Some of my users encounter this statement “”There has been a critical error on your site.”, when they create groups. Although when they refresh it and click on their profile the group is created. This is the error found.
    [11-Sep-2020 07:12:01 UTC] PHP Fatal error: Uncaught Error: Class ‘PHPMailer’ not found in /srv/htdocs/wp-content/plugins/buddypress/bp-core/classes/class-bp-phpmailer.php:91
    Stack trace:
    #0 /srv/htdocs/wp-content/plugins/buddypress/bp-core/bp-core-functions.php(3233): BP_PHPMailer->bp_email(Object(BP_Email))
    #1 /srv/htdocs/wp-content/plugins/buddypress/bp-groups/bp-groups-notifications.php(365): bp_send_email(‘groups-invitati…’, 102044344, Array)
    #2 /srv/htdocs/wp-content/plugins/buddypress/bp-groups/classes/class-bp-groups-invitation-manager.php(55): groups_notification_group_invites(Object(BP_Groups_Group), 102044344, 102044348)
    #3 /srv/htdocs/wp-content/plugins/buddypress/bp-core/classes/class-bp-invitation-manager.php(197): BP_Groups_Invitation_Manager->run_send_action(Object(BP_Invitation))
    #4 /srv/htdocs/wp-content/plugins/buddypress/bp-groups/bp-groups-functions.php(1718): BP_Invitation_Manager->send_invitation_by_id(1178)
    #5 /srv/htdocs/wp-content/plugins/buddypress/bp-groups/actions/create.php(139): groups_send_invites(Array)
    #6 /wordpress/core/5.5.1/wp-includes/class-wp-hook.php(287): groups_action_create_group(”)
    #7 /wordpress/core/5.5.1/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
    #8 /wordpress/core/5.5.1/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #9 /srv/htdocs/wp-content/plugins/buddypress/bp-core/bp-core-dependency.php(353): do_action(‘bp_actions’)
    #10 /wordpress/core/5.5.1/wp-includes/class-wp-hook.php(287): bp_actions(”)
    #11 /wordpress/core/5.5.1/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
    #12 /wordpress/core/5.5.1/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #13 /srv/htdocs/wp-content/plugins/buddypress/bp-core/bp-core-dependency.php(430): do_action(‘bp_template_red…’)
    #14 /wordpress/core/5.5.1/wp-includes/class-wp-hook.php(287): bp_template_redirect(”)
    #15 /wordpress/core/5.5.1/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
    #16 /wordpress/core/5.5.1/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #17 /wordpress/core/5.5.1/wp-includes/template-loader.php(13): do_action(‘template_redire…’)
    #18 /wordpress/core/5.5.1/wp-blog-header.php(19): require_once(‘/wordpress/core…’)
    #19 /wordpress/core/5.5.1/index.php(17): require(‘/wordpress/core…’)
    #20 {main}
    thrown in /srv/htdocs/wp-content/plugins/buddypress/bp-core/classes/class-bp-phpmailer.php on line 91

    I hope someone can help me with this. This is a link to my site https://getaprofessor.com/

    #313779
    Mathieu Viet
    Moderator

    Hi @neets1604

    Thanks for your feedback and thanks for using BuddyPress for 3 years. This email issue happens in BuddyPress because some custom code is overriding our PHPMailer class, that’s the reason why we haven’t identified this issue during our beta release period.

    I’d like to remind you it’s important when users have specific configurations that they gives us a hand to identify these cases during the BuddyPress beta release periods: we cannot test all Themes, all plugins extending BuddyPress and all users specific configurations.

    There’s a plugin to make it easier to test our beta releases, I’d advise you to use it on a staging site to contribute to the project.

    Finally, the upgrade that will fix this issue will be available for download next monday.

    Mathieu Viet
    Moderator

    Hi @alexhal

    The 6.3.0 milestone still has issues to fix see: https://buddypress.trac.wordpress.org/query?status=reopened&status=assigned&status=reviewing&status=new&status=accepted&group=status&milestone=6.3.0

    We’ll try to fix them and package the 6.3.0 release early next week, but please understand the Members of the BuddyPress Core Team are volunteers that freely give their time to the BuddyPress open source project and do their best for all BuddyPress users.

    Thanks in advance for your understanding.

    #313774
    havealookhere
    Participant

    Hello,

    After reading I think all of the forum post about this matter till ten years ago the issue I have is driving me nuts.

    I want to have the possibility to remove the sidebar on certain buddypress pages. Especially from the members page.

    So first I went into the page in the wordpress dashboard and switched the setting no sidebar on. When the page is not connected to a buddy press page the sidebar is gone. But, when i connect it to a buddypress page like members then the sidebar is back. I tried several setting, like full width, no sidebar, etc but everytime I make it a buddypress page in the buddypress settings the sidebar is back.

    Then I tried to make a child theme. I did put the buddypress nouveau part in the child theme, copied the members/index.php and members/members-loop.php into the sidebar. I saw this in the buddypress forum off two years ago. Then when editing the files, there is not a call to a sidebar so i cannot remove it.

    The index.php looks like this:

    <?php bp_nouveau_before_members_directory_content(); ?>
    
    	<?php if ( ! bp_nouveau_is_object_nav_in_sidebar() ) : ?>
    
    		<?php bp_get_template_part( 'common/nav/directory-nav' ); ?>
    
    	<?php endif; ?>
    
    	<div class="screen-content">
    
    	<?php bp_get_template_part( 'common/search-and-filters-bar' ); ?>
    
    		<div id="members-dir-list" class="members dir-list" data-bp-list="members">
    			<div id="bp-ajax-loader"><?php bp_nouveau_user_feedback( 'directory-members-loading' ); ?></div>
    		</div><!-- #members-dir-list -->
    
    		<?php bp_nouveau_after_members_directory_content(); ?>
    	</div><!-- // .screen-content -->
    
    	<?php bp_nouveau_after_directory_page(); ?>
    

    the only reference to the sidebar is <?php if ( ! bp_nouveau_is_object_nav_in_sidebar() ) : ?>

    When I delete this it breaks the website.

    Now I am stuck on this. I think it is not that diffucult but some way some how i cannot find the way to remove the side bar.

    So please… please can someone point me in the right direction?? I use the Astra theme!!

    #313769
    Tim
    Participant

    A new member joined in a Group. I replied to this welcoming her. She attempted to reply and received an error message.

    The message appears below the Post button and simply states: There was an error posting your reply. Please try again.

    She has tried multiple times and receives the same message. I have tried to recreate the error and cannot. She did send me a screenshot if it is needed.

    Any ideas what is causing the problem?

    BuddyPress Version 6.2.0
    WordPress Version 5.5.1

    alexhal
    Participant

    Again a helpless response,
    the issue with wordpress 5.5 , if we downgrade to any version its not going to fix .
    Do we need to tell the customers to downgrade the wordpress ?????????????????
    Do you understand the situation we are in now?
    Absolute need of a small update for our customers.

    #313746
    judymacmahon
    Participant

    Hello
    I’m using 2.6.0 BuddyPress and 5.5.1 WordPress
    I CAN NOT upload profile photos – extended profile.
    The EDIT PROFILE PHOTO link will not open.

    Code looks like this:
    <
    a href=”#TB_inline?width=800pxpx&inlineId=bp-members-avatar-editor&width=641&height=526″>Edit Profile Photo<
    /a>

    Urgent assistance appreciated.
    Judy

    mq15
    Participant

    Hello there,
    As we install BuddyPress, regardless of the theme, two new widget areas appear namely:

    BuddyPress Member’s Home, and
    BuddyPress Group’s Home.

    For me, no widget placed in these widget areas appears.

    WordPress, BuddyPress and GeneratePress (theme) are all updated to latest versions.

    Please help.

    Best Regards.

    #313720
    agizzie
    Participant

    Latest versions:
    WordPress
    BuddyPress
    Twenty Seventeen theme

    Is there a way of adding a label or badge to users avatars according to their member types so when avatars are in a list you can see form their badge what member tyoe they are. Like the image below…
    avatar badge

    ThomDJ
    Participant

    Hi there,

    I have 8 private groups, each with their own private forum. Is there any way I can display forum activities like replies and created topics in the group activity stream? I would like to use ‘BuddyPress Group Email Subscription’ plugin to notify group members on forum activity relevant to their group.

    WordPress version: 5.5.1
    BuddyPress version: 6.2.0
    bbPress version: 2.6.5

    Thanks!

    #313658
    shanebp
    Moderator

    I confirm the OP’s description of the issue.
    I have opened a ticket.

    mjajmom
    Participant

    When composing a message to more than one user, we get an immediate error message that says “There has been a critical error on your website”. The message will still be sent and you can find it in your sent folder. However, it does not send the copy to the user’s personal email. Sending a message to one single user works fine (with no error message and a copy sent to the user’s personal email).

    Everything was working fine until we updated to BuddyPress 6.2.0 and WordPress 5.5. We also run a highend theme.

    Advice please.

    King Ding
    Participant

    Hello!

    Could someone perhaps help me adapt this code? Currently it shows a copy of all blog comments in the activity feed. I want it to rather show copies of learndash lesson comments to their associated course group. There is a plugin that does this, but it’s glorified with many other features, and the feature that I would like for doesn’t work as it should anyways.

    /* Post Comments in Buddypress Activity */
    function bca_record_activity($comment_id, $approval) {
        if($approval == 1) {
            $comment = get_comment($comment_id);
            $userlink = bp_core_get_userlink($comment->user_id);
            $postlink = '<a href="' . get_permalink($comment->comment_post_ID) . '">' 
                            . get_the_title($comment->comment_post_ID) . '</a>';
     
            bp_activity_add(array(
                'action'            => sprintf( __( '%1$s commented on the lesson: %2$s', 'buddypress' ), 
                                                    $userlink, $postlink),
                'content'           => $comment->comment_content,
                'component'         => 'bp_plugin',
                'user_id'           => $comment->user_id,
                'type'              => 'new_blog_comment',
            ));
         
        }
    }
    //comment_post is triggered "just after a comment is saved in the database".
    add_action('comment_post', 'bca_record_activity', 10, 2);
    // We want activity entries of blog comments to be shown as "mini"-entries
    function bca_minify_activity($array) {
        $array[] = 'new_blog_comment';
        return $array;
    }
    add_filter('bp_activity_mini_activity_types', 'bca_minify_activity');
    // Disables comments on this type of activity entry
    function bca_remove_commenting($can_comment) {
        if($can_comment == true) {
    		$can_comment = ! ('new_blog_comment' == bp_get_activity_action_name());
        }
        return $can_comment;
    }
    add_filter('bp_activity_can_comment', 'bca_remove_commenting');

    Plugin I reference: https://wordpress.org/plugins/buddypress-learndash/

    Your time and support is greatly appreciated!

Viewing 25 results - 1,351 through 1,375 (of 22,682 total)
Skip to toolbar