Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 515 of 808  Not logged in ELOG logo
icon1.gif   Subst on Reply, posted by Emiliano Gabrielli on Fri Jul 8 10:52:36 2005 
the "subst on reply" parameter seems to correctly work only on the first reply..
since the second reply has the author locked to the one having replyed the first time.

Here is my config:
; preset author and email
Preset Author                 = $short_name
Preset Author Email           = $user_email
Subst on reply Author         = $short_name
Subst on reply Author Email   = $user_email
Subst on reply subject        = Re: $subject

; these attributes cannot be changed
Locked Attributes             = Author, Author Email
Fixed Attributes Reply        = Subject

My poor man solution is for now to allow everyone to change the author (unlock the field ..)
    icon1.gif   Re: Subst on Reply, posted by Stefan Ritt on Fri Jul 8 22:38:51 2005 

Emiliano Gabrielli wrote:
the "subst on reply" parameter seems to correctly work only on the first reply..
since the second reply has the author locked to the one having replyed the first time.

Here is my config:
; preset author and email
Preset Author                 = $short_name
Preset Author Email           = $user_email
Subst on reply Author         = $short_name
Subst on reply Author Email   = $user_email
Subst on reply subject        = Re: $subject

; these attributes cannot be changed
Locked Attributes             = Author, Author Email
Fixed Attributes Reply        = Subject

My poor man solution is for now to allow everyone to change the author (unlock the field ..)


You need
Preset on reply Author = $short_name
. Subst is supposed to work after a submission, Preset before you open the edit mask. See this forum. If you reply to this entry, your name appears as the Author even if it's locked. Here is the config:
Preset Author = $long_name
Preset Author Email = $user_email
Preset on reply Author = $long_name
Preset on reply Author Email = $user_email
Locked Attributes = Author

The Subst can be used for your image category thing. So instead using
Display Category = $category <img src="icons/$category.png" border="0">

you can use
Subst Category = $category <img src="icons/$category.png" border="0">

which physically rewrites the category. This is probably not what you want, but take it as an example. We use it in one place to replace a user name by a link to our internal telephonbook searching for this username, so if one clicks on the user, one ends up in the user's telephonebook entry.
    icon1.gif   Re: Subst on Reply, posted by Emiliano Gabrielli on Sat Jul 9 14:13:10 2005 

Stefan Ritt wrote:

You need
Preset on reply Author = $short_name
. Subst is supposed to work after a submission, Preset before you open the edit mask. See this forum. If you reply to this entry, your name appears as the Author even if it's locked. Here is the config:
Preset Author = $long_name
Preset Author Email = $user_email
Preset on reply Author = $long_name
Preset on reply Author Email = $user_email
Locked Attributes = Author

The Subst can be used for your image category thing. So instead using
Display Category = $category <img src="icons/$category.png" border="0">

you can use
Subst Category = $category <img src="icons/$category.png" border="0">

which physically rewrites the category. This is probably not what you want, but take it as an example. We use it in one place to replace a user name by a link to our internal telephonbook searching for this username, so if one clicks on the user, one ends up in the user's telephonebook entry.


Ok it's working perfectly, my bad Iwas lost in the huge set of config parameters elog accept the first time I installed it Smile

Thank you so much Stefan
icon5.gif   Fixed Attribute fields blank?, posted by Grant Jeffcote on Sat Jun 30 04:58:32 2007 
Hi Stefan,

Not sure if this is my configuration only but in your latest compiled release V2.6.5-1873 when I do a reply or edit on an entry where I have specified Fixed Attributes Edit or Reply these fields now show blank on the entry page? They are still uneditable as a field of course and the text still shows on the list view display page but no text shows in these fields until re/submitted.

Is this a new feature or just mine, reverting back to the previous release restores normality ;o)
    icon2.gif   Re: Fixed Attribute fields blank?, posted by Stefan Ritt on Sat Jun 30 09:48:01 2007 

Grant Jeffcote wrote:
Not sure if this is my configuration only but in your latest compiled release V2.6.5-1873 when I do a reply or edit on an entry where I have specified Fixed Attributes Edit or Reply these fields now show blank on the entry page? They are still uneditable as a field of course and the text still shows on the list view display page but no text shows in these fields until re/submitted.


I'm playing with attributes right now since I'm going to implement a "multiple edit", where one can change attributes of several entries at the same time, but I cannot reproduce your problem with V2.6.5-1874 and this config file:
[demo]
Attributes = Author, Subject
Fixed Attributes Edit = Subject
Fixed Attributes Reply = Subject

Either I fixed it accidentally between 1873 and 1874 or it is config file related. Can you try that version and the little config file above? Since you use Windows, I made a elog265-3 for you. If you find that the little config works and your's doesn't, please send me your config.
    icon2.gif   Re: Fixed Attribute fields blank?, posted by Grant Jeffcote on Sat Jun 30 21:29:30 2007 

Stefan Ritt wrote:

Grant Jeffcote wrote:
Not sure if this is my configuration only but in your latest compiled release V2.6.5-1873 when I do a reply or edit on an entry where I have specified Fixed Attributes Edit or Reply these fields now show blank on the entry page? They are still uneditable as a field of course and the text still shows on the list view display page but no text shows in these fields until re/submitted.


I'm playing with attributes right now since I'm going to implement a "multiple edit", where one can change attributes of several entries at the same time, but I cannot reproduce your problem with V2.6.5-1874 and this config file:
[demo]
Attributes = Author, Subject
Fixed Attributes Edit = Subject
Fixed Attributes Reply = Subject

Either I fixed it accidentally between 1873 and 1874 or it is config file related. Can you try that version and the little config file above? Since you use Windows, I made a elog265-3 for you. If you find that the little config works and your's doesn't, please send me your config.


Great job, thanks Stefan.
Accidental fix, new version works perfectly without any config file change.
icon1.gif   Entries are being deleted automatically, posted by Pittelli Mike on Wed Jun 17 15:56:54 2009 

A few days after I create entries in my logbooks, they are being deleted. Has this happened to anyone before?

    icon2.gif   Re: Entries are being deleted automatically, posted by Stefan Ritt on Wed Jun 17 16:26:11 2009 

Pittelli Mike wrote:

A few days after I create entries in my logbooks, they are being deleted. Has this happened to anyone before?

Never as far as I know. Try to do logging on your elog server ("Log file = ..."), then you will see all write/delete accesses. So if someone deletes your entries, you will see a trace. 

ELOG V3.1.5-3fb85fa6