Hi nodestroy...it's me again =) I was using the "shortest route" feature fine within user profiles. Since then I needed to switch from profile.module based profiles to usernode.module profiles so I have the ability to offer one-click privacy option for the users buddy list - private_nodes provides this feature for the buddy api (through a patch).

The pitfall...shortest route block doesn't seem to like being inside a usernode. Would it be hard to include this support? Or alternatively could you maybe tell me which code I could add in a block which together with some correct argument handling would offer support for "Shortest Route" in usernodes?

I think something like the folowing argument code in a block would support the block to be recognized by a node:

if (arg(0) == 'node' && is_numeric(arg(1))  && ! arg(2)) {
    $node = node_load(arg(1));
    $uid = $node->uid;
    }
$user = user_load(array('uid' => $uid));

I'm quite inexperienced so I would really appreciate the help as I'm not able to figure this out myself :(

Thanks in advance,

Marius

Comments

avpaderno’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

I am closing this issue as it's for a Drupal version that isn't supported.I am closing this issue as it's for a Drupal version that isn't supported.