Hello there!

It would be nice to have one or more view filters to show more infos about the latest visitors. In my case I have a custom userprofile nodetype. So every information is stored within this nodetype. I just want to show additional infos like avatar or gender.

I don't know if it is possible but a filter like "user visits: author viewed my profile" would be great. Than I could show just more information.

Greetings

CKIDOW

Comments

sanduhrs’s picture

I don't have the time to do so atm, sorry.
If it's just for displaying additional information in a user's profile node, then you may implement this via themeing.

You may use something like:

$visitors = user_visits_latest($account->uid);
if (is_array($visitors)) {
  foreach ($visitors as $visitor) {
    $user_account = user_load(array('uid' => $visitor->vuid));
    $output .= theme('user_visits', $user_account, $visitor->visit, $visitor->referer);
  }
}

Also see http://drupal.org/node/11816 and #159370: user visit and user_profile.tpl.php

ckidow’s picture

No it should not be shown within a user's profile node... it should be shown everywhere in any tpl.php and should load several variables from the custom user's profile node like $avatar or something I added by CCK. :)

sanduhrs’s picture

Just as I said, no time for developing it, atm.
But shurely will accept patches.

dropchew’s picture

+1 subscribe for D6. Thanks

sanduhrs’s picture

Version: 5.x-1.2 » 7.x-1.x-dev
Issue summary: View changes

Bumping version.

sanduhrs’s picture

Version: 7.x-1.x-dev » 2.0.x-dev
Status: Active » Fixed

The module has views integration in the latest version.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.