Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

How to fix a issue with the recent visitors plugin

  • Participant
    Level: Enlightened
    Posts: 60
    Alex on #55881

    Hi, I am using the recent visitors plugin from you.
    The plugin throws a notification if a user visits someone else. Today I saw that it still shows notifications of deleted users. If I click on notifications at the buddypress user profile settings it shows all notifications of this user. And at the ones where the users have been deleted it shows “has visited your profile”.

    How can I fix this? Either show “A deleted user has visited your profile” OR doesnt show this notifications at all.

  • Participant
    Level: Enlightened
    Posts: 60
    Alex on #55882

    I also saw that the plugin still shows “visitors (1)” on the tab at the settings page even if this visitor is already deleted. Any fix for that as well?

  • Keymaster
    (BuddyDev Team)
    Posts: 25249
    Brajesh Singh on #55886

    Hi Alex,
    Thank you for reporting the issue.

    Please allow us 2 working days to test/fix and offer a solution.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25249
    Brajesh Singh on #55895

    Hi Alex,
    Hope you are doing well.

    I am sorry, we could not test and release any update by now. I will have it updated by coming Monday(1st December).

    Thank you for your patience.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 60
    Alex on #55900

    Looking forward to it.

  • Keymaster
    (BuddyDev Team)
    Posts: 25249
    Brajesh Singh on #55904

    Thank you for your patience.

  • Keymaster
    (BuddyDev Team)
    Posts: 25249
    Brajesh Singh on #55920

    Thank you for your patience.

    We are releasing an update within next 24 hours. It contains to changes:-

    1. In future, on user delete, we delete related notifications.
    2. For existing notifications(orphaned), It shows Deleted user

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25249
    Brajesh Singh on #55924

    Hi Alex,
    Thank you for your patience.

    Can you please upgrade to 1.8.9 and let me know if it works for you or not?

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 60
    Alex on #55931

    Thanks.
    Please confirm that the issue with the wrong number “visitors (1)” at the tab – (but should be “visitors (0)” if the visitor has been deleted) – is fixed as well.

    I also would like to ask if you have any plans for pagination support. At the plugin’s backend it says not supported “at the moment”.

  • Keymaster
    (BuddyDev Team)
    Posts: 25249
    Brajesh Singh on #55932

    Hi Alex,
    Thank you for the reply.

    1. Our plugin already has the code to delete users(fix count) when a user is deleted. The only reason for inconsistent count would if if this plugin was deactivated when a user got deleted. The fucntion visitors_delete_visits_on_user_delete deleted from visitors table and user meta when a user is deleted.

    The only way to fix it would be to use custom code and run it once. would you like that?

    2. I am sorry, I have tried it multiple times and the problem is limitation of BP Nouveau:-
    To support pagination, We have the following choices when BP Nouveau template it active:-

    – Use custom members loop template, we are using the default template(letting BuddyPress choose if it comes from theme or plugin). If we did that, the plugin will cause layout issues with themes which have their own cusotm loops.

    – Or load all visitors on the page(without pagination)

    Pagination is a real problem with Nouveau if we try to be compatible with default and it needs changes upstream(in pagination code).

    Would you like me to suggest minor template override to achieve it?

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved