Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 681 of 807  Not logged in ELOG logo
ID Date Icon Author Author Email Category OSdown ELOG Version Subject
  1950   Fri Sep 22 08:21:39 2006 Reply Stefan Rittstefan.ritt@psi.chBug reportAll2.6.2-1714Re: Top Text and Bottom Text only show "text" --- no files

Steve Jones wrote:
Stefan, I found the source of the problem. When you moved some files to "logbook_dir" you also told the code to look in "logbook_dir" for top and bottom text files. The documentation indicates that the location dir should be "resource_dir".


Yepp. I changed the documentation. Note that you can also specify an absolute path, like
/usr/local/elog/top.html

If the file name starts with a "/" (under Unix), the full path is taken instead of looking in the logbook directory.
  1955   Fri Sep 22 19:42:21 2006 Reply Steve Jonessteve.jones@freescale.comQuestionAll2.6.2-1714Re: "Supress Email Notification" checkbox

Stefan Ritt wrote:

Steve Jones wrote:

Steve Jones wrote:
Is there a way to allow email notification but have the "Suppress Email Notification" checked by default? We had complaints about the enormous amount of email so I turned off email notification for edits/replys, but there are times that I would like to allow email to be sent out -- this would imply allowing email by unchecking the "Suppress" box.


What I think would be needed is:
Suppress Email on edit = 0|1|2
                             ^
Where a '2' denotes that the "Suppress Email Notification" shows up but *checked*


Just to a
Suppress default = 1




Quote:

Not quite what I am looking for. What I need is:

"New" Logs
- Always send an email -- do not provide an option to check the box.
-- use
Suppress Default = 2

"Edits and Replys"
- Provide the option to send an email, but by default the "suppress" box is checked
-- need
Suppress Email on edit = 2 

  1961   Mon Oct 9 22:32:11 2006 Reply Stefan Rittstefan.ritt@psi.chQuestionAll2.6.2-1714Re: "Supress Email Notification" checkbox
Suppress email on edit has been implemented in the current SVN revision just similar to the Suppress default flag having possible values of 0, 1, 2 and 3.
  1972   Tue Oct 10 15:32:21 2006 Idea Ben Shepherdbjs54@dl.ac.ukRequestAll2.6.2-1714'Inline' button for attachments
Hi,

It would be good if when you uploaded an image as an attachment, there was a button next to it that pasted the code
[img]elog:1972/1[/img]
into the log entry. This way, it would be more easy to have inline images in a log entry.

cheers

ben
  1973   Tue Oct 10 16:09:12 2006 Reply Stefan Rittstefan.ritt@psi.chRequestAll2.6.2-1714Re: 'Inline' button for attachments

Ben Shepherd wrote:
Hi,

It would be good if when you uploaded an image as an attachment, there was a button next to it that pasted the code
[img]elog:1972/1[/img]
into the log entry. This way, it would be more easy to have inline images in a log entry.


Just hit that button:


and it does exactly what you want.
  1974   Tue Oct 10 16:15:21 2006 Reply Ben Shepherdbjs54@dl.ac.ukRequestAll2.6.2-1714Re: Re: 'Inline' button for attachments

Stefan Ritt wrote:

Ben Shepherd wrote:
Hi,

and it does exactly what you want.

cool! thanks.
  1975   Tue Oct 10 23:27:41 2006 Agree Steve Jonessteve.jones@freescale.comQuestionAll2.6.2-1714Re: "Supress Email Notification" checkbox

Stefan Ritt wrote:
Suppress email on edit has been implemented in the current SVN revision just similar to the Suppress default flag having possible values of 0, 1, 2 and 3.



Works like a champ! Thanks
  2023   Fri Oct 27 19:11:32 2006 Warning Steve Jonessteve.jones@freescale.comBug reportAll2.6.2-1723Interesting behavior with $shell
eLog does not do math so I am trying to leverage the $SHELL function to perform the math. I am using GAWK to perform the math -- I started trying to use CONDITIONAL ATTRIBUTES to assign numeric values to attributes but with loading up the ATTRIBUTES with all of the options brings elog to its knees in terms of performance -- the parsing of attributes is simply too string intensive.

So, I embedded the numeric score in the OPTIONS of the ATTRIBUTE and leveraged the text processing prowess of GAWK:
Options WhoIsEffected =   1:...Single User, 5:...Project, 10:...Department, 50:...Site
Options ServiceOutage =   1:...0-1 Minutes, 2:...10 Minutes, 10:...20 Minutes, 30:...30 Minutes, 100:...gt60 

Then pass the following command to GAWK:
Preset TotalScore = $shell(gawk 'BEGIN{split(\"$WhoIsEffected:$ServiceOutage\",scores,\":\");print scores[1]+scores[3]}' )

The interesting result is this works - the proper summation is returned but apparently elog parsing also returns everything after the first ')' as something that also needs to be returned. So the resulting contents of TotalScore is
2;print scores[1]+scores[3]}' ) 
assuming one chose the first option of both attributes (the output pasted here are real results).

Before getting to this point I tried using the GAWK internal variable of $0 - but this did not work because apparently $0 in elog is defined as the OS shell!

Stefan, is it possible for you to try creating a logbook on the elog demo site that shows people how to perform math and in the process discover what the $SHELL function is doing?
ELOG V3.1.5-3fb85fa6