Bei PicofX geht weiterhin das normale neue Fenster auf.
Was muss ich wo ändern, daß die PicofX auch die Fancybox verwendet?
Hab davon so gut wie keine Ahnung, deswegen wäre eine EINFACHE Erklärung sehr hilfreich

Vielen Dank!
Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
Geschlossen |
<?php /* IlchClan Pic of the X modul -------------------------------------------------------------| Copyright : Copyright by Manuel | E-Mail : Webmaster@ilch.de | Internet : www.ilch.de | Version : v.1 | Lastupdate : 20.12.2005 | Modul Copyright : C by David | ------------------------------------------------------------*/ defined ('main') or die ( 'no direct access' ); $svResult = db_query('SELECT * FROM prefix_allg WHERE k = \'picofx\''); while($saRow = db_fetch_assoc($svResult)) { $picofxOpts[$saRow['v1']] = $saRow['v2']; } //var_dump($picofxOpts); $picofxNow = date('Y-m-d'); // pruefen ob das bild gewechselt werden muss. if($picofxOpts['nextchange'] == $picofxNow || $picofxOpts['nextchange'] < $picofxNow) { $picofxOpts['pic'] = @db_result(db_query("SELECT id FROM prefix_usergallery ORDER BY RAND() LIMIT 1"),0); if (!empty($picofxOpts['pic'])) { $picofxOpts['pic'] .= '.'.@db_result(db_query("SELECT endung FROM prefix_usergallery WHERE id = ".$picofxOpts['pic']),0); } $picofxNextChange = date('Y-m-d', time() + 3600 * 24 * $picofxOpts['interval']); // geaendertes pic in db speichern db_query('UPDATE prefix_allg SET v2 = \''. $picofxOpts['pic'] .'\' WHERE k = \'picofx\' AND v1 =\'pic\' LIMIT 1'); db_query('UPDATE prefix_allg SET v2 = \''. $picofxNextChange .'\' WHERE k = \'picofx\' AND v1 =\'nextchange\' LIMIT 1'); } $picofxThumb = 'img_thumb_'.$picofxOpts['pic']; if ($picofxOpts['pic'] != '' AND file_exists ('include/images/usergallery/'.$picofxThumb)) { $picofxThumb = 'img_thumb_'.$picofxOpts['pic']; $picofxImg = getimagesize('include/images/usergallery/'.$picofxThumb); if($picofxImg[0] < $picofxOpts['picwidth']) { $picofxImg[1] = @ceil(($picofxImg[1] / $picofxImg[0]) * $picofxOpts['picwidth']); $picofxImg[0] = $picofxOpts['picwidth']; } $imgformate = array(".jpg", ".gif", ".png", ".JPG", ".GIF", ".PNG"); $pxidaus = str_replace($imgformate,'',$picofxOpts['pic']); $userid = db_result(db_query("SELECT uid FROM prefix_usergallery WHERE id = ".$pxidaus),0); $besch = db_result(db_query("SELECT besch FROM prefix_usergallery WHERE id = ".$pxidaus." LIMIT 1"),0); $picbesch = substr($besch,0,18).'...'; $ergu = db_query("SELECT id,name FROM prefix_user WHERE id = ".$userid." LIMIT 1"); while ($rowu = db_fetch_object($ergu) ) { echo '<table id="galimages" width="100%" border="0" cellpadding="2" cellspacing="0"><tr><td align="center">'; echo '<a rel="galimagesrel" href="include/images/usergallery/img_'.$picofxOpts['pic'].'"><img src="include/images/usergallery/'.$picofxThumb.'" width="'.$picofxImg[0].'" height="'.$picofxImg[1].'" alt=""></a>'; echo '</td></tr></table><div align="center">'.$picbesch.'<div align="center">von <a href="index.php?user-details-'.$rowu->id.'">'.$rowu->name.'</a></div>'; } } else { echo $lang['nothingavailable']; } ?>
<?php /* ilchClan Pic of the X modul -------------------------------------------------------------| Copyright : copy by Manuel | E-Mail : Webmaster@ilch.de | Internet : www.ilch.de | Version : v.1 | Lastupdate : 20.12.2005 | Modul Copyright : copy by David "scarfhogg" | ------------------------------------------------------------*/ defined ('main') or die ( 'no direct access' ); $svResult = db_query('SELECT * FROM prefix_allg WHERE k = \'picofx\''); while($saRow = db_fetch_assoc($svResult)) { $picofxOpts[$saRow['v1']] = $saRow['v2']; } //var_dump($picofxOpts); $picofxNow = date('Y-m-d'); // pruefen ob das bild gewechselt werden muss. if($picofxOpts['nextchange'] == $picofxNow || $picofxOpts['nextchange'] < $picofxNow) { if($picofxOpts['directory'] == 0) { $picofxOpts['pic'] = @db_result(db_query("SELECT id FROM prefix_gallery_imgs ORDER BY RAND() LIMIT 1"),0); } else { $picofxOpts['pic'] = @db_result(db_query("SELECT id FROM prefix_gallery_imgs WHERE cat = ".$picofxOpts['directory']." ORDER BY RAND() LIMIT 1"),0); } if (!empty($picofxOpts['pic'])) { $picofxOpts['pic'] .= '.'.@db_result(db_query("SELECT endung FROM prefix_gallery_imgs WHERE id = ".$picofxOpts['pic']),0); } $picofxNextChange = date('Y-m-d', time() + 3600 * 24 * $picofxOpts['interval']); // geaendertes pic in db speichern db_query('UPDATE prefix_allg SET v2 = \''. $picofxOpts['pic'] .'\' WHERE k = \'picofx\' AND v1 =\'pic\' LIMIT 1'); db_query('UPDATE prefix_allg SET v2 = \''. $picofxNextChange .'\' WHERE k = \'picofx\' AND v1 =\'nextchange\' LIMIT 1'); } $picofxThumb = 'img_thumb_'.$picofxOpts['pic']; if ($picofxOpts['pic'] != '' AND file_exists ('include/images/gallery/'.$picofxThumb)) { $picofxThumb = 'img_thumb_'.$picofxOpts['pic']; $picofxImg = getimagesize('include/images/gallery/'.$picofxThumb); if($picofxImg[0] < $picofxOpts['picwidth']) { $picofxImg[1] = @ceil(($picofxImg[1] / $picofxImg[0]) * $picofxOpts['picwidth']); $picofxImg[0] = $picofxOpts['picwidth']; } list ($id, $endung) = explode('.', $picofxOpts['pic']); if ($picofxOpts['directory'] == 0) { $cid = db_result(db_query("SELECT cat FROM prefix_gallery_imgs WHERE id = ".$id),0); } else { $cid = $picofxOpts['directory']; } $anz = db_result(db_query("SELECT COUNT(*) FROM prefix_gallery_imgs WHERE id < ".$id." AND cat = ".$cid),0); $weite = $allgAr['gallery_normal_width']+30; ?> <script language="JavaScript" type="text/javascript"> <!-- function picOfxOeffneFenster (bildr, cat) { var fenster = window.open ('index.php?gallery-show-'+cat+'-p'+bildr,'showBild','scrollbars=yes,height=600,width=<?php echo $weite; ?>,left=200,status=yes'); fenster.focus(); return (false); } //--> </script> <?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']; } ?>
<?php /* ilchClan Pic of the X modul -------------------------------------------------------------| Copyright : copy by Manuel | E-Mail : Webmaster@ilch.de | Internet : www.ilch.de | Version : v.1 | Lastupdate : 20.12.2005 | Modul Copyright : copy by David "scarfhogg" | ------------------------------------------------------------*/ defined ('main') or die ( 'no direct access' ); $svResult = db_query('SELECT * FROM prefix_allg WHERE k = \'picofx\''); while($saRow = db_fetch_assoc($svResult)) { $picofxOpts[$saRow['v1']] = $saRow['v2']; } //var_dump($picofxOpts); $picofxNow = date('Y-m-d'); // pruefen ob das bild gewechselt werden muss. if($picofxOpts['nextchange'] == $picofxNow || $picofxOpts['nextchange'] < $picofxNow) { if($picofxOpts['directory'] == 0) { $picofxOpts['pic'] = @db_result(db_query("SELECT id FROM prefix_gallery_imgs ORDER BY RAND() LIMIT 1"),0); } else { $picofxOpts['pic'] = @db_result(db_query("SELECT id FROM prefix_gallery_imgs WHERE cat = ".$picofxOpts['directory']." ORDER BY RAND() LIMIT 1"),0); } if (!empty($picofxOpts['pic'])) { $picofxOpts['pic'] .= '.'.@db_result(db_query("SELECT endung FROM prefix_gallery_imgs WHERE id = ".$picofxOpts['pic']),0); } $picofxNextChange = date('Y-m-d', time() + 3600 * 24 * $picofxOpts['interval']); // geaendertes pic in db speichern db_query('UPDATE prefix_allg SET v2 = \''. $picofxOpts['pic'] .'\' WHERE k = \'picofx\' AND v1 =\'pic\' LIMIT 1'); db_query('UPDATE prefix_allg SET v2 = \''. $picofxNextChange .'\' WHERE k = \'picofx\' AND v1 =\'nextchange\' LIMIT 1'); } $picofxThumb = 'img_thumb_'.$picofxOpts['pic']; if ($picofxOpts['pic'] != '' AND file_exists ('include/images/gallery/'.$picofxThumb)) { $picofxThumb = 'img_thumb_'.$picofxOpts['pic']; $picofxImg = getimagesize('include/images/gallery/'.$picofxThumb); if($picofxImg[0] < $picofxOpts['picwidth']) { $picofxImg[1] = @ceil(($picofxImg[1] / $picofxImg[0]) * $picofxOpts['picwidth']); $picofxImg[0] = $picofxOpts['picwidth']; } list ($id, $endung) = explode('.', $picofxOpts['pic']); if ($picofxOpts['directory'] == 0) { $cid = db_result(db_query("SELECT cat FROM prefix_gallery_imgs WHERE id = ".$id),0); } else { $cid = $picofxOpts['directory']; } $anz = db_result(db_query("SELECT COUNT(*) FROM prefix_gallery_imgs WHERE id < ".$id." AND cat = ".$cid),0); $weite = $allgAr['gallery_normal_width']+30; ?> <script language="JavaScript" type="text/javascript"> <!-- function picOfxOeffneFenster (bildr, cat) { var fenster = window.open ('index.php?gallery-show-'+cat+'-p'+bildr,'showBild','scrollbars=yes,height=600,width=<?php echo $weite; ?>,left=200,status=yes'); fenster.focus(); return (false); } //--> </script> <?php echo '<table id="galimages" width="100%" border="0" cellpadding="2" cellspacing="0"><tr><td align="center">'; echo '<a rel="galimagesrel" 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']; } ?>
<?php /* ilchClan Pic of the X modul -------------------------------------------------------------| Copyright : copy by Manuel | E-Mail : Webmaster@ilch.de | Internet : www.ilch.de | Version : v.1 | Lastupdate : 20.12.2005 | Modul Copyright : copy by David "scarfhogg" | ------------------------------------------------------------*/ defined ('main') or die ( 'no direct access' ); $svResult = db_query('SELECT * FROM prefix_allg WHERE k = \'picofx\''); while($saRow = db_fetch_assoc($svResult)) { $picofxOpts[$saRow['v1']] = $saRow['v2']; } //var_dump($picofxOpts); $picofxNow = date('Y-m-d'); // pruefen ob das bild gewechselt werden muss. if($picofxOpts['nextchange'] == $picofxNow || $picofxOpts['nextchange'] < $picofxNow) { if($picofxOpts['directory'] == 0) { $picofxOpts['pic'] = @db_result(db_query("SELECT id FROM prefix_gallery_imgs ORDER BY RAND() LIMIT 1"),0); } else { $picofxOpts['pic'] = @db_result(db_query("SELECT id FROM prefix_gallery_imgs WHERE cat = ".$picofxOpts['directory']." ORDER BY RAND() LIMIT 1"),0); } if (!empty($picofxOpts['pic'])) { $picofxOpts['pic'] .= '.'.@db_result(db_query("SELECT endung FROM prefix_gallery_imgs WHERE id = ".$picofxOpts['pic']),0); } $picofxNextChange = date('Y-m-d', time() + 3600 * 24 * $picofxOpts['interval']); // geaendertes pic in db speichern db_query('UPDATE prefix_allg SET v2 = \''. $picofxOpts['pic'] .'\' WHERE k = \'picofx\' AND v1 =\'pic\' LIMIT 1'); db_query('UPDATE prefix_allg SET v2 = \''. $picofxNextChange .'\' WHERE k = \'picofx\' AND v1 =\'nextchange\' LIMIT 1'); } $picofxThumb = 'img_thumb_'.$picofxOpts['pic']; if ($picofxOpts['pic'] != '' AND file_exists ('include/images/gallery/'.$picofxThumb)) { $picofxThumb = 'img_thumb_'.$picofxOpts['pic']; $picofxImg = getimagesize('include/images/gallery/'.$picofxThumb); if($picofxImg[0] < $picofxOpts['picwidth']) { $picofxImg[1] = @ceil(($picofxImg[1] / $picofxImg[0]) * $picofxOpts['picwidth']); $picofxImg[0] = $picofxOpts['picwidth']; } list ($id, $endung) = explode('.', $picofxOpts['pic']); if ($picofxOpts['directory'] == 0) { $cid = db_result(db_query("SELECT cat FROM prefix_gallery_imgs WHERE id = ".$id),0); } else { $cid = $picofxOpts['directory']; } $anz = db_result(db_query("SELECT COUNT(*) FROM prefix_gallery_imgs WHERE id < ".$id." AND cat = ".$cid),0); $weite = $allgAr['gallery_normal_width']+30; ?> <script language="JavaScript" type="text/javascript"> <!-- jQuery(document).ready(function(){ $("#fancy").fancybox(); }); //--> </script> <?php echo '<table width="100%" border="0" cellpadding="2" cellspacing="0"><tr><td align="center">'; echo '<a id="fancy" target="_blank" href="include/images/gallery/img_'.$picofxOpts['pic'].'"><img src="include/images/gallery/'.$picofxThumb.'" width="'.$picofxImg[0].'" height="'.$picofxImg[1].'" alt=""></a>'; echo '</td></tr></table>'; } else { echo $lang['nothingavailable']; } ?>
echo '<a id="fancy" target="_blank" href="include/images/gallery/img_'.$picofxOpts['pic'].'"><img src="include/images/gallery/'.$picofxThumb.'" width="'.$picofxImg[0].'" height="'.$picofxImg[1].'" alt=""></a>';
echo '<a id="fancy" target="_blank" href="include/images/gallery/img_norm_'.$picofxOpts['pic'].'"><img src="include/images/gallery/'.$picofxThumb.'" width="'.$picofxImg[0].'" height="'.$picofxImg[1].'" alt=""></a>';
Geschlossen | ||
![]() |
Zurück zu Allgemein |