Notices Enabled for use in the ACP/An ACP-wide notice

frm

Well-known member
I tried to enable a notice for the ACP to tell me whether I am on a dev installation (on dev first, of course) or the production server to be displayed at the top of every page.

It can be confusing at times, even with the forum title changed (as signified by the arrow), as all ACPs look the same, and the board title is the only way to differentiate the two without a notice across all pages (as signified by the question mark).

1735799449603.webp

I thought that this notice criteria would do the trick,

1735799541879.webp

But it looks like the only way to do it would be to enable developer/debug mode and edit the admin templates, which I would highly advise anyone else from trying to do.

There should be an easier identifier across all ACP options if we're changing settings on the live or dev board, with perhaps, the notices system, or another admin option such as a marker that "this is a dev/live installation" option which would display an alert like the notices.
 
Upvote 1
You could change the ACP css.

It would be nice to have an easy way to toggle something on and off though, or set a notice/specific color.
 
You could change the ACP css.
I wouldn't go as far out as a whole new style system for the CSS, but yes, you also could do that by editing the admin templates, which are inaccessible by default and it needs to be configured to be able to be edited. That's above the average XF user's knowledge, though.

A warning across the top (red/yellow) edits made on a live site and green on the dev environment would be the easiest middle-ground for everyone.

If the notices system isn't built to handle admin:PAGE_CONTAINER, and that's harder than a radio box for "Is this a live installation?" (Yes/No) to set that notice across the top, then go with the easiest implementation as I Frankly see no reason for notices (beyond the scope I'm proposing) to be displayed to a very limited amount of people with ACP access.
 
I wouldn't go as far out as a whole new style system for the CSS, but yes, you also could do that by editing the admin templates, which are inaccessible by default and it needs to be configured to be able to be edited. That's above the average XF user's knowledge, though.

All you need to do is add this to the src/config.php file

Code:
$config['adminColorHueShift'] = 250;

Adjust as desired
 
All you need to do is add this to the src/config.php file

Code:
$config['adminColorHueShift'] = 250;

Adjust as desired
That's actually not that bad, and fits nicely for a solution to this for me (I'd still prefer the notice banner on top of it, but I can do color association).

However, it still doesn't quite solve it for every user as there are some (from my recent viewing on here) visually impaired people. A notice that could be read out might be helpful for them.
 
That's actually not that bad, and fits nicely for a solution to this for me (I'd still prefer the notice banner on top of it, but I can do color association).

However, it still doesn't quite solve it for every user as there are some (from my recent viewing on here) visually impaired people. A notice that could be read out might be helpful for them.
Its what I do as well. Red is production (danger). Blue is dev.
 
Back
Top Bottom