Changes between Version 6 and Version 7 of MotdPlugin
- Timestamp:
- Mar 16, 2011, 7:51:08 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MotdPlugin
v6 v7 28 28 message_file = /data/messag_of_the_day.ini 29 29 message_dir = /data/motd.d 30 date_format = <reserved for future use> 30 date_format = <planned> 31 frame_width = <motd-frame width in pixel> 32 frame_height = <motd-frame height in pixel> 31 33 }}} 32 34 … … 37 39 * default: /data/motd.d 38 40 * directory containing HTML-files with messages to display 39 date_format 41 date_format (planned) 40 42 * default: %Y-%m-%d %H:%M 41 43 * allows configuration of the date-format for parameter ''valid_until''. format is given in python 'datetime' format. 44 frame_width 45 * default: 400px 46 * sets the width of the MOTD-frame in pixel (range: 400-900) 47 frame_height 48 * default: 300px 49 * sets the height of the MOTD-frame in pixel (range: 300-800) 42 50 43 51 === motd.ini file === … … 50 58 priority = <message priority, for future use> 51 59 valid_until = <expiration date for message> 52 repeat = <for future use>60 repeat = n-i 53 61 }}} 54 62 55 63 The section name (!MsgName) has to be unique within the message file. 56 64 Format of the expiration date is (currently) "yyyy-mm-dd HH:MM", next version will have a configurable format. 65 66 ''repeat'' specifies how often (n) and in which interval (i) the message should be displayed. ''n'' must be a positive integer and ''i'' 67 must be in the range of: ''m'' for minutely, ''h'' for hourly, ''d'' for daily and ''w'' for weekly. 57 68 58 69 … … 68 79 title = New version of xxx has been installed 69 80 valid_until = 2011-03-03 23:59 81 repeat = 3-d 70 82 }}} 71 83 72 The first example should be selfexplaining. In the second example there is the ''message'' parameter missing! In that case MotdPlugin searches for a file named ''Message2.html'' in the directory specified by ''message_dir'' in trac.ini and displays the complete content of this file. 84 The first example should be selfexplaining. In the second example there is the ''message'' parameter missing! In that case MotdPlugin searches for a file named ''Message2.html'' in the directory specified by ''message_dir'' in trac.ini and displays the complete content of this file. This message will be shown 3 times, interval is daily. If the expiration date is before the repeat period finishes, the message is no longer shown. 73 85 74 86