Are there any way of displaying a "Mesage of the day" to the users of Postorius and Hyperkitty?
Henrik Rasmussen writes:
Are there any way of displaying a "Mesage of the day" to the users of Postorius and Hyperkitty?
Not built in to those applications. However, you could easily alter a template, possibly the base template, to include a file would contain your message with appropriate formatting. Django has a conditional include feature so you wouldn't get an error and no glitch in the display if the file weren't present.
Extensions to the idea would include putting the formatting in CSS (sort of pointless by itself) and adding Django code to check whether the user's previous login was before the MOTD was changed (and then the CSS could be used to hide the message in case they had logged in recently, and presumably already saw it).
It wouldn't be hard to add a MOTD table to Django, and then you could display all messages more recent than previous login. I'm not interested in doing this myself but would be willing to help a volunteer write the code and get it committed (subject to Steering Committee consensus, but I don't see why not).
Steve
participants (2)
-
Henrik Rasmussen
-
Stephen J. Turnbull