Display Author's username to link to content profile

Events happening in the community are now at Drupal community events on www.drupal.org.
Tamela's picture

Hi
I am using content profile for my profiles. And I have the Display author's username checked in the Acquia Marina theme. I would like the author's username to redirect to their content profile and not to the user account page as it does now. I believe that this will mean getting into the code... but I'm a newbie at PHP so don't know where to start. I've looked at several modules such as ME, Realname and Rules, but none seem to be able to make this work. If there's a way to change it in the code, then I will. Just looking for suggestions.
Thanks!
Tamela

Comments

me too!

redsky's picture

I'm looking to do the same thing, did you figure it out?

.

michelle's picture

You can change it with theme_username but most people simply put the information from content profile on the user page rather than changing all the links to go to the node.

Michelle

I agree with putting the

tommyent's picture

I agree with putting the content profile on the user page. Also depending on your needs it's just technically a node reference

Usability and Customer comfort

Tamela's picture

Thanks for your feedback!

First - How do I use theme_username to change the links? I know just enough php to get me into trouble so explanations are appreciated.

Second - please explain what you mean by "it's just technically a node reference" and how I can use that to reroute people to the content profile.

Third - The suggestion of similar profile fields on content profile & user pages -- Tried that. It made my beta testers really unhappy. They got very lost and confused. There was no consistency.

Why? Well, having most of the member links on the site take the customer to a lovely content profile page (that looks similar to a myspace page, with a wall and personal photo albums) but then having the author links take the customer to a page that looks completely different, an unorganized user page that doesn't have the member's "wall," or other features that can't be shown on a user page (thus, the reason for using the content profile module), causes anxiety for customers.

Right now I have a button on the user page that they can click on to get to the content profile page. But that's ridiculous. Customers should only see one profile for each member and feel confident that they will get to that same profile any time they click on that member's name throughout the site. That's just good usability.

I know this isn't a TNT problem. This is a problem for anyone who uses content profiles. I've seen sites who are using content profile and their author links take them to the correct profile. So I know there is a solution out there somewhere. I'm just looking for any kind of help to fix it. I've seen posts from a lot of others with the same problem.

Thanks again for your help!
Tamela

.

michelle's picture

You can use theme_username by copying this code to your theme, changing it to THEMENAME_username, and editing the code as needed.

I think you missed my point. Your users won't go to two places; they never go to the node. Everything is on the user page, like this: http://couleeregiononline.com/neighbors/michelle . In fact, I take it one step further and redirect from the node to the user page just in case a link to the node gets in there somewhere. Sending them to the user page is a lot less confusing because all the local tabs for various user related items are going to be on the user page, not on the node.

Michelle

The Aha! Moment

Tamela's picture

I see what's happening. I bought a book online on creating a community. It had us create the profiles with Panels using the node/%node page. What I should have done (by what you are saying) was created it in the user/%user page.

I've started doing it and see why the book gave the other way - the node/%node is easier to set up. Building the Panel in node/%node allows access the node content, node comments etc. when bringing in the content from the content_profile. With user/%user, I'll need to make a view of the content_profile information. In fact I will need to use views to do a lot of things that I just brought in easily in the node/%node page. Arrggh!

But then the user links will work correctly all over the site.

Plus, like you mention, using the actual user profile page will have easier access to the other profile information.

Thanks for being patient with me. I hope this helps other who bought the same book.

What is the name of the book

moss.dev's picture

Hi Tamela,

We are creating a comunity site as well and have been hitting hundreds of road blocks.

Could you tell us the name of the book you bought and was it much help with the rest of your project?

How do you rate it?

Thanks
Jon Moss

.

michelle's picture

Building it on the user page is no harder than the node page and is less messy. You just need to set a relationship and get the node context. You might want to try Advanced Profile Kit. Even if you don't end up using the module, you can get an idea of how to do this from that. Or just look at step #4 here: http://drupal.org/node/532558

Michelle

Patch

ChrisLaFrancis's picture

I know this thread is really old, but I submitted patch to RealName that allows direct linking to Content Profiles.

http://drupal.org/node/1649690

TNT Themes

Group organizers

Group categories

Type of post

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: