Topic #2943 (no title)
0 guests and 0 members have recently viewed this.
The top 3 point earners from 14th Dec 2025 to 21st Dec 2025.
| PDStig |
|
|
|---|---|---|
| Gabri |
|
|
| sholzy |
|
|
There are no events at this time
(Click to enlarge)
#1781 - Site-wide Bulletins / Announcements
I suppose we could make an option for the closed site message to show even when the site is open, as a bulletin. That's a nice clean solution.
"On my site I plan on making a lot of announcements and unfortunately I haven't discovered a way to make a mass announcement on all the pages of the site so that people are aware of the announcement. My suggestion is to utilize the preview feature by adding a bar on the header of each page that can be color coded dependent upon the urgency of the announcement. Users can then hover over that bar to see a preview of the announcement. Once they've done that... the announcement bar can then be clicked off and it disappears until the next announcement is made."
It was an invaluable site tool for bringing important info immediately to my members.
It would be nice to have an option to be able to show announcements to: members only, guests only, or both members and guests.
I'm looking forward to seeing this become reality, and because I find it invaluable (for me anyway) when I'm working again, I'll sponsor any remaining balance. (But, please don't wait for me because I don't know how long I'll be out of work.)
I don't think we should tie to the closed-site messaging like I originally suggested as that's a bit convoluted. In v10+ we can have as many config options as we want, no need to try and re-use them.
We'll have 5 new options:
- site_message (message to show, mention it supports Comcode)
- site_message_start_datetime (start date/time)
- site_message_end_datetime (end date/time)
- site_message_status_level (list: inform/notice/warn)
- site_message_usergroup_select (a Selectcode string for filtering by usergroup, provide examples in the description for filtering by members only or by guests only)
We'll update the news tutorial to mention the new options and that you could put a link in the site message to a news article using Comcode, to elaborate on the message.
I want us to be able to support multiple messages, but doing a proper admin management module for it would be serious bloat.
So I'd like site_message to support JSON, which I'll document as an advanced thing in the News tutorial.
Example:
[code="JavaScript"]
{
"messages": [
{
"site_message": "First message",
"site_message_start_datetime": "2017-04-23T18:25:43.511Z",
"site_message_end_datetime": "2017-04-24T18:25:43.511Z",
"site_message_status_level": "inform",
"site_message_usergroup_select": null
},
{
"site_message": "Second message",
"site_message_start_datetime": "2017-04-26T18:25:43.511Z",
"site_message_end_datetime": "2017-04-27T18:25:43.511Z",
"site_message_status_level": "inform",
"site_message_usergroup_select": null
}
]
}
[/code]