Mobile app version of vmapp.org
Login or Join
Berryessa370

: Thumbnail only showing link on mediawiki When trying to add a thumbnail to my wiki page it only shows a link to the picture. I'm presuming it has something to do with a missing module. Does

@Berryessa370

Posted in: #Mediawiki

When trying to add a thumbnail to my wiki page it only shows a link to the picture. I'm presuming it has something to do with a missing module. Does anyone know what module controls this or if it is something entirely different?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Berryessa370

1 Comments

Sorted by latest first Latest Oldest Best

 

@Berryessa370

So it turned out to need a rewrite line in the index.php

I found it here
meta.wikimedia.org/wiki/Thumbnails
for anyone else who needs help with this sort of problem.

EDIT

adding these lines to index.php

RewriteCond %{REQUEST_URI} ^/files/thumb/./../.+?([0-9]+)px-(.+)$
RewriteRule ([0-9]+)px-(.+)$ /wiki/thumb.php?w=&f= [L]


you'll need to change the regex pattern depending on your path names and when uploading a thumbnail you will need to check the image pixel resolution and define that when creating your thumbanil

hope this helps :D

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme