Is there a way to show inside each profile (or in a block that only shows there), all other users that are queued the same way that the profile´s owner? (not the current user, but the profile´s).
Thanks!!

Rosamunda

Comments

xmattus’s picture

Not per se in the module, but this wouldn't be terribly hard to do in a theme (esp. in user-profile.tpl.php), i.e.

$account = ... // set to current user however you prefer
$qid = 1; // or something
$queue = userqueue_load($qid);
$users = userqueue_get_users($queue);
$list = array();
foreach ($users as $uid => $u) {
  if ($account->uid != $uid) {
    $list[] = l($u, 'user/' . $uid);
  }
}
print theme('item_list', $list);

Feel free to extrapolate.

Rosamunda’s picture

Status: Active » Closed (fixed)

Thanks Matt!
I´ll try it out!