Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   Is it possible to require certain attributes for specific users (guests)?, posted by Mark Bergman on Tue May 2 22:58:48 2006 
    icon2.gif   Re: Is it possible to require certain attributes for specific users (guests)?, posted by Stefan Ritt on Wed May 3 08:31:52 2006 
    icon2.gif   Re: Is it possible to require certain attributes for specific users (guests)?, posted by Stefan Ritt on Thu Nov 9 23:04:32 2006 
Message ID: 2063     Entry time: Thu Nov 9 23:04:32 2006     In reply to: 1813
Icon: Reply  Author: Stefan Ritt  Author Email: stefan.ritt@psi.ch 
Category: Question  OS: Linux  ELOG Version: 2.6.1 
Subject: Re: Is it possible to require certain attributes for specific users (guests)? 
> First of all, thanks for writing and maintaining eLog.
> 
> I've been using it for a few years, but I'm now introducing it in an environment that may have a lot of "Guest"
> accounts.
> 
> I'd like to have two "Required Attributes" when a guest enters a new entry; their name and e-mail address. These
> fields don't need to be required for registered accounts, since that information is available already.
> 
> Is there any way to have conditional statements act on the value of $short_name?
> 
> Thanks,
> 
> Mark

Actually there is one possibility:

Preset Author = $long_name
Required Attributes = Author

This will force the author to be supplied. If one is logged in, the login name will be put into the author field. If
there is guest access, the field will contain "anonymous", so hopefully each guest will change that to the real name...
ELOG V3.1.5-fe60aaf