Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 161 of 238  Not logged in ELOG logo
icon5.gif   formating bug : css and Format command, posted by toumbi on Wed Jun 27 14:42:13 2007 new.JPGlog.jpg
Why Gain and G1,G2 .... G8 are on the same line ?
When I create a new entry, attibute 'attribgainname' is not used.( i can see lime color only when i see logged
message.)

here is my config

;liste des attributs
Attributes =CR,Serial,EDA,Experience,Lieu,Type,Gain,G1,G2,G3,G4,G5,G6,G7,G8,Intensité,Seuil bas, Seuil haut

; Combine attributes into singles lines
Format G1 = 1,attribgainname,attribvalue,10,10
Format G2 = 1,attribgainname,attribvalue,10,10
Format G3 = 1,attribgainname,attribvalue,10,10
Format G4 = 1,attribgainname,attribvalue,10,10
Format G5 = 1,attribgainname,attribvalue,10,10
Format G6 = 1,attribgainname,attribvalue,10,10
Format G7 = 1,attribgainname,attribvalue,10,10
Format G8 = 1,attribgainname,attribvalue,10,10

i added in default.css
.attribgainname {
  width:25px;
  background-color:lime;
  border:1px solid #0000FF;
  border-top:1px solid white;
  border-left:1px solid white;
  padding:3px;
}
///////////////////////////////////////////////////////////
    icon2.gif   Re: formating bug : css and Format command, posted by Stefan Ritt on Wed Jun 27 15:06:24 2007 

toumbi wrote:
Why Gain and G1,G2 .... G8 are on the same line ?


Because you specified it! The first "1" in your format forces the attributes to show up on the same line. Just read the manual.


toumbi wrote:

When I create a new entry, attibute 'attribgainname' is not used.( i can see lime color only when i see logged
message.)


The 'attribmainname' is only used for the display page, not for the entry form.
       icon2.gif   Re: formating bug : css and Format command, posted by toumbi on Wed Jun 27 16:02:49 2007 

Stefan Ritt wrote:

Because you specified it! The first "1" in your format forces the attributes to show up on the same line. Just read the manual.

Oups ... I understand better now how to put a new line .
this is my example.
; start a new line G1,G2...G8
Format G1 = 0,attribgainname,attribvalue,10,10
Format G2 = 1,attribgainname,attribvalue,10,10
Format G3 = 1,attribgainname,attribvalue,10,10
Format G4 = 1,attribgainname,attribvalue,10,10
Format G5 = 1,attribgainname,attribvalue,10,10
Format G6 = 1,attribgainname,attribvalue,10,10
Format G7 = 1,attribgainname,attribvalue,10,10
Format G8 = 1,attribgainname,attribvalue,10,10
; start a new line I1,I2...I8
Format I1 = 0,attribgainname,attribvalue,10,10
Format I2 = 1,attribgainname,attribvalue,10,10
Format I3 = 1,attribgainname,attribvalue,10,10
Format I4 = 1,attribgainname,attribvalue,10,10
Format I5 = 1,attribgainname,attribvalue,10,10
Format I6 = 1,attribgainname,attribvalue,10,10
Format I7 = 1,attribgainname,attribvalue,10,10
Format I8 = 1,attribgainname,attribvalue,10,10




Stefan Ritt wrote:

The 'attribmainname' is only used for the display page, not for the entry form.


ok so if you say it is not a bug i can understand but in that case the format command work half in the entry form.
Is it possible to implement it for the next time?

thanks
          icon2.gif   Re: formating bug : css and Format command, posted by Stefan Ritt on Wed Jun 27 16:15:04 2007 

toumbi wrote:
ok so if you say it is not a bug i can understand but in that case the format command work half in the entry form. Is it possible to implement it for the next time?


Yes I will do that.
             icon2.gif   Re: formating bug : css and Format command, posted by toumbi on Wed Jun 27 19:51:39 2007 

Stefan Ritt wrote:

toumbi wrote:
ok so if you say it is not a bug i can understand but in that case the format command work half in the entry form. Is it possible to implement it for the next time?


Yes I will do that.

Thank you , I download and compile myself elogd and it work now.

But I found a line one the french language that make javascritp bug
line 391:
Enter heading level (1, 2 or 3) = Indiquez le niveau d'en-tête (1, 2 ou 3)

=> linkHeading_prompt = 'Indiquez le niveau d'en-tête (1, 2 ou 3)'; there is one more '


my french is better than my english so i can say it is a good translation but the symbole between the letter d and the letter e make exporer 7 bug.

Enter heading level (1, 2 or 3) = Indiquez le niveau d en-tête (1, 2 ou 3) (this work but translation isn't good.


Thanks a lot ! and continue it is a beautiful tool.
                icon2.gif   Re: formating bug : css and Format command, posted by Stefan Ritt on Thu Jun 28 17:18:21 2007 

toumbi wrote:
linkHeading_prompt = 'Indiquez le niveau d'en-tête (1, 2 ou 3)';


I changed the code of elogd to surround the strings with "" such as
linkHeading_prompt  = "Indiquez le niveau d'en-tête (1, 2 ou 3)";

that should do the job. The fix is in SVN, if you need the Windows executable, you have to wait for the next release.
icon5.gif   list of 500 files, posted by chris williams on Sun Jun 24 02:38:31 2007 
How can I have my list accept over 500 entries? I tried increasing the elogd.c (max_n_list)file as stated but the compiler gives me errors. Please help
    icon2.gif   Re: list of 500 files, posted by Stefan Ritt on Mon Jun 25 08:50:38 2007 

chris williams wrote:
How can I have my list accept over 500 entries? I tried increasing the elogd.c (max_n_list)file as stated but the compiler gives me errors. Please help


No way to get so many entries. If you just increase the value and recompile, you will get stack and heap overflows in the program. Why do you need so many entries? Can you explain? Maybe there is another way to achieve this.
       icon2.gif   Re: list of 500 files, posted by chris williams on Mon Jun 25 18:14:44 2007 
Thanks for the response. I am trying to use it as a file database, to monitor the status of files(whether they have been removed, ammended etc), currently there are 90 files but I expect the size to grow.
          icon2.gif   Re: list of 500 files, posted by Stefan Ritt on Mon Jun 25 19:22:01 2007 

chris williams wrote:
Thanks for the response. I am trying to use it as a file database, to monitor the status of files(whether they have been removed, ammended etc), currently there are 90 files but I expect the size to grow.


Of course you can put any number of entries into a logbook, each having only one file as attachment.
             icon2.gif   Re: list of 500 files, posted by chris williams on Tue Jun 26 01:56:05 2007 
True, thanks.
icon5.gif   sorting a drop down menu in elog, posted by chris williams on Sun Jun 24 00:12:15 2007 
Hi, I was wondering, how can I insert new items into my drop down menu and have them appear in an alphabetical order? Is there some sort of code I can insert into the config file to do so?
Thanks
    icon2.gif   Re: sorting a drop down menu in elog, posted by Stefan Ritt on Mon Jun 25 08:46:55 2007 

chris williams wrote:
Hi, I was wondering, how can I insert new items into my drop down menu and have them appear in an alphabetical order? Is there some sort of code I can insert into the config file to do so?
Thanks


No, you have to sort them by hand in the config file.
       icon2.gif   Re: sorting a drop down menu in elog, posted by chris williams on Mon Jun 25 18:15:24 2007 
ok...thanks much.
icon6.gif   How long should it taken for new entry with attachments?, posted by An Thai on Tue Jun 19 23:21:52 2007 
Hello,

shortly I have a new issue of entry with attachments.
I try to re-produce the problem and find out that elog service needs very long to serve an entry with attachments.

Normally it takes about 3 seconds after the button SUBMIT is clicked to open the confirm page (ca. 20 recipients).

But when an user tries to enter a new entry and attach a file (about 500 Kb or greater) or some files (total of 500 Kb or greater), it takes several minutes and his browser displays "the page can not be opened"
In this time intervall, elog service runs with 100% CPU server recource.

My questions are:

  • is there a form to calculate or estimate how long Elog needs to serve an new entry with attachment? (for example: Summary or multiplication of recipients and large of files) It will help to make a comment to warn users.

  • Could you please make the SUBMIT button disable after clicked? Because it happens that my users click it many times after enter a new entry with big attachments.

Thank in advance and best regards.
    icon2.gif   Re: How long should it taken for new entry with attachments?, posted by Stefan Ritt on Wed Jun 20 18:20:01 2007 

An Thai wrote:
I try to re-produce the problem and find out that elog service needs very long to serve an entry with attachments.

Normally it takes about 3 seconds after the button SUBMIT is clicked to open the confirm page (ca. 20 recipients).

But when an user tries to enter a new entry and attach a file (about 500 Kb or greater) or some files (total of 500 Kb or greater), it takes several minutes and his browser displays "the page can not be opened"
In this time intervall, elog service runs with 100% CPU server recource.


This can be related you your email server. Attachments are converted into some ASCII form (base64 encoding), which increases their size by 2-3x. Some email servers are slow in receiving multi-MB data. Can you try to switch off the email attachments in the notification with
Email format = 111

This does not send attachments in email, just their names. If your performance gets much better then, it is related to your email server, and I cannot do anything. So just keep it then turned off.
icon5.gif   Preset Date and Time, posted by David Egolf on Fri Jun 15 18:25:07 2007 
Is there a way to have the preset date and time and add a set additional time? I do Preventative maintenance and want to add a default 30 days or 90 days to the preset date and time in a datetime field.

Thanks

David Egolf
    icon2.gif   Re: Preset Date and Time, posted by Stefan Ritt on Fri Jun 15 18:54:10 2007 

David Egolf wrote:
Is there a way to have the preset date and time and add a set additional time? I do Preventative maintenance and want to add a default 30 days or 90 days to the preset date and time in a datetime field.


No, this is not possible. You have to use the build in calendar to set the correct date. But since you can flip months with a button, this should be straight forward.
icon1.gif   how to supress checkboxes of all logbooks at registration?, posted by Mark Bergman on Thu May 31 23:33:28 2007 
Is there a way to suppress the listing of all logbooks on the New User Registration page? We've got 100 logbooks (one for each server, cluster node, or major software package). The long list makes it difficult for users to find the bottom of the registration page, and no user needs to subscribe for automatic e-mail notification for every logbook.

Thanks,

Mark
    icon2.gif   Re: how to supress checkboxes of all logbooks at registration?, posted by Stefan Ritt on Fri Jun 1 08:43:23 2007 

Mark Bergman wrote:
Is there a way to suppress the listing of all logbooks on the New User Registration page? We've got 100 logbooks (one for each server, cluster node, or major software package). The long list makes it difficult for users to find the bottom of the registration page, and no user needs to subscribe for automatic e-mail notification for every logbook.


No, this is currently not possible. But I wonder why you have so many logbooks. Instead of having an individual logbook for every server, you could have the server name as an attribute of a single logbook:
Attributes = Author, ..., Server
Options Server = server1, server2, ...
Quick filter = Server
...

Using the quick filter, you can select the subset of logbook entries belonging to one server very easily. In general it will make your life much easier if you have less logbooks.

- Stefan
icon1.gif   config settings to ensure replies to author, thread contributors, admin?, posted by Mark Bergman on Thu May 31 23:46:31 2007 
I'm having some difficulty configuring elog to ensure that the original author of an entry, any contributors to the thread, and a desginated administrator get e-mail notification for any change to the thread.

Here's a subset of the current elogd.cfg:
Attributes = Author, Type, Category, Severity, Subject, Entry ID, Status, CC E-mail To
Display Email recipients = 1
Email All = $CC E-mail To
Email All = mark.bergman@uphs.upenn.edu
Email Format = 47
Suppress default = 0
Type CC E-mail To = museremail

The "Suppress default = 0" setting is used because many people mistakenly subscribe for automatic e-mail notification of all our logbooks when they self-register. I was hoping that the "Email All" directives would override the suppression of default mail.

This configuration works partially...in that if a user specifically selects addresses in the "CC E-mail To" field, those people do get mail.

The documentation states that there can be multiple "Email All" directives, so I thought they would be additive--causing the admin address and the author to always get mail.

Is there a setting to ensure that the original author of the thread is always notified upon any change?


Thanks,

Mark
    icon2.gif   Re: config settings to ensure replies to author, thread contributors, admin?, posted by Stefan Ritt on Fri Jun 1 08:40:13 2007 

Mark Bergman wrote:
Attributes = Author, Type, Category, Severity, Subject, Entry ID, Status, CC E-mail To
Display Email recipients = 1
Email All = $CC E-mail To
Email All = mark.bergman@uphs.upenn.edu
Email Format = 47
Suppress default = 0
Type CC E-mail To = museremail

The documentation states that there can be multiple "Email All" directives, so I thought they would be additive--causing the admin address and the author to always get mail.


There can be multiple "Email All" directives, but they have to be on one line, like
Email All = $CC E-mail To, mark.bergman@uphs.upenn.edu


Mark Bergman wrote:

Is there a setting to ensure that the original author of the thread is always notified upon any change?


You can do something like:
Attributes = ..., Author Email
Preset Author Email = $user_email
Email All = $Author Email, $CC E-mail to, mark.bergman@uphs.upenn.edu
...

An alternative (and that's what I usually do) is to keep "Suppress email to users = 0" and tell the users to remove their subscription if they don't like it. Note that you also can edit the password file manually (it's a XML file), and remove all subscriptions easily with an editor. Note that you have to do that when elogd is stopped, then edit the file, then restart elgod.

- Stefan
icon13.gif   checkbox, posted by deletoille on Tue Oct 31 14:45:05 2006 checkbox1.JPGcheckbox2.JPG
Hello,
I found a small Bug when I create an entry. I activate a checkbox (attachement1) but when I upload a file, the activation disappears (attachement 2). I have to activate again the checkbox.
Is it something I can do?

Thanks in advance,
Xavier Deletoille
    icon2.gif   Re: checkbox, posted by Steve Jones on Tue Oct 31 22:10:11 2006 

deletoille wrote:
Hello,
I found a small Bug when I create an entry. I activate a checkbox (attachement1) but when I upload a file, the activation disappears (attachement 2). I have to activate again the checkbox.
Is it something I can do?

Thanks in advance,
Xavier Deletoille



Steve Jones wrote:

Xavier, your version number does not indicate the full SVN (it is cutoff at '172') but your screenshot indicates 'SVN1723'. This is an identified problem and looks to be fixed in SVN1740. I have verified with the checkbox "Suppress Email Notification" -- it likely effects all checkboxes.
       icon2.gif   Re: checkbox, posted by deletoille on Thu Nov 2 08:41:34 2006 

Steve Jones wrote:

deletoille wrote:
Hello,
I found a small Bug when I create an entry. I activate a checkbox (attachement1) but when I upload a file, the activation disappears (attachement 2). I have to activate again the checkbox.
Is it something I can do?

Thanks in advance,
Xavier Deletoille



Steve Jones wrote:

Xavier, your version number does not indicate the full SVN (it is cutoff at '172') but your screenshot indicates 'SVN1723'. This is an identified problem and looks to be fixed in SVN1740. I have verified with the checkbox "Suppress Email Notification" -- it likely effects all checkboxes.


OK ,
sorry for the version number. My SVN numbers is 1723 like in screenshot.
I'm waiting SVN1740 .
thanks in advance
          icon2.gif   Re: checkbox, posted by Stefan Ritt on Wed Nov 8 07:59:01 2006 

deletoille wrote:
I found a small Bug when I create an entry. I activate a checkbox (attachement1) but when I upload a file, the activation disappears (attachement 2). I have to activate again the checkbox.
Is it something I can do?


I tried with V2.6.2-1741 and the problem was not there. It was fixed some time ago, so it should have worked in 1723 as well. Can you try the minimal example coming with the distribution, just by adding one MOptions attribute, like:
[global]
port = 8080

[demo]
Attributes = Author, Type
MOptions Type = Routine, Software Installation, Problem Fixed, Configuration, Other

and see if it work there? If it works correctly there but not with your config file, please send me your config file and I will try to reproduce the problem.
             icon2.gif   Re: checkbox, posted by deletoille on Wed Nov 8 15:39:42 2006 Elog_08_11_06.doc

Stefan Ritt wrote:

deletoille wrote:
I found a small Bug when I create an entry. I activate a checkbox (attachement1) but when I upload a file, the activation disappears (attachement 2). I have to activate again the checkbox.
Is it something I can do?


I tried with V2.6.2-1741 and the problem was not there. It was fixed some time ago, so it should have worked in 1723 as well. Can you try the minimal example coming with the distribution, just by adding one MOptions attribute, like:
[global]
port = 8080

[demo]
Attributes = Author, Type
MOptions Type = Routine, Software Installation, Problem Fixed, Configuration, Other

and see if it work there? If it works correctly there but not with your config file, please send me your config file and I will try to reproduce the problem.



You're right it works
It must be in my programming method
I share you my config file.
Thanks for your help
                icon13.gif   Re: checkbox, posted by deletoille on Mon May 28 04:53:48 2007 

deletoille wrote:

Stefan Ritt wrote:

deletoille wrote:
I found a small Bug when I create an entry. I activate a checkbox (attachement1) but when I upload a file, the activation disappears (attachement 2). I have to activate again the checkbox.
Is it something I can do?


I tried with V2.6.2-1741 and the problem was not there. It was fixed some time ago, so it should have worked in 1723 as well. Can you try the minimal example coming with the distribution, just by adding one MOptions attribute, like:
[global]
port = 8080

[demo]
Attributes = Author, Type
MOptions Type = Routine, Software Installation, Problem Fixed, Configuration, Other

and see if it work there? If it works correctly there but not with your config file, please send me your config file and I will try to reproduce the problem.



You're right it works
It must be in my programming method
I share you my config file.
Thanks for your help




Hello,
I wrote a small program for another group and I have always the same problem of activation box who disappears when I upload a file. On the other hand, I noticed that the problem is only for the conditional attribute and not for the other. Here included the small program. an idea?

Thanks in advance
Xavier Deletoille

[global]
port = 8080
[GMI]
Start page = ?rsort=date
Quick filter = Type evenement
Time Format = %d %m %Y, %H:%M
Quote on reply = 0
Use Lock = 0
List display = id, Icone, date, Equipement, Type evenement, Localisation, auteur
Menu commands = List, New, Edit, Reply, Find, Config
Comment = Cahier de Manip du groupe GMI
********************************************************************************************************************
attributes = auteur, Icone, Type Equipement, Equipement, Localisation, Type evenement
Required attributes = auteur, Icone, Type Equipement, Localisation, Type evenement
show attributes = auteur, Icone, Type Equipement, Equipement, Localisation, Type evenement

Preset on reply auteur =
Options Type Equipement = Apple II{A}, Sous vide{B}, Electromagnetique{C}, Aimant{D}
{A} MOptions Equipement = HU80, HU65, HU60, HU52, HU50, HU40, HU30
{B} MOptions Equipement = U20, U26, W50
{C} MOptions Equipement = HU640, HU256
{D} MOptions Equipement = Dipole, Quadripole, Sextupole
IOptions Icone = oui.gif, non.gif, cleanglaise1515.png, paper.png
Moptions Localisation = C01, C02, C03, C04, C05, C06, C07, C08, C09, C10, C11, C12, C13, C14, C15, C16, Booster
Options Auteur = xxxxxx,xxxxxxxy,xxxxxft
Options Type evenement = Alimentation, Bobines, Moteur, TLCC, CPCI, Communication, Autres
                   icon14.gif   Re: checkbox, posted by Stefan Ritt on Wed May 30 22:32:03 2007 

deletoille wrote:
I wrote a small program for another group and I have always the same problem of activation box who disappears when I upload a file. On the other hand, I noticed that the problem is only for the conditional attribute and not for the other. Here included the small program. an idea?


Ok, with your config I could reproduce the problem. I fixed it in revision 1865, the fix will be contained in the next release.
ELOG V3.1.5-3fb85fa6