Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 714 of 806  Not logged in ELOG logo
ID Date Icon Authordown Author Email Category OS ELOG Version Subject
  66121   Fri Dec 19 14:15:28 2008 Question Ben Shepherdbjs54@dl.ac.ukQuestionLinux2.7.5-2137Tooltips for MOptions - not working?

Hi,

One of my logbooks is a fault reporting system; it emails a group of people when a fault is reported. There is an MOption 'Technical Groups', and I want to have a tooltip for each checkbox which shows who is referred to by each group name. However, individual tooltips for each MOption attribute don't seem to work. I've looked at the HTML code, and there's no 'title' attribute for the checkboxes, so it's not a browser problem. I've attached my config file. Any idea what's going wrong?

ben

Attachment 1: elogd.cfg
Data dir = /web/Elog/ERLP/logbooks/erlpfaults
Summary page title = ALICE Faults
List page title = ALICE Faults
Page title = ALICE Faults: $Title
RSS title = $message ID: $Title
Comment = ALICE Faults
Menu commands = List, New, Edit, Reply, Delete, Find, Config, Admin, Logout, Help
Guest Menu commands = List, Find, Login, Help
Find Menu commands = List, New, Select, Find, Config, Admin, Logout, Help
Guest Find Menu commands = List, Find, Login, Help
Attributes = Submitted by, Title, Personnel, Technical Groups, Cc, Machine Areas, Priority
MOptions Technical Groups = Accelerator Physics, Magnets, RF, Vacuum, Cryogenics, Power Supplies, Controls, Diagnostics, Photoinjector, Engineering, Health & Safety, Services, Personnel Safety System
Comment Technical Groups = Emails will be sent out<BR>to the specified groups.
Comment Cc = Additional email addresses;<BR>separate using commas.
MOptions Machine Areas = laser, gun, transfer line 1, booster, transfer line 2, linac, arc 1, compressor, FEL, arc 2, dump
ROptions Priority = critical, high, normal, low, fixed
Extendable Options = Personnel

Use Email From = dlerlp@example.com
#email goes to each of the people listed here, for entries where the technical group is specified
Email "Technical Groups" "Accelerator Physics" = susan.smith@example.com, yuri.saveliev@example.com
Tooltip "Technical Groups" "Accelerator Physics" = "Susan Smith, Yuri Saveliev"
Email "Technical Groups" Magnets = neil.thompson@example.com, ben.shepherd@example.com
Email "Technical Groups" RF = peter.mcintosh@example.com, andrew.moss@example.com
Tooltip "Technical Groups" RF = "Pete McIntosh, Andy Moss"
Email "Technical Groups" Vacuum = thomas.weston@example.com, keith.middleman@example.com
Email "Technical Groups" Cryogenics = shrikant.pattalwar@example.com, bob.bate@example.com, andy.goulden@example.com
Email "Technical Groups" "Power Supplies" = stephen.griffiths@example.com, chris.white@example.com
Email "Technical Groups" Controls = adrian.oates@example.com, ralph.rotheroe@example.com
Email "Technical Groups" Diagnostics = rob.smith@example.com, steven.jamison@example.com
Email "Technical Groups" Photoinjector  = susan.smith@example.com, rob.smith@example.com
Email "Technical Groups" Engineering = phil.atkinson@example.com, paul.hindley@example.com
Email "Technical Groups" "Health & Safety" = andy.goulden@example.com, stephen.hill@example.com
Email "Technical Groups" Services = andy.goulden@example.com, rachael.buckley@example.com
Email "Technical Groups" "Personnel Safety System" = john.alexander@example.com, christopher.chorlton@example.com
Email All = $Cc, $user_email
Use Email Subject = $Title (ALICE Fault Notification)
Preset Submitted by = $long_name
Preset on reply Submitted by = $long_name
Preset Priority = normal
Locked Attributes = Submitted by
Quick filter = Date, Technical Groups, Machine Areas, Priority

List display = ID, Date, Title, Technical Groups, Machine Areas, Priority
Summary lines = 0
  66133   Tue Jan 6 15:11:53 2009 Reply Ben Shepherdbjs54@dl.ac.ukQuestionLinux2.7.5-2137Re: Tooltips for MOptions - not working?

Stefan Ritt wrote:

 

Ben Shepherd wrote:

Hi,

One of my logbooks is a fault reporting system; it emails a group of people when a fault is reported. There is an MOption 'Technical Groups', and I want to have a tooltip for each checkbox which shows who is referred to by each group name. However, individual tooltips for each MOption attribute don't seem to work. I've looked at the HTML code, and there's no 'title' attribute for the checkboxes, so it's not a browser problem. I've attached my config file. Any idea what's going wrong?

ben

 

The syntax for tooltips is

Tooltip <attribute option> = <tooltip>

but you have

Tooltip "<attribute>" "<attribute option>" = <tooltip>

which is not correct, but would make more sense, since you could have an attribut option being valid for several attributes. So I changed elogd to accept both syntax in revision 2158. Please note that you should not put "quotes" around attribute values or options.

 Thanks! I got rid of the quotes around everything, and it works now.

