Arantor

  • As powerful as possible, as complex as necessary.
  • Messages: 14 278
Warning Message
« le 25 Avril 2013 à 17:52 »
@Nao, would *really* appreciate your insight on these.

Moderated messages get a warning at the top saying something to the effect of 'Hey, this message is moderated!' and some months back I added in a facility to (temporarily) display the reason for moderation underneath it. I've since made that more permanent, but that's not really what I want to talk about. I'm just giving context: we have somewhere to store metadata about a message.

I've attached a picture to show what this looks like. I'd note that there are two visual issues I've noticed that (AFAIK) aren't the result of what I have locally - .postbg.approve isn't exactly much different to straight .postbg (or .postbg2 as per the immediately preceding message) and there's not a gap between messages like there should be. (NB We pretty much inherited this one from what I remember.)

Now, I want to add something else to the mix: notice for a member being warned for a given message. XenForo has this and I think it'd be a useful facility to add.

My concern is where to put it or what it should look like. I've attached an example from XenForo. I want to do something similar but I don't know where to put it in the template exactly. Or what it should look like.

📎 moderation_message.png - 55 ko, 951x634, vu 399 fois.

📎 xenforo_warning.png - 13.1 ko, 936x280, vu 400 fois.

When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial

Nao

  • Dadman with a boy
  • Messages: 16 082
Re: Warning Message
« Réponse #1, le 25 Avril 2013 à 20:21 »
Seen this topic... (Trying to keep up with the notifications, now... BTW, updated to rev 2072, hope you like the new popup animation, not quite what I envisioned at first, but it's the only thing that I like that doesn't require 3KB of JS and CSS :lol:)

Will reply soon. Busy IRL, for now ;)

Arantor

  • As powerful as possible, as complex as necessary.
  • Messages: 14 278
Re: Warning Message
« Réponse #2, le 25 Avril 2013 à 20:23 »
OT: Yes, the new animation is fantastic. I haven't seen the code but I'm curious to know how the hell you pulled it off without a ton of code.

There's no real hurry on this part, I still need to build all the stuff to actually capture and save the data in the first place, it's purely a display thing, it'll be in $message['warning_msg'] for use in Msg.template.php.

Nao

  • Dadman with a boy
  • Messages: 16 082
Re: Warning Message
« Réponse #3, le 28 Avril 2013 à 21:18 »
Did you have a look at my magical one-line CSS code for the popup animation? ;)

As for your OP, I'm fine with the styling of everything. I can always tweak it a bit later if you want. I shall also have a look at the padding issue! Tomorrow, hopefully...
Re: Warning Message
« Réponse #4, le 28 Avril 2013 à 21:20 »
Hmm... just noticed that my notification cache invalidation doesn't seem to work...
Also, the animation has a glitch in android. Hmm...

Arantor

  • As powerful as possible, as complex as necessary.
  • Messages: 14 278
Re: Warning Message
« Réponse #5, le 28 Avril 2013 à 21:35 »
Citation
Did you have a look at my magical one-line CSS code for the popup animation?
No, I didn't, been busy.
Citation
As for your OP, I'm fine with the styling of everything. I can always tweak it a bit later if you want. I shall also have a look at the padding issue! Tomorrow, hopefully...
That wasn't technically what I was asking ;) What I've shown is what's already in there for moderated posts and has been there for ages. The bit I'm asking about is a *new* thing that may or may not be in the same place but potentially visible to more people.

A message about a post generating a warning could be visible to all logged in users. I don't want to add something like that just randomly ;)
Re: Warning Message
« Réponse #6, le 23 Août 2013 à 21:31 »
I'd almost forgotten about this. Still need to think about how this would work visually - XenForo's styling is very subtle but effective.