Site in read-only mode

This site is now read-only following the release of MyBB 1.8 and the new mods site.

If you are looking for MyBB 1.8 mods please click here to visit the new mods site.

You can continue to download submissions for MyBB 1.6 and earlier here, however new submissions will only be accepted via the new mods site.

Write Review

Reviews

FancyZoom - 1.2 by querschlaeger

This is one of my favourite plug-ins. My members are fond of it.

Written By: Automotive, 13th March 2010

Very nice! Thank you!

Written By: all2himweo, 16th April 2010

The demonstration looks really amazing, anyway, it's not working for rescaled images using another plugin :-(

Written By: Dread Knight, 7th June 2010

Works perfect on 1.6 =D

Written By: Adicted, 7th August 2010

"Dieses Plugin ist nicht kompatibel mit MyBB 1600 "
This int compatible with my MyBB version ...

Written By: juergenhold, 4th November 2010

Simply change the compatibility section of the PHP file, so it will install on 1.6x, and it works great! Thanks very much!

Written By: Jayfore, 28th February 2011

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;
}
}
}


?>

Written By: Ajmokossi, 16th February 2014

Write Review