i am having problem understanding Wolfgang's instructions, especially the usernode one where he says:

"If you want to link to the usernode instead of linking to the old user page
as default you can override the functions theme_username() and
theme_user_picture().
If you use a theme using the phptemplate engine just copy the template.php
file provided with this package to your theme's folder, or if the file
already exists, only append the two functions inside the file to your
existing file."

i have done exactly what he asked but when i click on "My Account", i can't see the fields i created.

Comments

rkj’s picture

Hi jackxwu,

I'm having problems understanding Wolfgang's instructions too. But I think I can explain the problem you're having. If you're using a theme that's using phptemplate, then you can copy over the template.php that comes with the usernode module to the theme directory or append it's contents to an existing template.php. This will replace all occurences of a *username* that formerly linked to the old profile page (user/x) with a username linking to the usernode (usernode/x). That's why it doesn't replace the "my account" link. (At least that's how I think it works...)

But then I have another problem. I have created one content type marked as user profile. I created pages of this type as two different users. Now when I'm logged in, the usernode-pages of both users are showing me a link to my own page instead of to the page of the user in question... And when I'm not logged in, I am not allowed to visit a usernode page at all...

Anyone ideas on how to fix this? Am I doing something wrong or is it a bug/feature?

rkj’s picture

Well, the problem I had seems to be fixed. Don't know exactly what I've done, but when I list all bodies of usernodes now, they all contain the correct links to the profile pages.

Furthermore, a link has appeared in the navigation menu called "my usernode" which might be what you were looking for, jackxwu. Unfortunately I have no idea when or how this happened.