Third migration, once again for a niche forum (Volkswagen Campers vans)

The forum was old and users relied on external image hosting. They used a LOT of images in their forum. 40000 posts on 300000 contained at least 1 image, often way more. I even saw a post containing 150 images (!).

Because old images hosting services are now down, the vast majority (maybe… 95%?) of the forum’s images are broken ad vitam (fun fact: even if 5% of the old images remain, they still take 10 GB of disk space after being uploaded to Discourse…), leading to a lot of broken image icons in older topics:

We replaced these icons with a custom image :

The text says “Oops! Image not found”. The custom image adds a bit of personality to the forum, kind of like the custom loading spinner on unicyclist.com.

// Remplacement des icônes d'images invalides par une icône personnalisée :
.broken-image {
    display: block;
    width: 227px;
    height: 51px;
    margin: 10px 0;
    background: url($broken-image);
    border: none;
    svg {
        display: none;
    }
}

Easy customization :+1:

10 Likes