Zitat geschrieben von
HaxXorHallo liebe Ilchianer
Wollte mal fragen wie man die Lightbox2 in Ilch in der Gallerie einfügt.
habe mal gesucht auch etwas gefunden aber funktioniert halt leider nicht.
Könntet ihr uns bitte helfen wäre ja sehr schön sone Lightbox.
Danke
betroffene Homepage:
fjr2.de
Hallo,
ich habe hier bisher noch keine direkte Lösung gelesen.
Nach langem probieren habe ich letzenendes die Lösung gefunden.
1. Alle Ordner hochladen.
2.Code für die lightbox.css in (/web/clude/includes/js/lightbox/css):
#lightbox{
position: absolute;
left: 0;
width: 100%;
z-index: 100;
text-align: center;
line-height: 0;
}
#lightbox a img{ border: none; }
#outerImageContainer{
position: relative;
background-color: #fff;
width: 250px;
height: 250px;
margin: 0 auto;
}
#imageContainer{
padding: 10px;
}
#loading{
position: absolute;
top: 40%;
left: 0%;
height: 25%;
width: 100%;
text-align: center;
line-height: 0;
}
#hoverNav{
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
z-index: 10;
}
#imageContainer>#hoverNav{ left: 0;}
#hoverNav a{ outline: none;}
#prevLink, #nextLink{
width: 49%;
height: 100%;
background: transparent url(/include/includes/js/lightbox/images/blank.gif) no-repeat; /* Trick IE into showing hover */
display: block;
}
#prevLink { left: 0; float: left;}
#nextLink { right: 0; float: right;}
#prevLink:hover, #prevLink:visited:hover { background: url(/include/includes/js/lightbox/images/prevlabel.gif) left 15% no-repeat; }
#nextLink:hover, #nextLink:visited:hover { background: url(/include/includes/js/lightbox/images/nextlabel.gif) right 15% no-repeat; }
#imageDataContainer{
font: 10px Verdana, Helvetica, sans-serif;
background-color: #fff;
margin: 0 auto;
line-height: 1.4em;
overflow: auto;
width: 100%
}
#imageData{ padding:0 10px; color: #666; }
#imageData #imageDetails{ width: 70%; float: left; text-align: left; }
#imageData #caption{ font-weight: bold; }
#imageData #numberDisplay{ display: block; clear: left; padding-bottom: 1.0em; }
#imageData #bottomNavClose{ width: 66px; float: right; padding-bottom: 0.7em; }
#overlay{
position: absolute;
top: 0;
left: 0;
z-index: 90;
width: 100%;
height: 500px;
background-color: #000;
}
3. Code für die Usergallery (gallery.htm):
<!--Start LightboxJS2-->
<script type="text/javascript" src="/include/includes/js/lightbox/js/prototype.js"></script>
<script type="text/javascript" src="/include/includes/js/lightbox/js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="/include/includes/js/lightbox/js/lightbox.js"></script>
<link rel="stylesheet" href="/include/includes/js/lightbox/css/lightbox.css" type="text/css" media="screen" />
<!--End LightboxJS2-->
<table width="100%" class="border" border="0" cellspacing="1" cellpadding="3">
<tr class="Chead">
<td colspan="{imgperline}" align="center"><b>{uname}</b></td>
</tr>
<tr>
{EXPLODE}
<td class="{class}" width="{width}%" valign="top" align="center">
<table class="border" border="0" cellspacing="1" cellpadding="0">
<tr>
<td><a target="_blank" href="include/images/usergallery/img_{id}.{endung}" rel="lightbox[gruppe]"><img src="include/images/usergallery/img_thumb_{id}.{endung}" border="0" alt="{name}" title="{name}" /></a></td>
</tr>
</table>
{besch}
</td>
{EXPLODE}
</tr>
</table>
<center>{MPL}</center>
{EXPLODE}
<br /><br />
<form action="index.php?user-usergallery-{uid}" method="POST" enctype="multipart/form-data">
<input type="hidden" name="gesendet" value="yes" />
<fieldset>
<legend><b>{_lang_pictureupload}</b></legend>
<input type="file" size="40" name="file" style="margin-top:5px;" />
<input size="60" name="text" maxlength="255" style="margin-top:5px;" /><br />
<input type="submit" value="{_lang_formsub}" style="margin-top:5px;" />
</fieldset>
</form>
{EXPLODE}
{x}
4.Code für die Gallery(gallery.htm):
{EXPLODE}
<table width="100%" class="border" border="0" cellspacing="0" cellpadding="0">
<tr class="Chead">
<td width="80%" align="center"><br /><b>{_lang_category}</b><br /><br /></td>
<td width="20%" align="center"><br />{_lang_pictures}<br /><br /></td>
</tr>
{EXPLODE}
<tr class="{class}">
<td><br /><br /><a href="index.php?gallery-{id}">{name}</a><br /><span class="smalfont">» {besch}</span><br /><br /></td>
<td align="center">{gallery}</td>
</tr>
{EXPLODE}
</table>
<br /><br />
{EXPLODE}
<table width="100%" class="border" border="0" cellspacing="0" cellpadding="0">
<tr class="Chead">
<td colspan="{imgperline}" align="center"><b>{cname}</b></td>
</tr>
{EXPLODE}
<td class="{class}" width="{width}%" valign="top" align="center">
<div onmouseover="hiddpos('infodiv{id}')" class="layer" id="infodiv{id}" style="position:absolute; top:50px; left:50px; display:none; width:200px; height:200px;">
<table width="100%" class="border" border="0" cellspacing="1" cellpadding="4">
<tr>
<td class="{class}" align="left">
<strong>{_lang_filename}:</strong> {datei_name}
<br /><strong>{_lang_seen}:</strong> {klicks}
<br /><strong>{_lang_voting}:</strong> {vote_wertung}
<br /><strong>{_lang_comments}:</strong> {anz_koms}
<br /><strong>{_lang_desc}:</strong> {besch}
</td>
</tr>
</table>
</div><br />
<table class="border" border="0" cellspacing="0" cellpadding="0">
<tr>
<td onmouseout="hiddpos('infodiv{id}')" onmouseover="alertpos('infodiv{id}')">
<a target="_blank" href="include/images/gallery/img_norm_{id}.{endung}" rel="lightbox[gallery]">
<img src="include/images/gallery/img_thumb_{id}.{endung}" border="0" alt="{datei_name}" title=" " /></a>
</td>
</tr>
</table>
<br />
</td>
{EXPLODE}
</tr>
</table>
<center>{MPL}
<br />
<a href="javascript:history.back(1)"><font color="#FFFFFF" size="+1">⇐ zurück</font></a></center>
<!--Start LightboxJS2-->
<script type="text/javascript" src="/include/includes/js/lightbox/js/prototype.js"></script>
<script type="text/javascript" src="/include/includes/js/lightbox/js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="/include/includes/js/lightbox/js/lightbox.js"></script>
<link rel="stylesheet" href="/include/includes/js/lightbox/css/lightbox.css" type="text/css" media="screen" />
<!--End LightboxJS2-->
Alles direkt kopieren und einfügen. Nicht mehr und nicht weniger und alles funktioniert.
Viel Spaß damit
Zuletzt modifiziert von MichaSV51 am 24.06.2017 - 13:19:46