Solved: 5 Years, 9 Months ago [How To?] Change the color of soft deleted posts
Solved: 5 Years, 9 Months ago
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.
Solved: 5 Years, 9 Months ago
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 -->
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 */}
Solved: 5 Years, 9 Months ago
It took a little tweaking but it worked! Thank you so much!

Forum Jump:

Users browsing this thread: 1 Guest(s)