Downloads
release
dev builds
extras
themes
Documentation
manual
wiki
device status
Support
forums
mailing lists
IRC
Development
bugs
patches
dev guide
Search
Donate
Search
| Go
Wiki
>
System
>
Macros
>
VarUSERINFO
#VarUSERINFO ---+++ USERINFO{"name"} -- retrieve details about a user * Syntax: =%<nop>USERINFO%= * Expands to: <code>%USERINFO%</code> (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: <verbatim class="tml">%USERINFO{ format="$username is really $wikiname" }%</verbatim> * Expands to: =%USERINFO{ format="$username is really !$wikiname" }%= * Retrieve information about another user: * Example: <verbatim class="tml">%USERINFO{ "WikiGuest" format="$username is really $wikiname" }%</verbatim> * Expands to: <code>%USERINFO{ "WikiGuest" format="$username is really !$wikiname" }%</code> %IF{ "{AntiSpam}{HideUserDetails} AND NOT '%WIKIUSER%' ingroup 'AdminGroup'" then="<blockquote class='foswikiHelp'>$percentT$percent You need to be a member of %USERSWEB%.AdminGroup for the =USERINFO= macro to provide details about other users</blockquote>" }%<blockquote class="foswikiHelp">%H% The parameter should be the wikiname of a user. 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. %IF{"{AntiSpam}{HideUserDetails}" then=" _(User details are hidden in this site)_ "}%</blockquote> * Related: [[%IF{"'%INCLUDINGTOPIC%'='Macros'" then="#"}%VarUSERNAME][USERNAME]], [[%IF{"'%INCLUDINGTOPIC%'='Macros'" then="#"}%VarWIKINAME][WIKINAME]], [[%IF{"'%INCLUDINGTOPIC%'='Macros'" then="#"}%VarWIKIUSERNAME][WIKIUSERNAME]], [[%IF{"'%INCLUDINGTOPIC%'='Macros'" then="#"}%VarGROUPINFO][GROUPINFO]], UserAuthentication, ChangeEmailAddress <!--%JQREQUIRE{"chili"}%-->
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
M
ore topic actions
r1 - 19 Sep 2010 - 14:08:06 -
ProjectContributor
Parents:
WebHome
>
Macros
Copyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Wiki?
Send feedback