Forum Replies Created

Viewing 15 replies - 31 through 45 (of 146 total)
  • Plugin Author wpdever

    (@wpdever)

    Hi,

    I don’t see a way to join this plugin’s notifications with the BuddyBoss ones. Maybe you can keep the BuddyBoss one for their notifications and use the widget in this plugin for the Dokan and other notifications…

    Plugin Author wpdever

    (@wpdever)

    Hi,

    Are you able to see the submenu (the menu on the side with “All Notification”, “Add new”…)?

    Can you share a screenshot of the page with this error?

    Plugin Author wpdever

    (@wpdever)

    Hi,

    What method are using to display the bell (add to menu, shortcode…)?

    You can also send me the link of the website and test user info to access that part here: [email protected] if you’d like.

    Plugin Author wpdever

    (@wpdever)

    Hi,

    Which type of notifications did you try (new posts, new comments…)?

    Plugin Author wpdever

    (@wpdever)

    Hi,

    You can try the solution offered here https://ww.wp.xz.cn/support/topic/customize-date-display/

    It should still work, but let me know if it does or doesn’t.

    Plugin Author wpdever

    (@wpdever)

    What plugin is generating the support tickets and the bookings? And is it possible to get the urls associated with the comments, as well as the booking urls associated with the order (if maybe those plugins provide a function to do so)?

    Plugin Author wpdever

    (@wpdever)

    Hi,

    When it does not redirect correctly but not to a blank page, where does it redirect it to?

    Plugin Author wpdever

    (@wpdever)

    Hi,

    I’m unable to replicate the issue, the comments and posts are ordered correctly on my side. Do you have the latest version of the plugin, and if so, did you have this problem before, or only after updating?

    Plugin Author wpdever

    (@wpdever)

    Can you try to update again? The newest version does not seem to have been distributed on time.

    Plugin Author wpdever

    (@wpdever)

    Hi,

    There are hooks that might help you achieve that like “wnbell_user_notifications_array”, “wnbell_user_notifications_output”, or “wnbell_add_unseen”. There’s no documentation right now, but you can check the files in the plugin that help integrate with other plugins in the includes folder: woocommerce.php, bbpress.php, buddypress.php. Or if you have any of the addons, they work the same way.

    Plugin Author wpdever

    (@wpdever)

    Hi, I’ve just released another update. Please check if the error is fixed.

    • This reply was modified 3 years, 2 months ago by wpdever.
    Plugin Author wpdever

    (@wpdever)

    Hi,

    In the free version, you can enable custom post types and choose product as the custom post type.
    The paid version would only be necessary if you already have another custom post type to notify about, and need the multiple cpts feature.

    Plugin Author wpdever

    (@wpdever)

    Hi,

    Can you add this to your functions.php file?

    add_action('wnbell_notifications_processed', 'add_last_date');
    function add_last_date()
    {
        $current_user_id = get_current_user_id();
        $time = strtotime("now");
        update_user_meta($current_user_id, 'wnbell_last_seen_date', gmdate('Y-m-d H:i:s', $time));
    }
    
    add_filter('wnbell_notification_count_conditions', 'add_notification_conditions', 10);
    function add_notification_conditions()
    {
        $user_last_seen = get_user_meta($user_id, 'wnbell_last_seen_date', true);
    
        $query = " AND posts.post_date_gmt > '$local_last' ";
    
        return $query;
    }

    Also, I’ll be including this in the next update but I’m not sure when it’ll be so in the meantime, you can go to includes/menu_bell.php file, find the $count_query variable and change it with this:

    $count_query = "SELECT count(*) from (select posts.ID from {$wpdb->prefix}posts AS posts
    LEFT JOIN {$wpdb->prefix}wnbell_recipients_role AS prole ON (posts.ID=prole.notification_id)
    LEFT JOIN {$wpdb->prefix}wnbell_recipients AS pname ON (posts.ID=pname.notification_id)
                WHERE posts.post_type = 'wnbell_notifications'
                AND posts.post_status = 'publish'
                AND posts.ID>%d
                AND (prole.user_role  IN(" . wnbell_escape_array($roles) . ") OR prole.user_role IS NULL)
                AND (pname.usernames IS NULL)";
                $count_query .= apply_filters("wnbell_notification_count_conditions", '');
                $count_query .= " GROUP BY posts.ID ORDER BY posts.post_date DESC LIMIT 100) as subquery;";
    Plugin Author wpdever

    (@wpdever)

    Hi,

    I had misunderstood what you meant before. Unfortunately, there’s no way I can think of to make this happen. All dots if they’re on the same page will always show the same number of notifications as it’s only just one sql query. The filter ‘wnbell_count_notifications’ I mentioned before would only work if there are bells on different pages (I thought earlier each menu item is in a menu in a different page).
    Also, the bell on the page receives only the count number from the server (1 or 0), with no additonal information of what type of posts it’s about, so css classes would not help much.

    Plugin Author wpdever

    (@wpdever)

    Hi,

    I was testing the notifications instead of the posts.

    You can add this in your functions.php file, if it works I’ll add it in the next update (so you can remove it then):

    add_action('transition_post_status', 'wnbelltest_first_publish_time_register', 10, 3);
    function wnbelltest_first_publish_time_register($new, $old, $post)
    {
        if ($new == 'publish' && $old != 'publish' && $post->post_type == 'wnbell_notifications') {
            $firstPublishTime = get_post_meta($post->ID, 'first_publish_time', true);
            if (empty($firstPublishTime)) {
                // First time the post is publish, register the time
                add_post_meta($post->ID, 'first_publish_time', time(), true);
                $time = strtotime("now");
                $my_post = array(
                    'ID' => $post->ID,
                    'post_date' => date('Y-m-d H:i:s', $time),
                    'post_date_gmt' => gmdate('Y-m-d H:i:s', $time),
                );
                wp_update_post($my_post);
            }
        }
    }
Viewing 15 replies - 31 through 45 (of 146 total)