User Profile Quick Jump Macro

Description

Allows to quick jump to a user profile based on its id. The macro provides a text area and a Go! button which redirects to the user profile.

Installation

To install the macro:

  1. go to Administration -> User Macros
  2. create a new user macro called user-profile-quick-jump and uncheck Macro has a body
  3. Enter the following in the Template field (make sure to rename the http://yourconfluenceinstallation to your confluence local installation base URL:
<SCRIPT LANGUAGE="JavaScript"><!--
function goToProfile(object) {
  var userId = document.urlForm.userId.value
  var location = ("http://yourconfluenceinstallation/~" + userId);  
  window.location.href = location;
}
//--></SCRIPT>
<form name="urlForm">
<input name="userId" type="text"> 
<input type="button" name="Button" value="Go!" onClick="goToProfile(this)">
</form>

To do

It would be nice to invoke the goToProfile function when the user hits ENTER in the text area.

Labels

macro macro Delete
confluence14 confluence14 Delete
confluence20 confluence20 Delete
confluence21 confluence21 Delete
confluence22 confluence22 Delete
repository_excluded_by_user_macro repository_excluded_by_user_macro Delete
plugin plugin Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Aug 11, 2006

    Tomasz Prus says:

    I think url should be changed to "http://yourconfluenceinstallation/display/~"

    I think url should be changed to "http://yourconfluenceinstallation/display/~"