drupalfun.com
Link to users profile
Hi
When I click on the 'My profile' menu link, it takes me to site\content\jason.
When I click on a users link in 'Who's new' or 'Comments', it takes me to site\users\marc. How can I get the users links to point to their profile e.g. site\content\marc ?
Thanks
Jason
Related Questions
Responses
2. This is normal behaviour,
This is normal behaviour, since the username will bring you to the "account" page. That's why we put a teaser "view my profile" link on the my account page.
To change this, I guess you can override a core function that creates the user link in Drupal. I think I read a post about this on drupal.org a while back. I'll need to go look for it again though.
3. can you post please the forum discussions?
Hi dorien, I've the same problem like jason i will all links of drupal pointing to users/name_of_user instead of user/name_of_user
can you please post thoose discussions who speack about this problem?
I'm in desperate search of an help to do this.
thx
4. Me aliases?
I've been researching this problem on the drupal site and several times the Me aliases module came up as a possible solution. So I installed it. But for the life of me I cannot figure out how it works. I've figured out panels, views, og, ubercart etc. but this little thing has me stumped. LOL.
Anyway, if anyone can see a way for this module to help with this problem, let me know. Maybe it can't and that's why I'm stumped. I'm a usability freak and so I can't stand sending people to the My Account page and then have them clicking on the My profile button. I want a clear difference between My Profile and My Account.
This is not a reflection on you Dorien (in fact you rock for creating this ebook!)... you created a workable solution based on the way drupal is set up -- but not what I want to live with if there is a solution.
I'll post this on the forums at Drupal too. I'll post back here if I get a solution there.
5. Hi, The solution is to just
Hi,
The solution is to just use the code snippet given in the ebook. It works perfectly. It just redirects the user to his own profile (not user account as asked in #1).
:-)
6. Not sure I understand
Hi Dorien
I know that the code snippet is used on the button we created to redirect people from the My Account to the Profile. What I have are links all over the the site - lists of members in OG, and other places, that when you click on the link, it sends them to My Account. I want it to send them to the My Profile we created.
Is there a way to do that? Did I miss that in the book?
Thanks
Tamela
7. Hi, I would try to use the
Hi,
I would try to use the profile title as a link as much as you can. This will redirect the user to the profile node.
The Submitted by links on posts might be overridden in the theme I think.
For the rest. I guess you need to override the user/% page also with a panel, but I would not recommend this.
9. snippet from book
on the 40th page Doreen wrote something like this
<?php
global $user;
$myuid= $user->uid;
$node= content_profile_load(profile, $myuid);
//profile above=the name of our content type
$profileid= $node->nid;
print l(’My profile’,’node/’.$profileid);
//l() is a function provided by Drupal that creates a link.
//l(link display text, path after main path)
?>
this should create a link to My profile link. Doreen wrote to put this code in the block. But where in blocks is place for putting this to get such link? I miss something but I don't know where put this code.


1. Maybe I can elaborate...
My links to other members point to their accounts page and not to their profiles.
If I click on a user in the 'Who's new' box, it takes me to site/users/username location which seems to be their account page even though the tooltip said 'View users profile'. How can I get it to link to their profile page instead?
Anyone have this issue before?