I've been using usernodes for a long time now, as they easily integrate with Views, to create userlists.
But I have no need for any usernode content, I wanted to link usernode things directly to the user profile page, where all the profile data is stored and shown.

So I wanted to redirect a usernode directly to the user profile page, which seems to be extremely easy:

1. Create a file node-usernode.tpl.php in your theme directory (where your node.tpl.php is located.
2. Put the following code in it:

	drupal_redirect_form(array(), "user/$uid");

3. Every usernode will now redirect to its corresponding user profile page.

I hope anyone benefits from this short snippet, which doesn't alter the drupal core.

Comments

msteudel’s picture

This worked great thanks!

SabbeRubbish’s picture

You are welcome ;)