Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Open pictures with Fancybox
lenox Offline
Junior Member
**
Posts: 15
Joined: Mar 2018
Post: #1
Question Open pictures with Fancybox
Hello I wanted to ask if there is a possibility to open images in the Xthreads plugins modal with the  Fancybox Plugin from mybb?

Among other things I use the Restaurant Review plugin.

greetings
lenox
(This post was last modified: 05-24-2020 09:52 PM by lenox.)
05-24-2020 09:51 PM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,349
Joined: Mar 2010
Post: #2
RE: Open pictures with Fancybox
It seems the plugin uses this:
https://fancyapps.com/fancybox/3/

If so, you can add this to the img tags:

Code:
data-fancybox


Example for the Restaurant Review, edit your Display Format of File for restaurant Photo/resrev_photo into:

Code:
<if THIS_SCRIPT == 'forumdisplay.php' then><a href="{$threadurl}"><img src="{URL}/thumb120x90" alt="{FILENAME}" /></a><else><a href="{URL}" data-fancybox><img src="{URL}/thumb200x150" alt="{FILENAME}" /></a></if>


Reference:
https://fancyapps.com/fancybox/3/docs/


05-31-2020 04:14 AM
Find all posts by this user Quote this message in a reply
lenox Offline
Junior Member
**
Posts: 15
Joined: Mar 2018
Post: #3
RE: Open pictures with Fancybox
Thanks that works without problems.
06-17-2020 01:31 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: