SefrenTo
Sat. 29. August 2009, 04:05
Uff, ich hab jetzt n paar Stunden herumprobiert und die folgenden Umbauten in der "Frontendausgabe" des Moduleinstellungen getätigt.
Jetzt werden, wenn die Anzahl der Bilder 1 ist (count($mod["file"]) == 1), die "next" und "prev"-Links nicht ausgegeben. Die ersten 4 Zeilen sind die wichtigen, die anderen hab ich nur mit gepostet da ich noch eine if-else-Schleife darum gelegt habe...
Die Änderungen ab Zeile 972:
QUELLTEXT
//Für erste und letzte Variablen definieren
if (count($mod["file"]) == 1) {
$mod['dtpl'] = str_replace("{prev}", "", $mod['dtpl']);
$mod['dtpl'] = str_replace("{next}", "", $mod['dtpl']);
}
else{
$mod['dtplwalker_prev_firsttag'] = $mod['dtplwalker_22'];
$mod['dtplwalker_next_lasttag'] = $mod['dtplwalker_25'];
$mod['dtplwalker_next_lasttag'] = str_replace("{next}", $mod['dtplwalker_next_last'], $mod['dtplwalker_next_lasttag'] );
$mod['dtplwalker_prev_firsttag'] = str_replace("{prev}", $mod['dtplwalker_prev_first'], $mod['dtplwalker_prev_firsttag'] );
if ($detailid == 1){
$mod['dtpl'] = str_replace("{prev}", $mod['dtplwalker_prev_firsttag'], $mod['dtpl']);
$mod['dtpl'] = str_replace("{next}", $mod['dtplwalker_nexttag'], $mod['dtpl']);
} elseif ($detailid == count($mod["file"])) {
$mod['dtpl'] = str_replace("{prev}", $mod['dtplwalker_prevtag'], $mod['dtpl']);
$mod['dtpl'] = str_replace("{next}", $mod['dtplwalker_next_lasttag'], $mod['dtpl']);
}
else {
$mod['dtpl'] = str_replace("{prev}", $mod['dtplwalker_prevtag'], $mod['dtpl']);
$mod['dtpl'] = str_replace("{next}", $mod['dtplwalker_nexttag'], $mod['dtpl']);
}
}
Vielleicht kann ja noch jemand was mit dem Code anfangen. Oder vielleicht kann er auch direkt in das Pic-Galerie-Modul übernommen werden? Scheint mir ohnehin, als wäre das ein Bug!?
Grüße!