Profile editing link

blarg - March 21, 2006 - 10:29

I'd like to be able to provide users with a nice url/link to edit portions of their profile from a page they see when they log in. I don't think clicking on My Account > edit > and then finding those little page links is very intuitive. Of course the url in question that I'd like to alias includes their user number.

So how do I provide a link on a page that brings up /user/THEIR_USER_NUMBER/edit/myprofilepage?

PHP Input Method

blarg - March 23, 2006 - 09:51

Using the PHP input method you can get away with:

It would be a good idea to <a href="/user/<?php
global $user;
echo
$user->uid;
?>
/edit">put a picture in your profile</a> if you have one.

So wherever you want that user number just throw the two lines of PHP and voila.

Much appreciated

rubyji - June 10, 2006 - 03:04

Thank you, Blarg. This was just the hack I needed!

 
 

Drupal is a registered trademark of Dries Buytaert.