Wedge

Public area => The Pub => Topic started by: Arantor on April 25th, 2013, 05:52 PM

Title: Warning Message
Post by: Arantor on April 25th, 2013, 05:52 PM
@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.
Title: Re: Warning Message
Post by: Nao on April 25th, 2013, 08:21 PM
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 ;)
Title: Re: Warning Message
Post by: Arantor on April 25th, 2013, 08:23 PM
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.
Title: Re: Warning Message
Post by: Nao on April 28th, 2013, 09:18 PM
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...
Title: Re: Warning Message
Post by: Nao on April 28th, 2013, 09:20 PM
Hmm... just noticed that my notification cache invalidation doesn't seem to work...
Also, the animation has a glitch in android. Hmm...
Title: Re: Warning Message
Post by: Arantor on April 28th, 2013, 09:35 PM
Quote
Did you have a look at my magical one-line CSS code for the popup animation?
No, I didn't, been busy.
Quote
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 ;)
Title: Re: Warning Message
Post by: Arantor on August 23rd, 2013, 09:31 PM
I'd almost forgotten about this. Still need to think about how this would work visually - XenForo's styling is very subtle but effective.