Hallo,
also diese Funktion habe ich bereits seit Version 2.3 mit eingebaut!?
Dennoch hätte eine Verknüpfung mit der Lightbox natürlich auch seinen Reiz...
Grüße, Alex
Hallo,
also diese Funktion habe ich bereits seit Version 2.3 mit eingebaut!?
Dennoch hätte eine Verknüpfung mit der Lightbox natürlich auch seinen Reiz...
Grüße, Alex
Herzlichen Dank für die schnelle Antwort. Das sollte eigentlich nicht passieren, aber da hab ich wohl geschlafen. Hatte die Version 2.0.3 installiert :-)
Nochmals herzlichen Dank für die tolle Erweiterung, freut mich wenn du das Einbinden der lightbox auch "reizvoll" findest.
LG, Logic
freut mich wenn du das Einbinden der lightbox auch "reizvoll" findest
Klar, ist optisch ein geiles Ding 🙂
Also gut, habe mit der Version 2.3.2 jetzt auch die imagelightbox ermöglicht, damit sich keiner mehr aufregen kann... *lach*
Grüße, Alex
hallo
funktioniert die lightbox nur wenn ich auf das Single-Bild klicke? Die Pop-Up Einstellungen sind ja nur für diese Ansicht. Gibt es auch eine Möglichkeit in der Thumbnailansicht die lightbox aufzurufen und dann mit PREV/NEXT sich durchzunavigieren?
danke
gruß
underdog
Derzeit leider nicht - sorry
Ich bahe eine Variante gefunden die imagelightbox für die thumbnails laufen zulassen.
Es sind nur wenige Änderungen im Code nötig. Was allerdings getan werden muss, ist die Kompatibilität zu den vorangegangenen Versionen zu gewährleisten. Bei mir gibt es nun keine Einzelansicht mehr.
Änderungen der Datei class.tx_wtgallery_p1.php
in function list_view:
unter
$roundedcorner_array['innerradiussubtract'] = $this->getvalue('roundedcorner_innerradiussubtract','special_effects_list','3','No value for substract inner radius',0); // Rounded Corners
folgendes einfügen
$popup = $this->getvalue('show_popup','config_popup','1','No popup definition',0);
$popup_width = $this->getvalue('popup_width','config_popup','800','No popup width defined',0);
$popup_quality = $this->getvalue('quality','config_popup','75','No popup quality defined',0);
// Imagelightbox part
if($popup=='imagelightbox' AND t3lib_extMgm::isLoaded('kj_imagelightbox2',0)) { // If imagelightbox should be activated AND imagelightbox is loaded
include t3lib_extMgm::extPath('wt_gallery') . 'imagelightbox/imagelightbox.php'; // Include Header Code
$GLOBALS['TSFE']->pSetup["headerData."]['100'] = 'COA';
$GLOBALS['TSFE']->pSetup["headerData."]['100.']['10'] = "TEXT";
$GLOBALS['TSFE']->pSetup["headerData."]['100.']['10.']['value'] = $imlightbox;
}
UND
// Current picture separating with different classes (show the current picture in a special style)
if ($currentpic) { // The visitor has choosen a special picture
if ($picture == $currentpic) { // The current picture of the loop == the picture that the visitor has choosen
$markerArray['###PIC###'] .= ' class="wtgallery_listpic wtgallery_listpic_act'.$classadd_div.'">'; // Close DIV
$markerArray['###PIC###'] .= $this->createNewPicture($picfolder.$picture,$this->generateHash($picture,$picfolder,$quality,$ratio,$quality,$watermark_pic,$watermark_alpha,$roundedcorner_array,$filter_array).$basename,'uploads/tx_wtgallery/thumbs/','','',$width,$quality,$ratio,'wtgallery_listpic_pic wtgallery_listpic_pic_act'.$classadd_pic,'',$single_site,array('picid'=>$picture,'cat'=>$category_set,'thumbid'=>$pagebrowser),$filter_array,$roundedcorner_array); // Generate Thumb
} else { // The current picture of the loop is not the picture that the visitor has choosen
$markerArray['###PIC###'] .= ' class="wtgallery_listpic wtgallery_listpic_no'.$classadd_div.'">'; // Close DIV
$markerArray['###PIC###'] .= $this->createNewPicture($picfolder.$picture,$this->generateHash($picture,$picfolder,$quality,$ratio,$quality,$watermark_pic,$watermark_alpha,$roundedcorner_array,$filter_array).$basename,'uploads/tx_wtgallery/thumbs/','','',$width,$quality,$ratio,'wtgallery_listpic_pic wtgallery_listpic_pic_no'.$classadd_pic,'',$single_site,array('picid'=>$picture,'cat'=>$category_set,'thumbid'=>$pagebrowser),$filter_array,$roundedcorner_array); // Generate Thumb
}
} else { // Else: no picture is selected, take first one
if ($i == '0') { // If the current picture of the loop is the first one
$markerArray['###PIC###'] .= ' class="wtgallery_listpic wtgallery_listpic_act'.$classadd_div.'">'; // Close DIV
$markerArray['###PIC###'] .= $this->createNewPicture($picfolder.$picture,$this->generateHash($picture,$picfolder,$quality,$ratio,$quality,$watermark_pic,$watermark_alpha,$roundedcorner_array,$filter_array).$basename,'uploads/tx_wtgallery/thumbs/','','',$width,$quality,$ratio,'wtgallery_listpic_pic wtgallery_listpic_pic_act'.$classadd_pic,'',$single_site,array('picid'=>$picture,'cat'=>$category_set,'thumbid'=>$pagebrowser),$filter_array,$roundedcorner_array); // Generate Thumb
} else { // If the current picture is not the first one
$markerArray['###PIC###'] .= ' class="wtgallery_listpic wtgallery_listpic_no'.$classadd_div.'">'; // Close DIV
$markerArray['###PIC###'] .= $this->createNewPicture($picfolder.$picture,$this->generateHash($picture,$picfolder,$quality,$ratio,$quality,$watermark_pic,$watermark_alpha,$roundedcorner_array,$filter_array).$basename,'uploads/tx_wtgallery/thumbs/','','',$width,$quality,$ratio,'wtgallery_listpic_pic wtgallery_listpic_pic_no'.$classadd_pic,'',$single_site,array('picid'=>$picture,'cat'=>$category_set,'thumbid'=>$pagebrowser),$filter_array,$roundedcorner_array); // Generate Thumb
}
}
ersetzen durch
// Current picture separating with different classes (show the current picture in a special style)
$filename_cached = $this->generateHash($picture,$picfolder,$quality,$ratio,$quality,$watermark_pic,$watermark_alpha,$roundedcorner_array,$filter_array).$basename; // Generate Hash like 1209A2215654646.jpg
if (($popup == '1' OR $popup == 'imagelightbox') AND !file_exists('uploads/tx_wtgallery/popup/'.$filename_cached)) { // Generate Popup Cache file if needed
$this->createNewPicture($picfolder.$picture,$filename_cached,'uploads/tx_wtgallery/popup/',$watermark_pic,$watermark_alpha,$popup_width,$popup_quality,'','','','','','',''); // resize and cache image if necessary
}
if ($currentpic) { // The visitor has choosen a special picture
if ($picture == $currentpic) { // The current picture of the loop == the picture that the visitor has choosen
$markerArray['###PIC###'] .= ' class="wtgallery_listpic wtgallery_listpic_act'.$classadd_div.'">'; // Close DIV
$markerArray['###PIC###'] .= $this->createNewPicture($picfolder.$picture,$filename_cached,'uploads/tx_wtgallery/thumbs/','','',$width,$quality,$ratio,'wtgallery_listpic_pic wtgallery_listpic_pic_act'.$classadd_pic,$popup,$single_site,array('picid'=>$picture,'cat'=>$category_set,'thumbid'=>$pagebrowser),$filter_array,$roundedcorner_array); // Generate Thumb
} else { // The current picture of the loop is not the picture that the visitor has choosen
$markerArray['###PIC###'] .= ' class="wtgallery_listpic wtgallery_listpic_no'.$classadd_div.'">'; // Close DIV
$markerArray['###PIC###'] .= $this->createNewPicture($picfolder.$picture,$filename_cached,'uploads/tx_wtgallery/thumbs/','','',$width,$quality,$ratio,'wtgallery_listpic_pic wtgallery_listpic_pic_no'.$classadd_pic,$popup,$single_site,array('picid'=>$picture,'cat'=>$category_set,'thumbid'=>$pagebrowser),$filter_array,$roundedcorner_array); // Generate Thumb
}
} else { // Else: no picture is selected, take first one
if ($i == '0') { // If the current picture of the loop is the first one
$markerArray['###PIC###'] .= ' class="wtgallery_listpic wtgallery_listpic_act'.$classadd_div.'">'; // Close DIV
$markerArray['###PIC###'] .= $this->createNewPicture($picfolder.$picture,$filename_cached,'uploads/tx_wtgallery/thumbs/','','',$width,$quality,$ratio,'wtgallery_listpic_pic wtgallery_listpic_pic_act'.$classadd_pic,$popup,$single_site,array('picid'=>$picture,'cat'=>$category_set,'thumbid'=>$pagebrowser),$filter_array,$roundedcorner_array); // Generate Thumb
} else { // If the current picture is not the first one
$markerArray['###PIC###'] .= ' class="wtgallery_listpic wtgallery_listpic_no'.$classadd_div.'">'; // Close DIV
$markerArray['###PIC###'] .= $this->createNewPicture($picfolder.$picture,$filename_cached,'uploads/tx_wtgallery/thumbs/','','',$width,$quality,$ratio,'wtgallery_listpic_pic wtgallery_listpic_pic_no'.$classadd_pic,$popup,$single_site,array('picid'=>$picture,'cat'=>$category_set,'thumbid'=>$pagebrowser),$filter_array,$roundedcorner_array); // Generate Thumb
}
}
Achso dann habe ich noch etwas eingefügt
in function createNewPicture
$height = intval($width * $y / $x);
ersetzen durch
if($width>$x){
$width= $x;
}
$height = intval($width * $y / $x);
if($height>$y){
$width= intval($height * $x / $y);
}
$height = intval($width * $y / $x);
aufgeblasene Bilder sehen nicht immer schön aus
Ich hoffe, es kann jemand damit etwas anfangen.
Die Funktion gehört gescheit implementiert, eventl. komme ich in meinem Urlaub dazu. 😃
Aber danke für den Workaround..
Ich hoffe, es kann jemand damit etwas anfangen.
Ich war gerade am überlegen wie ich vermutlich umständlich die Einzelübersicht überlisten kann...
Vielen Dank, ich bin nun GLÜCKLICH. 😃
Ich bin beeindruckt von dieser Extension...
CSS anständig vorbereitet und das HTML Template super als Basis.
Eine kleine Sache...
Wie kann ich denn den Kategorien irgendwie eine ordentliche Überschrift geben?
"14.6.2007_Eroeffnung_Bilderset_2" ist halt nicht so schön mit den Unterstrichen & Co.
So weit ich es mitbekommen habe, sollte eine Datei <ordnername>.txt auf der Ordnerebene ausreichen. Ich kann mir allerdings vorstellen, dass es bei "14.6.2007_Eroeffnung_Bilderset_2" Schwierigkeiten geben kann.
Vielleicht eher den Ordner "1462007_Eroeffnung_Bilderset_2" heißen lassen und die zugehörige Datei "1462007_Eroeffnung_Bilderset_2.txt"
Hab ich allerdings noch nicht gemacht.