BuddyDev

Search

[Resolved] Page Instead of Profile: Recent Visitors For BuddyPress Profile

  • Participant
    Level: Master
    Posts: 171
    JohnnyNW on #28360

    I have an odd question. Is there a way to flip this plugin ‘Recent Visitors For BuddyPress Profile’ to actually show up on a post page?

    So, if there is a post, it would show recent visitors who read that post?

    Thank you.

    JJ

  • Participant
    Level: Master
    Posts: 171
    JohnnyNW on #28361

    Clarification: if there is a post, it would show recent members who visited the post?

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #28364

    Hi JJ,
    Thank you for the question.

    The plugin only tracks for user’s profile visit and is incapable of tracking other types.

    Though it is possible to achieve similar result by keeping a list of user ids in post meta, It might not be good idea if you want to let user’s see which post they visited.

    If you only need to show it on the post/page screen, I can ask one of my team mate to put a few lines for custom code for this.

    Regards
    Brajesh

  • Participant
    Level: Master
    Posts: 171
    JohnnyNW on #28369

    Yes! Please that would be amazing – to see who is viewing post. Basically, it allows author of post to see which members (users) visited their post.

    But, even if it’s not for just author of post, and just the post itself showing which members (users) visited that post, would still be very, very cool.

    Thank you so much.

    JJ

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on #28484

    Hello JJ,

    Please check the following plugin. It allows recording logged in visitors for selected post types and let me know if it works or not.

    Plugin Url:
    https://github.com/buddydev/recent-post-visitors

    Regards
    Ravi

  • Participant
    Level: Master
    Posts: 171
    JohnnyNW on #28485

    Will do. Test it right now on my localhost server and see what happens before moving it to live server.
    THANK YOU!!!

  • Participant
    Level: Master
    Posts: 171
    JohnnyNW on #28486

    Working great! I noticed on line 117 and 118 of class-admin-settings.php both have ‘Before content’, so I changed the one on line 118 to ‘After content’.

    I had to make a few changes:

    Line 20 of recent-vistors.php I added <div class=”show-recent-viz”>Recent Vistors To Script Post</div>

    Then added some CSS:

    .show-recent-viz {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 20px;
    border-bottom: 1px solid #ccc;
    }
    .rp-visitors-recent-members-list {
    margin-bottom: 20px;
    }

    Now it looks great!

    THANK YOU!!!!!!!!!!

    1 question: how many people will it show in this members list?

    Thank you so much!

    PS no display errors, no php log errors, etc. 🙂

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on #28489

    Hello JJ,

    Thank you for the acknowledgement. I have modified the plugin to apply a limit to no. of users. Please give it a shot.

    Regards
    Ravi

  • Participant
    Level: Master
    Posts: 171
    JohnnyNW on #28491

    Okay…will give it try.

    Thanks!

  • Participant
    Level: Master
    Posts: 171
    JohnnyNW on #28495

    It’s working perfectly! THANK YOU SO MUCH.

    Are you selling this plugin? How much?

    Thank you!

    PS I tried the range of 1 vs say 5 users to show on post (members who have visited post) and it works exactly as expected. 🙂

    • This reply was modified 4 years, 8 months ago by JohnnyNW.

You must be logged in to reply to this topic.

This topic is: resolved