PDA

View Full Version : How to style a reported post


MistViper
03-15-2015, 11:34 AM
So that mods and admins easily see a post or topic that got reported.

Is there a plugin for this? I would like to be able to style with CSS the postbit or topic.

kh99
03-15-2015, 01:07 PM
Well, looking at Joe's mod for removing the report button: https://vborg.vbsupport.ru/showthread.php?t=268799 it looks like if $post['reportthreadid'] > 0 then the post has been reported. But I don't think you can put conditionals in a CSS template, so you'd have to do something like include a class only if that's true, like maybe:
<div class="<vb:if condition="$post['reportthreadid'] > 0"> reported_post </vb:if>">...

MistViper
03-15-2015, 05:58 PM
Well, looking at Joe's mod for removing the report button: https://vborg.vbsupport.ru/showthread.php?t=268799 it looks like if $post['reportthreadid'] > 0 then the post has been reported. But I don't think you can put conditionals in a CSS template, so you'd have to do something like include a class only if that's true, like maybe:
<div class="<vb:if condition="$post['reportthreadid'] > 0"> reported_post </vb:if>">...

That could work. :D Will try it out tomorrow or so.