MyBB Community Forums

Full Version: Change the color of soft deleted posts
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm really new to MyBB but is there a way to make soft deleted posts look different to other posts in a thread? At the moment on my board, there is no way to tell what is soft-deleted and what is not as you browse a thread as a moderator. 

If possible, I'd like to recolor the .post_content for all soft-deleted posts.
Are you using a custom theme?

This is more or less how I've achieved a similar effect for my theme. Wrap the contents of your postbit template with this:
<div class="postbitVisibility {$unapproved_shade}">
<!-- template contents here -->
</div>
Note that the variable {$unapproved_shade} may be incorrect, but I'm almost certain that it's the right one

I have it set so that all deleted/unapproved posts are transparent, if you want to do this, add this to your CSS:
.postbitVisibility.unapproved_post, .postbitVisibility.deleted_post {opacity:0.3;}

alternatively, if you'd like to just target .post_content, add this:
.postbitVisibility.unapproved_post .post_content, .postbitVisibility.deleted_post .post_content {/* styles */}
It took a little tweaking but it worked! Thank you so much!