Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 432 of 808  Not logged in ELOG logo
    icon7.gif   Re: HTML in attribute values, posted by Richard Stamper on Tue Aug 22 14:58:09 2017 
Exactly the information I was after - thanks!  I'll simulate fancier markup as necessary.




Stefan
Ritt wrote:



Sorry, I misread your question. Only following HTML tags are allowed
icon5.gif   Hide logbook tab when not authorized, posted by Stefano Bonaldo on Tue Aug 22 18:29:02 2017 
Hello, I read carefully the manual, but I didn't find a way to hide the logbooks in the logbook bar and in the initial logbook selection for
which the user does not have the access. So, if a user1 does not have the access to a specific logbook, user1 is not able to see that logbook in the
bar and neither in the initial logbook selection. How can I do this without using the top groups?
    icon2.gif   Re: Hide logbook tab when not authorized, posted by Andreas Luedeke on Wed Aug 23 11:36:22 2017 
Hi Stefano,

I think your assessment is correct: it is not possible to hide a logbook based on your read/write privileges.

And I'm not
even sure that this would make much sense: at least you need to be able to get to the login page of the logbook.

But if you don't have
    icon2.gif   Re: Hide logbook tab when not authorized, posted by Stefano Bonaldo on Wed Aug 23 20:09:39 2017 
Hi Andreas,

many thanks for your answer. I partially agree with you, because sometimes "for privacy" of my working group I don't want that
other users (external users) know the existance of the other logbooks.
    icon2.gif   Re: Hide logbook tab when not authorized, posted by Andreas Luedeke on Thu Aug 24 11:08:43 2017 
Well, Stefan would need to answer that. But if you are good with C-programming, you might implement it yourself?

There is a way to implement it; but it makes your installation a lot more complicated: you can have two ELOG servers. The first has all logbooks
but requires authentification to read any. The second has only the public logbooks, and they are mirrored from the first.
    icon2.gif   Re: Hide logbook tab when not authorized, posted by Stefan Ritt on Thu Aug 24 11:46:30 2017 
Hi Stefano,

that's what top groups were made for. So make a top group for yourself, and nobody will be able to see them without having the proper URL.
Hiding logbooks from the logbook selection page is not possible since when people bring up that page, they are not yet logged in, so elog does not know
icon5.gif   javascript?, posted by Tim Schelfhout on Mon Sep 4 11:56:47 2017 
Is there anyone out there who can help me get started using javascript in elog ?  Is there an example somewhere ... i suppose you put the code in
the
scripts folder?
    icon2.gif   Re: javascript?, posted by Andreas Luedeke on Mon Sep 4 13:19:33 2017 

This logbook, the forum, provides some javascript code. The code is simply referenced in the footer (Bottom text = <file> | <string>).

<link
rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.6.0/styles/default.min.css"><script
src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.6.0/highlight.min.js"></script><script>hljs.initHighlightingOnLoad();</script>

There's
ELOG V3.1.5-3fb85fa6