WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

YD Profile Visitor Tracker

Description: Social oriented plugin to track who has been visiting your user profile or other page in a BuddyPress or community-oriented WordPress / b

WordPress automatic installation is fully supported and recommended.

The shortcode for displaying a visitors list in a page is as follows:

[yd_visitor_profiles profile_id="1"]

(you can specify any profile ID to get that user's latest visitors list)

The template tag for use in a BuddyPress profile page can be used as follows:

<?php 
if( is_callable( array( 'pvtPlugin', 'display_visitors' ) ) ) {
    global $pvt_o, $bp;
    echo $pvt_o->display_visitors( 
        array( 
            'profile_id'  => $bp->displayed_user->id
         )
    ); 
}
?>

The template for displaying visitors list in a bbPress standalone (without BuddyPress) profile page is as follows:

<?php 
if( is_callable( array( 'pvtPlugin', 'display_visitors' ) ) ) {
    global $pvt_o, $bp;
    echo $pvt_o->display_visitors( 
        array( 
            'profile_id'  => $user->ID
         )
    ); 
}
?>

If $user->ID does not work on the page you want to track, try $user_id instead. There are numerous ways of fetching both the IDs of the visitor and of the visited page owner depending on the setup and where you are in the page.

There are MANY customization parameters available for both the shortcode and template function. Some of them are documented on the plugin's official site... Others will be documented later on as requests come in ;-).

The tracking template tag (if you do not use the auto-tracking feature available in the plugin's setting page) is as follows:

<?php if( is_callable( array( 'pvtPlugin', 'track' ) ) ) pvtPlugin::track(); ?>

If you are in bbPress standalone, here is the tracking tag for a profile page:

<?php if( is_callable( array( 'pvtPlugin', 'track' ) ) ) pvtPlugin::track( array( 'profile_id' => $user_id ) ); ?>

(for any kind of WP or other page you can pass the profile_id the same way, using the profile_id parameter)

There are also some tracking options that will be documented later on.

See the screenshots for advanced integration layouts.

Requires: 2.9 or higher
Compatible up to: 3.1.4
Last Updated: 2011-4-2
Downloads: 9,115

Ratings

4 stars
4 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
50,2,1 50,2,1 100,3,3 100,1,1 100,1,1
100,1,1
100,2,2
0,2,0
0,1,0