hello,
i would like to use the imagemenu on the profile page and i would like to make a link to /user/(user uid)/edit what for parameter would i need to use.

Also i would like to use the imagemenu with Forum and create a link to node/add/forum/(the forum the user just came from)
how might i do this?

Comments

voughndutch’s picture

subscribe. need to link to each users unique profile page from imagemenu. why is this not possible?!?!?

cafuego’s picture

Drupal doesn't do that by default, afaik. Whenever I need to do this, I create a module that implements hook_menu and create a menu item that redirects users to the callback path to edit their profile, then pop that menu item where I need it.

function mymodule_menu() {
  $items['profile-edit'] = array(
    'title' => t('Edit profile'),
    'description' => t('Edit your user profile'),
    'page callback' => 'mymodule_callback',
    'access callback' => 'user_is_logged_in',
    'type' => MENU_CALLBACK,
  );
  return $items;
}

function mymodule_callback() {
  drupal_goto('user/'. $GLOBALS['user']->uid .'/edit');
}

With that, a user hitting /profile-edit is redirected to their profile and anonymous users get 'access denied'.

pobster’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closing as D6.x is now unsupported.