(1 vs. 5) VarUSERINFO < TWiki < TWiki

Home - this site is powered by TWiki(R)
TWiki  VarUSERINFO (1 vs. 5)

Welcome | Register | Changes | Topics | Index | Search | Go

 <<O>>  Difference Topic VarUSERINFO (5 - 2012-11-15 - TWikiContributor)
 
META TOPICPARENT name="TWikiVariables"

USERINFO{"name"} -- retrieve details about a user

  • Syntax: %USERINFO%
  • Expands to: guest, TWikiGuest, (comma-separated list of the username, wikiusername, and emails)
  • With formatted output, using tokens $emails, $username, $wikiname, $wikiusername, $groups and $admin ($admin returns 'true' or 'false'):
    • Example: %USERINFO{ format="$username is really $wikiname" }%
    • Expands to: guest is really TWikiGuest
  • Retrieve information about another user:
    • Example: %USERINFO{ "TWikiGuest" format="$username is really $wikiname" }%
    • Expands to: guest is really TWikiGuest
Changed:
<
<
    • Note: The parameter should be the wikiname of a user. Since TWiki 4.2.1, you can also pass a login name. You can only get information about another user if the {AntiSpam}{HideUserDetails} configuration option is not enabled, or if you are an admin. (User details are hidden in this TWiki)
>
>
    • Note: The parameter should be the wikiname of a user. Since TWiki 4.2.1, you can also pass a login name. You can only get information about another user if the {AntiSpam}{HideUserDetails} configuration option is not enabled, or if you are an admin. (User details are hidden in this TWiki)
Added:
>
>
 

 <<O>>  Difference Topic VarUSERINFO (4 - 2007-02-04 - TWikiContributor)
 
META TOPICPARENT name="TWikiVariables"
Changed:
<
<

USERINFO{"WikiName"} -- retrieve details about a user

>
>

USERINFO{"name"} -- retrieve details about a user

 
  • Syntax: %USERINFO%
  • Expands to: guest, TWikiGuest, (comma-separated list of the username, wikiusername, and emails)
  • With formatted output, using tokens $emails, $username, $wikiname, $wikiusername, $groups and $admin ($admin returns 'true' or 'false'):
    • Example: %USERINFO{ format="$username is really $wikiname" }%
    • Expands to: guest is really TWikiGuest
  • Retrieve information about another user:
    • Example: %USERINFO{ "TWikiGuest" format="$username is really $wikiname" }%
    • Expands to: guest is really TWikiGuest
Changed:
<
<
    • Note: The parameter should be the wikiname of a user. You can only get information about another user if the {AntiSpam}{HideUserDetails} configuration option is not enabled, or if you are an admin. (User details are hidden in this TWiki)
>
>
    • Note: The parameter should be the wikiname of a user. Since TWiki 4.2.1, you can also pass a login name. You can only get information about another user if the {AntiSpam}{HideUserDetails} configuration option is not enabled, or if you are an admin. (User details are hidden in this TWiki)
 

 <<O>>  Difference Topic VarUSERINFO (3 - 2007-02-04 - TWikiContributor)
 
META TOPICPARENT name="TWikiVariables"

USERINFO{"WikiName"} -- retrieve details about a user

  • Syntax: %USERINFO%
  • Expands to: guest, TWikiGuest, (comma-separated list of the username, wikiusername, and emails)
Changed:
<
<
  • With formatted output, using tokens $emails, $username, $wikiname, $wikiusername, and $groups:
>
>
  • With formatted output, using tokens $emails, $username, $wikiname, $wikiusername, $groups and $admin ($admin returns 'true' or 'false'):
 
    • Example: %USERINFO{ format="$username is really $wikiname" }%
    • Expands to: guest is really TWikiGuest
  • Retrieve information about another user:
    • Example: %USERINFO{ "TWikiGuest" format="$username is really $wikiname" }%
    • Expands to: guest is really TWikiGuest
    • Note: The parameter should be the wikiname of a user. You can only get information about another user if the {AntiSpam}{HideUserDetails} configuration option is not enabled, or if you are an admin. (User details are hidden in this TWiki)
Changed:
<
<
>
>
 

 <<O>>  Difference Topic VarUSERINFO (2 - 2007-02-04 - TWikiContributor)
 
META TOPICPARENT name="TWikiVariables"
Changed:
<
<

USERINFO - retrieve details about a user (by default the logged-in user)

>
>

USERINFO{"WikiName"} -- retrieve details about a user

 
  • Syntax: %USERINFO%
Changed:
<
<
To format that information differently:
  • Syntax: %USERINFO{format="$username is really $wikiname"}%
  • Expands to: guest is really TWikiGuest.
    • The tokens $emails, $username, $wikiname, $wikiusername, and $groups are available for use in the format string .By default, the info will be formatted as a comma-separated list of the username, wikiusername, and emails.
To get information about another user:
  • Syntax: %USERINFO{"TWikiGuest" format="$username is really $wikiname"}%
  • Expands to: guest is really TWikiGuest
>
>
  • Expands to: guest, TWikiGuest, (comma-separated list of the username, wikiusername, and emails)
  • With formatted output, using tokens $emails, $username, $wikiname, $wikiusername, and $groups:
    • Example: %USERINFO{ format="$username is really $wikiname" }%
    • Expands to: guest is really TWikiGuest
  • Retrieve information about another user:
    • Example: %USERINFO{ "TWikiGuest" format="$username is really $wikiname" }%
    • Expands to: guest is really TWikiGuest
    • Note: The parameter should be the wikiname of a user. You can only get information about another user if the {AntiSpam}{HideUserDetails} configuration option is not enabled, or if you are an admin. (User details are hidden in this TWiki)
Deleted:
<
<
    • The parameter should be the wikiname of a user. You can only get information about another user if the {AntiSpam}{HideUserDetails} configuration option is not enabled, or if you are an admin. (User details are hidden in this TWiki)
 
Deleted:
<
<
 

 <<O>>  Difference Topic VarUSERINFO (1 - 2005-03-27 - TWikiContributor)
 
META TOPICPARENT name="TWikiVariables"

USERINFO - retrieve details about a user (by default the logged-in user)

  • Syntax: %USERINFO%
  • Expands to: =guest, TWikiGuest, =
To format that information differently:
  • Syntax: %USERINFO{format="$username is really $wikiname"}%
  • Expands to: guest is really TWikiGuest.
    • The tokens $emails, $username, $wikiname, $wikiusername, and $groups are available for use in the format string .By default, the info will be formatted as a comma-separated list of the username, wikiusername, and emails.
To get information about another user:
  • Syntax: %USERINFO{"TWikiGuest" format="$username is really $wikiname"}%
  • Expands to: guest is really TWikiGuest
    • The parameter should be the wikiname of a user. You can only get information about another user if the {AntiSpam}{HideUserDetails} configuration option is not enabled, or if you are an admin. (User details are hidden in this TWiki)


View | History: r5 < r4 < r3 < r2 | More

This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.VarUSERINFO.

Revision r5 - 2012-11-15 - 07:17:45 - TWikiContributor Edit

(%REVTITLE2% vs. %REVTITLE1%) VarUSERINFO < TWiki < TWiki