• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

USERINFO is totally confusing now.

This is the current behavour as I can test my way to.

{AntiSpam}{HideUserDetails} in ON

%USERINFO{"Main.MeMyself" format="$emails"}% is shown as yourself if you are logged in. And the guest account email address of you are not logged in.

%USERINFO{"Main.SomeoneElse" format="$emails"}% is shown as yourself if you are logged in. And the guest account email address of you are not logged in.

{AntiSpam}{HideUserDetails} in OFF and no email address in the Email field on the user form.

%USERINFO{"Main.MeMyself" format="$emails"}% is shown as yourself if you are logged in. And the guest account email address of you are not logged in.

%USERINFO{"Main.SomeoneElse" format="$emails"}% is BLANK when logged in. And the guest account email address of you are not logged in.

{AntiSpam}{HideUserDetails} in OFF and email email address in the Email field on the user form.

%USERINFO{"Main.MeMyself" format="$emails"}% is shown as your secret email address if you are logged in. And the guest account email address of you are not logged in.

%USERINFO{"Main.SomeoneElse" format="$emails"}% is showing the User form email address when logged in. And the guest account email address of you are not logged in.


This took me hours to figure out. This is too complicated to be really useful.

This should be the simpler spec.

{AntiSpam}{HideUserDetails} in ON

%USERINFO{"Main.MeMyself" format="$emails"}% is shown as your email address if you are logged in. And BLANK if you are not logged in. The email address shown is the one from .htpasswd if exists - otherwise email address from form.

%USERINFO{"Main.SomeoneElse" format="$emails"}% ALWAYS SHOWN BLANK. I cannot see the usecase for seing your own address instead. And actually the admins address from TWikiGuest account most of the time - when you are just viewing and not yet logged in.

{AntiSpam}{HideUserDetails} in OFF

%USERINFO{"Main.MeMyself" format="$emails"}% must show your email address. If it is in .htpasswd, then that is what it shows. If not show the one from the user topic form field.

%USERINFO{"Main.SomeoneElse" format="$emails"}% Must show the email address of the other user. If it is in .htpasswd, then that is what it shows. If not show the one from the user topic form field.

Such a simple spec is both more easy to implement, to test, and to understand.

KJL

Yes, this simpler spec is KISS and easy to understand.

It gets a bit more flexible for admins if logged in TWiki admin group members can see the e-mail, regardless of the hide user detail.

-- PTh

I sometimes wonder why I bother updating the doc. From VarUSERINFO:

You can only get information about another user if the {AntiSpam}{HideUserDetails} configuration option is not enabled. Otherwise it is ignored, and information about the logged-in user is returned instead. The parameter should be the wikiname of a user.

I'm sure you could have saved yourself hours if you had read that!

The only difference you are proposing is that USERINFO should return blank if it asks for a different user and that user is not logged in when details hiding is enabled.

CC

I did read the Var topic naturally. What I could not make sense of was that some email addresses showed up that were not the same as in my .htaccess file. It took a while before I realised that it sometimes took the info from the user form. The other thing that played a trick on me was that I saw my own email address when not authenticated. Turned out to be because I am the admin and you saw the admins address because this is TWikiGuests' email address.

And then sometimes the email shown was blank. None of this could be read from the doc. And even if it was it took a small novel to explain it like in the bug report above. You have now simplified how it works. And I am deeply thankful. smile As always.

KJL

ItemTemplate
Summary Always show e-mail addresses to admins (USERINFO / HideUserDetails setting)
ReportedBy TWiki:Main.KennethLavrsen
Codebase ~develop, ~twiki4
SVN Range Tue, 30 May 2006 build 10392
AppliesTo Engine
Component

Priority Urgent
CurrentState Closed
WaitingFor

Checkins 10414 10431 10478
TargetRelease patch
Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r9 - 2006-07-24 - CrawfordCurrie
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback