Fancybox v1.5 für IlchClan 1.1:
""
""
""
""
""
""
""
""
""
""
""
"
Beschreibung:
-------------
Intigration des Fancybox Scipts in Ilch für Gallary und BBCode 2.0 Youtube Videos
Entwickelt
----------
° von http:
° Angepasst von dAnIiiiEl
° Ilch
Installation:
-------------
° BBCode 2.0 installieren
° Alles aus dem Upload Ordner Hochladen
° Folgendes in den <head></head> Bereich deines Aktuellen Designs einfügen
<link rel=
"stylesheet"
type=
"text/css"
href=
"include/extras/fancybox/jquery.fancybox.css"
media=
"screen"
/>
<script type=
"text/javascript"
src=
"include/includes/js/jquery-1.3.2.min.js"
></script>
<script type=
"text/javascript"
src=
"include/extras/fancybox/jquery.fancybox-1.2.1.pack.js"
></script>
<script type=
"text/javascript"
src=
"include/extras/fancybox/jquery.easing.1.3.js"
></script>
<script type=
"text/javascript"
>
$(document).ready(
function
() {
$(
"table#galimages a"
).fancybox(
{
'zoomSpeedIn'
: 800,
'zoomSpeedOut'
: 500,
'zoomSpeedChange'
: 800,
'zoomOpacity'
: 0.5,
'overlayOpacity'
: 0.5,
'easingIn'
:
'easeOutBack'
,
'easingOut'
:
'easeInBack'
,
'overlayShow'
: true
}
);
$(
"div#bbvideo a"
).fancybox(
{
'zoomSpeedIn'
: 800,
'zoomSpeedOut'
: 500,
'zoomSpeedChange'
: 800,
'zoomOpacity'
: 0.5,
'overlayOpacity'
: 0.5,
'overlayShow'
: true
}
);
});
</script>
Fakten zum Modul:
-----------------
° Nur YouTube Videos
° Bei Interesse, im extras Ordner das Orginal Fancybox Script mit Beispielen!
° Die beschreibung der Bilder wird als Titel des Bildes genommen!
° Achtung: Es wird folgende Datei von bbcode2 übeschrieben:
include
\includes\
class
\bbcode.php
Es wurde nur eine Zeile bearbeitet (Zeile: 526):
if
(
$typ
==
"youtube"
) {
$str
=
"<div id=\"bbvideo\"><a href=\"#"
.
$id
.
"\"><img alt=\"\" src=\"http://i.ytimg.com/vi/"
.
$id
.
"/default.jpg\"></a><div style=\"display:none\" id=\""
.
$id
.
"\"><object width=\""
.
$this
->info[
'YoutubeBreite'
].
"\" height=\""
.
$this
->info[
'YoutubeHoehe'
].
"\"><param name=\"movie\" value=\"http://www.youtube.com/v/"
.
$id
.
"\"></param><embed src=\"http://www.youtube.com/v/"
.
$id
.
"\" type=\"application/x-shockwave-flash\" width=\""
.
$this
->info[
'YoutubeBreite'
].
"\" height=\""
.
$this
->info[
'YoutubeHoehe'
].
"\" bgcolor=\""
.
$this
->info[
'YoutubeHintergrundfarbe'
].
"\"></embed></object></div></div>"
;
}
######################################################
Einbau in PicOfX:
######################################################
- Box PicOfX im ordner
include
/boxes mit einem editor šffnen
- suche nach:
-----------------------------------------------------
<?php
echo
'<table width="100%" border="0" cellpadding="2" cellspacing="0"><tr><td align="center">'
;
echo
'<a target="_blank" href="index.php?gallery-show-'
.
$cid
.
'-p'
.
$anz
.
'" onClick="return picOfxOeffneFenster('
.
$anz
.
','
.
$cid
.
');"><img src="include/images/gallery/'
.
$picofxThumb
.
'" width="'
.
$picofxImg
[0].
'" height="'
.
$picofxImg
[1].
'" alt=""></a>'
;
echo
'</td></tr></table>'
;
}
else
{
echo
$lang
[
'nothingavailable'
];
}
?>
-----------------------------------------------------
und ersetze es durch:
-----------------------------------------------------
<?php
echo
'<table width="100%" id="galimages" border="0" cellpadding="2" cellspacing="0"><tr><td align="center">'
;
echo
'<a rel="galimagesrel" href="index.php?gallery-show-'
.
$cid
.
'-p'
.
$anz
.
'"><img src="include/images/gallery/'
.
$picofxThumb
.
'" width="'
.
$picofxImg
[0].
'" height="'
.
$picofxImg
[1].
'" alt=""></a>'
;
echo
'</td></tr></table>'
;
}
else
{
echo
$lang
[
'nothingavailable'
];
}
?>
-----------------------------------------------------
#####################################################
Einbau in Usergallery:
#####################################################
- …ffne
include
/templates/user/gallery.htm
-suche nach:
------------------------------------------------------
<table
class
=
"border"
border=
"0"
cellspacing=
"1"
cellpadding=
"0"
>
<tr>
<td><a target=
"_blank"
href=
"include/images/usergallery/img_{id}.{endung}"
><img src=
"include/images/usergallery/img_thumb_{id}.{endung}"
border=
"0"
alt=
"{name}"
title=
"{name}"
/></a></td>
</tr>
</table>
------------------------------------------------------
und ersetze es durch:
------------------------------------------------------
<table
class
=
"border"
id=
"galimages"
border=
"0"
cellspacing=
"1"
cellpadding=
"0"
>
<tr>
<td><a rel=
"galimagesrel"
href=
"include/images/usergallery/img_{id}.{endung}"
><img src=
"include/images/usergallery/img_thumb_{id}.{endung}"
border=
"0"
alt=
"{name}"
title=
"{name}"
/></a></td>
</tr>
</table>
-----------------------------------------------------
Bekannte Einschränkungen / Fehler:
----------------------------------
° Nur YouTube Videos
Haftungsausschluss:
-------------------
Ich übernehme keine Haftung für Schäden,
die
durch dieses Skript entstehen.
Benutzung ausschließlich AUF EIGENE GEFAHR.