By shrill on
Hi all. Drupal 5.20.
I have a link on my sidebar (within a Members menu) to http://www.mysite.com/user rather than the login box. Once the user logs in, they are presented with their profile and the menu changes to reflect their Inbox, Create Content etc,. At the top of the profile, they can click a link to edit. However, there is not a link in the menu to edit their account, so once they navigate away from that page, they have to logout/ login again to change things.
How can I add a link in this menu to the main profile page for use once logged in?
Thanks,
Shrill
Comments
=-=
simply create a link to /user or enable the myaccount menu item that is a default menu item in core.
Drupal is smart enough to know what to do with /user and adds the appropriate UID to the path /user/#
where # is the uid of the user clicking.
Hi, I have this
And it does what is should. But the edit link is at the top of the initial profile screen that users get when they first login (as a tab). It disappears after that so if a user navigates away, they can't get back. I would like to have it show up as a menu item as well, but I don't want to make a new menu.
Thanks,
Cheryl
=-=
not sure how you will pull that off.
user/%/edit maybe ? (untested)
Very strange
When I add the menu item under my "Members" (aka post login link) directory, it doesn't show up at all. When I add it to another directory with user/whatever, it doesn't show up. When I add it with users/whatever it does (but of course, it doesn't work).
Basically I want to do what drupal.org does but I don't want to use tracker unless I can make it so that people can only see their own content (and I can't see a way to do that).
Thoughts?
Shyrill
link to edit account page
i tried to do something similar, but couldn't get it work so far. still need help.
i created a blog with the following php code in the body:
print l('Edit Account','user/' . '$user->uid' . '/edit');it doesn't work. i'm new with php and drupal and just started changing another code that
leads to the user profile page which i tested and it works:
print l('My profile','user/'.$user->uid);it would be great if someone could help me out with that:) i was sitting on it for quite a while now.
honorfield
looks like a common question
This page has some decent answers
http://drupal.org/node/356223