Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)

  • Koka boka
    Participant

    @koka777

    Hello @imath, I have reviewed everything once again and concluded that the problem was with the BuddyPress Default Data plugin that I use to add demo content. As you mentioned earlier, if you create a group manually, the join and leave buttons in that group work correctly. Meanwhile, groups created using the BuddyPress Default Data plugin give an error – “Error joining this group.” Also, I reverted to version 12.5.1, where all groups can be joined and left without problems. Therefore, I conclude that the BuddyPress Default Data plugin is not compatible with the latest version.


    Koka boka
    Participant

    @koka777

    Hello, thank you for your work. I just started testing BuddyPress 14.0.0-RC1 To immediately clarify and rule out any issues related to my theme, I checked everything again using the Twenty Twenty-Four theme with all third-party plugins disabled. In fact, in version 14.0.0-RC1, it is impossible to join groups from the group listing page; an error occurs – “Error joining this group.” From the group page, pressing the join button elicits no response.


    Koka boka
    Participant

    @koka777

    Hello @serranospc, if I understand you correctly, to implement this, you will need to create a suitable plugin that can meet your needs. However, if you do not have enough skills, consider the option to implement it with the help of such plugins:

    Woocommerce vendor dashboard
    WC Vendors
    YITH WooCommerce Multi Vendor
    Dokan Vendor dashboard


    Koka boka
    Participant

    @koka777

    Hello @kkjdroid. I’m not sure I understood you correctly. Still, I made some changes, try it.
    https://pastebin.com/FR6CGk0Y


    Koka boka
    Participant

    @koka777

    Plugin Updated.

    == Changelog ==

    = Version 1.0.2 =
    * Updated security
    * Updated the notification view so that the entire post text is not added to the notification.
    * Updated styles


    Koka boka
    Participant

    @koka777

    Hi @vocational, thanks for your feedback. I will definitely take your feedback into account and update the plugin in the near future.
    I also want to inform you that after verification it will be available in the repository WordPress.


    Koka boka
    Participant

    @koka777

    Hello, I recommend that you familiarize yourself with the Gamipress plugin, it will add the functionality you need. There is also a Mycreed plugin, which, as far as I know, has the same functionality as the previous plugin.
    With the help of these plugins, you will be able to provide the desired functionality.


    Koka boka
    Participant

    @koka777

    Hello, I’m sorry that it’s a little off topic, but I don’t know where to dig anymore, I’m trying to attach hashtags to the activity feed. I created a separate page and am trying to call the template entry.php its download is not displayed correctly!
    For some reason, the styles are not loaded correctly. I have added screenshots.
    https://prnt.sc/jEms0Zul8TVY
    https://prnt.sc/Roy5fmcWPZCV
    And here is the page code itself:

    <?php
    /*
    Template Name: Hashtag Page
    */
    
    get_header(); ?>
    
    <div class="activity" data-bp-single="<?php echo esc_attr( bp_current_action() ); ?>">
    
        <?php
        if ( isset( $_GET['tag'] ) ) {
            $hashtag = sanitize_text_field( $_GET['tag'] );
            echo '<h1>Hashtag : #' . esc_html( $hashtag ) . '</h1>';
    
            // Використання BP_Loop для отримання активностей
            if ( bp_has_activities( array( 'search_terms' => '#' . $hashtag ) ) ) : ?>
                <ul id="activity-stream" class="activity-list item-list bp-list" data-bp-list="activity">
                    <?php while ( bp_activities() ) : bp_the_activity(); ?>
                        <?php bp_get_template_part( 'activity/entry' ); ?>
                    <?php endwhile; ?>
                </ul>
            <?php else : ?>
                <p>Hashtag.</p>
            <?php endif;
        } else {
            echo '<p>Hashtag.</p>';
        }
        ?>
    
    </div><!-- #primary -->
    
    <?php
    get_footer();
    ?>

    I will be glad for any suggestion.


    Koka boka
    Participant

    @koka777

    Hi @imath
    Thanks for the help!
    Maybe you can suggest something with this. I want to add a counter of new posts from the activity feed to the custom menu.
    I put it in functions.php but didn’t get any results. With my meager knowledge, I did not succeed. I can’t figure out how to add a counter to my custom menu.
    P.S I’m not sure that the code itself is workable!

    Here on the forum I was offered the following code:

    <?php
    function bp_update_last_visit() {
    if (is_user_logged_in()) {
    update_user_meta(get_current_user_id(), 'last_visit', current_time('mysql'));
    }
    }
    add_action('wp_login', 'bp_update_last_visit'); 
    add_action('wp', 'bp_update_last_visit'); 
    ?>
    <?php
    function bp_get_new_activity_count() {
    $last_visited = get_user_meta(get_current_user_id(), 'last_visit', true);
    $args = array(
    'action' => 'new_post', // Adjust based on the actions you want to count
    'since' => $last_visited, // Filter activities since the last visit
    );
    
    // Query BuddyPress activity with arguments
    $activities = new BP_Activity_Query($args);
    return $activities->get_total();
    }
    ?>
            <?php
            function add_activity_notification_count() {
    $count = bp_get_new_activity_count();
    if ($count > 0) {
    echo '<span class="activity-notification-count">' . $count . '</span>';
    }
    }
    add_action('bp_menu', 'add_activity_notification_count');
      ?> 

    Koka boka
    Participant

    @koka777

    Hello,
    Please help, by default the user profile page is based on the page.php template from my theme.
    Is there any possibility to redirect it to another? (custom-page.php)


    Koka boka
    Participant

    @koka777

    Thanks for the help! For some reason, I didn’t think to look into the settings.


    Koka boka
    Participant

    @koka777

    Hi @imath
    Thank you for your support, as you wrote above the problem was in the template! I fixed it as recommended and everything worked!

    I want to add that today I managed to test two dozen third-party plugins and half of them stopped working properly with the 12.0.0 update, so the problem is not with BuddyPress but with third-party developers who have not prepared for this update!


    Koka boka
    Participant

    @koka777

    Hi,
    I activated this plugin before upgrading to 12.0.0!


    Koka boka
    Participant

    @koka777

    Hi, after updating to 12.0.0 I see an error:

    Deprecated: Function bp_core_retain_legacy_widgets is deprecated since version 12.0.0 with no alternative available. in /wp-includes/functions.php on line 6031

    Can you tell me how to fix it?

Viewing 14 replies - 1 through 14 (of 14 total)
Skip to toolbar