MyXoops Forum

Forum - myXOOPS German Support

4 + 9 = ?  
Geben Sie das Ergebnis der Berechnung ein
Sie haben max. 10 Versuche.
 
* = Erforderlich

Re: Nach update keine Bilderansicht mehr

Betreff: Re: Nach update keine Bilderansicht mehr
von Muki am 04.09.2007 10:10:56

Wenn man vom Modul xcgal den block "Scrollende Vorschaubilder" aktiviert, bekommt man eine Fehlermeldung:
NoticeUndefined indexcaption_text in file /modules/xcgal/blocks/xcgal_blocks.php line 83


Diesen kann man umgehen, bis dieser Fehler gefixt ist mit folgender codeänderung in der Datei: modules/xcgal/blocks/xcgal_blocks.php

Suche nach (müsste Zeile 82 sein):
$thumb_list[$i]['image'] = "<img src="".XOOPS_URL ."/modules/xcgal/".$xcgalConfig['fullpath'].str_replace("%2F","/",rawurlencode($row['filepath'].$xcgalConfig['thumb_pfx'].$row['filename']))."" class="image" border="0" alt="{$row['filename']}" />";
$thumb_list[$i]['caption'] = $row['caption_text'];
$thumb_list[$i]['pid'] = $row['pid'];


Ändere dieses folgender maßen:
$thumb_list[$i]['image'] = "<img src="".XOOPS_URL ."/modules/xcgal/".$xcgalConfig['fullpath'].str_replace("%2F","/",rawurlencode($row['filepath'].$xcgalConfig['thumb_pfx'].$row['filename']))."" class="image" border="0" alt="{$row['filename']}" />";

// ***** begin errorhack by muki ******
if (!isset($row['caption_text'])) {
  
$thumb_list[$i]['caption'] = ' ';
}else{
  
$thumb_list[$i]['caption'] = row['caption_text'];
}
// $thumb_list[$i]['caption'] = $row['caption_text'];
// ***** end errorhack by muki ******
$thumb_list[$i]['pid'] = $row['pid'];


Diese Veränderung hat dann folgende Auswirkung:
a) Es entstehen keine Fehler mehr.
b) Die Vorschau zeigt keine halben trumbs mehr.

Muki

PS: Wenn jemand einen Fix hat, her damit

Aktuell aus dem Forum

Forum Thema Antworten Views Letzter Beitrag
Modulentwicklung New Xoops Xcreate Module 0 5324 26.11.2025 15:22
efkan Gehe zum letzten Beitrag
Modulentwicklung XOOPS Custom Field Module 1 1813 24.11.2025 11:21
Goffy Gehe zum letzten Beitrag