Board Thread:Technical Updates/@comment-26339491-20191203204132/@comment-3218221-20201006151430

I did end up adopting 452's custom "File pages are inaccessible without an account" (paraphrase) PSA/notice that they tacked on to lightboxes. For those interested, .LightboxModal .LightboxHeader:after --still works for UCP wikis (the wiki I trialled the notice on was migrated to UCP; 452's main wiki is pending migration).

However, it looks like the .user specific classes no longer work on UCP wikis, i.e. .user-anon (class for anonymous users) and .user-logged (class for logged in users) classes, last I experienced, have stopped working for UCP wikis (but do work for 'legacy' wikis). So: .user-anon .LightboxModal .LightboxHeader:after This won't work on UCP wikis; you'll have to remove the .user-anon class. I know because I tried the above first and had to trial and error before I realized .user-anon was interfering. Yes, using.LightboxModal .LightboxHeader:after on their own will mean the notice is visible to all users, and, yes, it will be moot for logged in users, but I doubt logged in users will mind seeing the message.

(I do, as a side note, mind somewhat about the myriad class changes and removals UCP is seeing. They did break a few things for migrating wikis. If UCP is going to have equivalent classes to .user-anon and .user-logged, it would sure be nice to know what those are--as you say, be given a "heads up." I guess the class selectors are maybe still subject to change, but hey--the migrated wikis have no choice but to be suddenly subejcted to change, and so far all the class selector changes/removals have been detected by users on an encounter basis.

(e.g. when a wiki I admin was migrated, the background image for the article content 'broke' due to class selector changes. I also had to figure out the correct class selectors for User Page elements on my own. The .user-anon/.user-logged removals I discovered on my own. Still haven't figured out if they have replacements or not.)

I don't mean to digress on a UCP tangent; I realize what thread I'm in. To reiterate, if you are an admin who wants to append a PSA/notice regarding this restriction to your ligthboxes for anons' sake, then appending a PSA to lightboxes via CSS--in lieu of FANDOM doing so--is the most efficient way. It's been months since this technical update rolled out--dear God, has it really been 3/4s of a year?--and I still don't understand why lightboxes don't natively explain this to anons in the first place.