Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Open pictures with Fancybox
RateU Offline
Administrator
*******
Posts: 2,350
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

« Next Oldest | Next Newest »

Messages In This Thread
Open pictures with Fancybox - lenox - 05-24-2020, 09:51 PM
RE: Open pictures with Fancybox - RateU - 05-31-2020 04:14 AM
RE: Open pictures with Fancybox - lenox - 06-17-2020, 01:31 AM

 Standard Tools
Forum Jump: