HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

How can I prevent posts with no internal image from showing a preview? Don't show any default image?

Not really a question, I figured this out, but I thought I'd post a solution in case anyone had a similar issue.

Simply set the default image as a 1px x 1px transparent png. You can use mine if you like: https://www.gerhardfourie.com/forum/plugins/Transparent-1px-by-1px.png

That pretty much does the trick 😎

Comments

  • Options

    A further improvement, in case you want you to add a border for instance to your image (you don't want the border around the transparent 1px by 1px)

    Use this in the css:

    img[src*="/forum/plugins/Transparent-1px-by-1px.png"] {display: none;}
    
Sign In or Register to comment.