MyBB Community Forums

Full Version: FancyZoom Plugin for MyBB (the better Lightbox)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8
I actually need this off my-bb but thanks anyways Smile
not working on my site..ive activated and nothing happens
(2011-08-26, 04:41 AM)Jayfore Wrote: [ -> ]I have been using FancyZoom for a number of months, and LOVE it. However, I have noticed one problem... Let's say I have a post, where I insert 20 different picture attachments, all of different sizes. If I click thru each of them one at a time, to view them, some will inevitably open in a popup window of the wrong size, which results in a stretched and distorted image. Is this a known issue?

My second question is whether there is any chance of enhancing this plugin, so it will resize images inserted w/ IMG code (to a user-defined thumbnail size), and then treat those images the same way as attachments and links (click to see the full image)? Another plugin out there does this by adding its own MyCode for "IMG", but it has a couple failings that FancyZoom does not.

Thank you!

Hi Querschlaeger, I know it has been a long time since you have done any updates to this plugin (IMHO, the best all-around plugin for image display), but I'm hoping you might be open to making a few more enhancements?

  1. Can the issue of incorrect image display (stretching, etc.) be fixed (please see quoted post above)?
  2. Possible to add an option to use the Shadowbox.js treatment for images?
  3. Possible to create additional ACP config options to go along with this plugin (listed below)?
NEW ACP OPTIONS?
  • User-specified thumbnail dimensions
  • Should images in LINKS get FancyZoom (yes/no)?
  • Should images inserted w/ IMG code get FancyZoom (yes/no)?
  • Should attached images get FancyZoom (yes/no)?
  • Should images in signatures get FancyZoom (yes/no)?
  • File extensions to (globally) exclude from FancyZoom
  • Specific filename(s) to (globally) exclude from FancyZoom
  • Should the background be darkened when opening the image (Shadowbox.js style)?

Thanks so much! Your plugins are the true must-haves and workhorses of the MyBB world. Smile
(2011-10-04, 02:19 AM)melchor Wrote: [ -> ]not working on my site..ive activated and nothing happens

Though this is a very old reply, I have the same issue. Installed the plugin, and it said its installed in the Plugin list. But there are no settings whatsoever. And it just doesn't work at all.
If somebody need to have fancyzoom also in portal...

change the fancyzoom.php to this code: (red part is new)


red part is new:
Quote:<?php

/*
FancyZoom Plugin for MyBB
Copyright © 2009 Sebastian Wunderlich

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

if(!defined("IN_MYBB"))
{
die();
}

$plugins->add_hook("pre_output_page","fancyzoom");

function fancyzoom_info()
{
return array
(
"name"=>"FancyZoom",
"description"=>"Open images and thumbnails with FancyZoom.",
"website"=>"http://mods.mybboard.net/view/fancyzoom",
"author"=>"Sebastian Wunderlich",
"version"=>"1.2",
"guid"=>"b67008c6447fe5f3b27ee7bcb8e1fc6e",
"compatibility"=>"16*"
);

}

function fancyzoom($page)
{
global $mybb,$db;
if(THIS_SCRIPT=="showthread.php")
{
$result=$db->simple_select("threads","fid","tid='".intval($mybb->input["tid"])."'",array("limit"=>1));
$thread=$db->fetch_array($result);
$permissions=forum_permissions($thread["fid"]);
if(!empty($thread)&&$permissions["candlattachments"]==1)
{
$page=str_replace("</head>",'<script type="text/javascript" src="'.$mybb->settings["bburl"].'/jscripts/fancyzoom/FancyZoom.js"></script>
<script type="text/javascript" src="'.$mybb->settings["bburl"].'/jscripts/fancyzoom/FancyZoomHTML.js"></script>
</head>',$page);
$page=preg_replace('/\<body(.*)\>/Usi','<body$1 onload="setupZoom()">',$page);
$page=preg_replace('/\<a href="attachment.php\?aid=([0-9]+)" target="_blank"\>\<img/Usi','<a href="attachment.php?aid=$1" rel="fancyzoom"><img',$page);
return $page;
}
}
if(THIS_SCRIPT=="portal.php")
{

{
$page=str_replace("</head>",'<script type="text/javascript" src="'.$mybb->settings["bburl"].'/jscripts/fancyzoom/FancyZoom.js"></script>
<script type="text/javascript" src="'.$mybb->settings["bburl"].'/jscripts/fancyzoom/FancyZoomHTML.js"></script>
</head>',$page);
$page=preg_replace('/\<body(.*)\>/Usi','<body$1 onload="setupZoom()">',$page);
$page=preg_replace('/\<a href="attachment.php\?aid=([0-9]+)" target="_blank"\>\<img/Usi','<a href="attachment.php?aid=$1" rel="fancyzoom"><img',$page);
return $page;
}
}

}


?>
Here for anyone wanting it:

FancyZoom (1.3)
Open images and thumbnails with FancyZoom.
Created by Sebastian Wunderlich & updated by Vintagedaddyo

* Now works on portal.php
* Plugin now updated for 1.8.x compat usage

[attachment=37963]
(2016-11-23, 03:42 AM)vintagedaddyo Wrote: [ -> ]Here for anyone wanting it:

FancyZoom (1.3)
Open images and thumbnails with FancyZoom.
Created by Sebastian Wunderlich & updated by Vintagedaddyo

* Now works on portal.php
* Plugin now updated for 1.8.x compat usage

Thanks for updating.  I still use and love this plugin.
(2016-11-23, 03:42 AM)vintagedaddyo Wrote: [ -> ]Here for anyone wanting it:

FancyZoom (1.3)
Open images and thumbnails with FancyZoom.
Created by Sebastian Wunderlich & updated by Vintagedaddyo

* Now works on portal.php
* Plugin now updated for 1.8.x compat usage

Hello vintagedaddyo , thanks for this nice update .
Can you add some overlay for the background when image zoom in .
I saw the example and quick nice from here
http://www.dfc-e.com/metiers/multimedia/...fancyzoom/
Is it really working in 1.8.x? Have this updated version (1.3), and nothing on 1.8.9.
(2019-10-12, 05:07 PM)S474N Wrote: [ -> ]Is it really working in 1.8.x? Have this updated version (1.3), and nothing on 1.8.9.

Couldn't tell you as I do not use mybb anymore nor am I any longer providing support or continuining development on the approx 160+ past projects I had. But 1.3 was a few years back and I believe the last time I looked at it in like 2018 version was 1.4 https://github.com/vintagedaddyo/MyBB_Plugin-FancyZoom ..., worked fine then but I also was using latest versions of bbs software at the time. 1.8.9 is clearly a ways back as there has been like what approx 22 core updatea since then? As I am no longer providing support, I do not have said free time to install a 1.8.9 localhost and then test the past 1.3 version as that would imply that I am providing support or continuing project dev when I no longer am. Sorry.
Pages: 1 2 3 4 5 6 7 8