ben

  67056   Thu Apr 28 09:27:52 2011 Question Ben Shepherdbjs54@dl.ac.ukBug reportLinux2.7.8-2278Hyphens in email addresses

Hi,

I have a user on our system who keeps getting shut out - she can register, but after a few days her login always stops working. The only thing that I can see that's different about her is that her email address has a hyphen in it (firstname.last-name@stfc.ac.uk). I have tried registering myself with a hyphenated email address, and the same thing happens. Any idea what might be going on here? Is eLog doing some sort of automatic cleanup after a day or two, and rejecting a confirmed email address because it's got a hyphen in it?

Thanks

Ben

  68029   Wed Jun 24 15:18:30 2015 Warning Ben Shepherdben.shepherd@stfc.ac.ukBug reportLinux3.1.0-2411f95CKEditor won't load under IE Compatibility Mode

I just upgraded to 3.1.0 after many years using 2.9.2. Our eLogs are absolutely crucial for the operation of our accelerators, so first of all I'd like to say: thanks a lot for everything you've done! It's a rock-solid application that works really well.

The issue I'm having is a minor one. Some of our users are using Internet Explorer 11, which has a Compatibility Mode option that is enabled by default for intranet sites (of which our eLog is one). This mode emulates IE7, and this causes the CKEditor rich text box to fail to load. I can tell our users to disable the CM setting on their browsers, but it may be that a simple server-side fix is possible as well.

It would be nice if the eLog pages could have a <meta name="viewport" content="width=device-width, initial-scale=1.0"> tag, so that it displays nicely on smaller screens. I've been adding this myself in some Javascript code (see elogHelper.js on the above-linked website), but it doesn't appear on every page (the logbook selection page, for instance). I also made some modifications to the CSS so that the list display collapses down when the browser window is very narrow.

The new autosave functionality is really good. I hacked something together to do this for our log a while ago, but it's nice that it's inbuilt now.

Thanks again!

Ben

 

  Draft   Thu Jun 25 14:55:16 2015 Reply Ben Shepherdben.shepherd@stfc.ac.ukBug reportLinux3.1.0-2411f95Re: CKEditor won't load under IE Compatibility Mode

The viewport thing and the IE7 mode thing are separate issues.

OK, maybe it's a CKEditor thing then. I thought it might be. It seems pretty stupid that the default setting in IE is to emulate an older browser - although I guess a lot of people have very outdated intranet sites. Anyway, we have a fix here so I don't think you need to do anything. Just thought you might want to know.

The viewport tag issue - see attachments. The first two are the log selection page and the list page, both without the viewport tag. Obviously you can zoom in, but this is how they appear by default, as (apparently) Chrome tries to render the whole page width. The third one is how the list page appears when the viewport tag is added, and the fourth is with my custom CSS to put the columns on separate lines. It's probably very bad CSS, so I'm certain that it's not robust or cross-platform, but it works for me :)

/* make things look a bit nicer on smaller screens */
@media (max-width: 700px) {
	table.listframe td, table.listframe th {
		display: none;
	}

	/* show id, date, personnel, summary in separate lines */
	table.listframe td:nth-of-type(-n+2), table.listframe td:nth-of-type(4), table.listframe td:nth-last-of-type(2) {
		display: block;
		border: 0px;
	}
}
Stefan Ritt wrote:

I don't get your point. If you add the meta tag wiht the viewport, then the IE7 mode will load the CKEditor? The CKEditor home page says that IE7 is not supported any more, so I wonder if this simple tag might help. Can you turn off the compatibility mode on a per-URL basis?

If I try on my smatphone, the display is correct, so why you need the viewport tag? Can you shouw me examples?

If you have nice CSS features which are helpful for everybody, please send them to me and I can include it in the distribution, but only after you convince me that it works (almost) everywhere.

Best,
Stefan

Ben Shepherd wrote:

I just upgraded to 3.1.0 after many years using 2.9.2. Our eLogs are absolutely crucial for the operation of our accelerators, so first of all I'd like to say: thanks a lot for everything you've done! It's a rock-solid application that works really well.

The issue I'm having is a minor one. Some of our users are using Internet Explorer 11, which has a Compatibility Mode option that is enabled by default for intranet sites (of which our eLog is one). This mode emulates IE7, and this causes the CKEditor rich text box to fail to load. I can tell our users to disable the CM setting on their browsers, but it may be that a simple server-side fix is possible as well.

It would be nice if the eLog pages could have a <meta name="viewport" content="width=device-width, initial-scale=1.0"> tag, so that it displays nicely on smaller screens. I've been adding this myself in some Javascript code (see elogHelper.js on the above-linked website), but it doesn't appear on every page (the logbook selection page, for instance). I also made some modifications to the CSS so that the list display collapses down when the browser window is very narrow.

The new autosave functionality is really good. I hacked something together to do this for our log a while ago, but it's nice that it's inbuilt now.

