• Resolved 2thautde

    (@2thautde)


    Hi, i’m using ultimate members for wordpress.
    The Plugin workslike this:

    There ist a Global Members page, where all members a shown. If you click on a specific Member the profilie of the member is shown adding the User-Id to the URL e.g. /um-userpage/user1/

    The Problem i’m facing is that the counter works only for the global page (um-userpage/) so the counter is set global for every single profile. It shows 60 visits for User 1 and also visits for user 2.

    My goal is to separete the count for every single user. Any solution for this?

Viewing 1 replies (of 1 total)
  • Plugin Author Steve Truman

    (@a3rev)

    Hello @2thautde

    Is this the plugin that you mean?

    Generally speaking you would need use custom code either in a custom template or if can hook to that member page to show correct for each user page

    For example you could try this code in the template of member page

    `<?php
    $current_member_id = 1; // replace 1 with correct variable of current member
    $stats_key = ‘member-‘ . $current_member_id;
    $display = 1;
    pvc_stats_update( $stats_key, $display );
    ?>’

    That would work but you’d have to disable the default counter from /um-userpage/ page.

    You could try reaching out to the plugin author and asking them how you could hook that code to show the count – or failing that a developer would be able to work it out by reading the code.

    Hope that helps
    Thank you
    Steve

Viewing 1 replies (of 1 total)
  • The topic ‘Count Visits on Users Profile Page’ is closed to new replies.