Hi all,
I use the FancyApps to create the pop up image. Here's what I did:
- Make sure you are using the latest version of this extension
composer update flagrow/upload
php flarum cache:clear
- Put these codes to Custom Header
<script src="//code.jquery.com/jquery-3.3.1.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.3.5/jquery.fancybox.min.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.3.5/jquery.fancybox.min.js"></script>
- Change the codes in the image-preview.blade.php template. It is located in the /vendor/flagrow/upload/resources/templates
<a data-fancybox="gallery" href="{@url}" >
<img src="{@url}" title="{@base_name}" />
</a>
- On the File Upload setting make sure you choose Complete image preview template
If it is not working, you may need to clear the cache again.
Hope this help. Best regards.