Thanks again!

Ben

 

 

 

Attachment 1: 01-logbook-sel-page-no-viewport.png
01-logbook-sel-page-no-viewport.png
Attachment 2: 02-list-page-no-viewport.png
02-list-page-no-viewport.png
  68035   Thu Jun 25 15:16:51 2015 Reply Ben Shepherdben.shepherd@stfc.ac.ukBug reportLinux3.1.0-2411f95Re: CKEditor won't load under IE Compatibility Mode

The viewport thing and the IE7 mode thing are separate issues.

OK, maybe it's a CKEditor thing then. I thought it might be. It seems pretty stupid that the default setting in IE is to emulate an older browser - although I guess a lot of people have very outdated intranet sites. Anyway, we have a fix here so I don't think you need to do anything. Just thought you might want to know.

The viewport tag issue - see attachments. The first two are the log selection page and the list page, both without the viewport tag. Obviously you can zoom in, but this is how they appear by default, as (apparently) Chrome tries to render the whole page width. The third one is how the list page appears when the viewport tag is added, and the fourth is with my custom CSS to put the columns on separate lines. It's probably very bad CSS, so I'm certain that it's not robust or cross-platform, but it works for me :)

/* make things look a bit nicer on smaller screens */
@media (max-width: 700px) {
	table.listframe td, table.listframe th {
		display: none;
	}

	/* show id, date, personnel, summary in separate lines */
	table.listframe td:nth-of-type(-n+2), table.listframe td:nth-of-type(4), table.listframe td:nth-last-of-type(2) {
		display: block;
		border: 0px;
	}
}
Stefan Ritt wrote:

I don't get your point. If you add the meta tag wiht the viewport, then the IE7 mode will load the CKEditor? The CKEditor home page says that IE7 is not supported any more, so I wonder if this simple tag might help. Can you turn off the compatibility mode on a per-URL basis?

If I try on my smatphone, the display is correct, so why you need the viewport tag? Can you shouw me examples?

If you have nice CSS features which are helpful for everybody, please send them to me and I can include it in the distribution, but only after you convince me that it works (almost) everywhere.

Best,
Stefan

Ben Shepherd wrote:

I just upgraded to 3.1.0 after many years using 2.9.2. Our eLogs are absolutely crucial for the operation of our accelerators, so first of all I'd like to say: thanks a lot for everything you've done! It's a rock-solid application that works really well.

The issue I'm having is a minor one. Some of our users are using Internet Explorer 11, which has a Compatibility Mode option that is enabled by default for intranet sites (of which our eLog is one). This mode emulates IE7, and this causes the CKEditor rich text box to fail to load. I can tell our users to disable the CM setting on their browsers, but it may be that a simple server-side fix is possible as well.

It would be nice if the eLog pages could have a <meta name="viewport" content="width=device-width, initial-scale=1.0"> tag, so that it displays nicely on smaller screens. I've been adding this myself in some Javascript code (see elogHelper.js on the above-linked website), but it doesn't appear on every page (the logbook selection page, for instance). I also made some modifications to the CSS so that the list display collapses down when the browser window is very narrow.

The new autosave functionality is really good. I hacked something together to do this for our log a while ago, but it's nice that it's inbuilt now.

Thanks again!

Ben

 

 

 

Attachment 1: 01-logbook-sel-page-no-viewport.png
01-logbook-sel-page-no-viewport.png
Attachment 2: 02-list-page-no-viewport.png
02-list-page-no-viewport.png
Attachment 3: 03-list-page-viewport.png
03-list-page-viewport.png
Attachment 4: 04-list-page-viewport-css.png
04-list-page-viewport-css.png
  68688   Wed Sep 20 16:34:18 2017 Question Ben Shepherdben.shepherd@stfc.ac.ukRequestLinux3.1.0-2411f95Email fields - accept semicolons too

My elog has a field for entering a list of email addresses, which goes into the "Email All" attribute. They need to be comma-separated, and an error is thrown if semicolons are used instead. Would it be possible to automatically change semicolons into commas before attempting to send the mail via SMTP? Neither character is allowed in email addresses so it shouldn't break anything to just do that silently. Thanks!

  68916   Thu Mar 21 16:14:00 2019 Question Ben Loerben.loer@pnnl.govQuestionLinux3.1.3elog.css and lock.png fail to load with top groups

As the title says, we have our elog running behind an Apache proxy that is also providing authentication. We also have top groups enabled.  The first time a user views a top group page with a fresh browser cache, the index is delivered, but requests for elog.css and lock.png are returned with http 302 with location set to the elog root.  (I.e., if the server is proxied under server.example.com/logs,  the first request for server.example.com/logs/TopGroup1/elog.css returns a 302 with location set to server.example.com/logs// ). 

Any subsequent visits return the files fine. The attached screenshot shows the network requests in chrome. 

Is this a proxy configuration issue, something we've set wrong in elog, ??

 

Attachment 1: elog1.png
elog1.png
ELOG V3.1.5-3fb85fa6