Hallo zusammen,
habe eine HP auf Mambo laufen (4.5.0), allerdings mit einigen modifizierten Details. Beim Überarbeiten hab ich wohl was falsch gemacht, zumindest kommt jetzt eine Fehlermeldung "javascript:void(0)" bei den Bildern.
Die Bilder werden bei mir rechts in einem Rahmen angezeigt, darüber liegt ein transparentes Bild (spacer.gif), sodaß man die Bilder nicht so einfach per P&C kopieren kann. Jetzt ist hier ein rotes "X" zu sehen und auch die Pop-Up funktioniert nicht mehr. Bin grad mit der HP auf einen neuen Server umgezogen, weiß aber jetzt wirklich nicht mehr, wo der Fehler liegen kann...
Hier mal ein Auszug aus der mosimage.inc
EDIT:PHP-Code:<?php
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
require_once("$mosConfig_absolute_path/classes/class.thumbnail.php");
function MAMBOT_mosimage( &$row, $mask ) {
global $mosConfig_live_site, $mosConfig_absolute_path;
//Switch to 1 to thumbnail all bigger then $allx or $ally
$thumball = 0;
$allx = 100;
$ally = 100;
$thumbtable="";
echo "<script language=\"JavaScript1.2\" src=\"includes/js/picturewindow.js\" type=\"text/javascript\"></script>";
$row->images = explode( "\n", $row->images );
$images = array();
foreach ($row->images as $img) {
$img = trim( $img );
if ($img) {
$temp = explode( '|', trim( $img ) );
if(!isset($temp[1]))
$temp[1] = "left";
if(!isset($temp[2]))
$temp[2] = "Image";
if(!isset($temp[3]))
$temp[3] = "0";
$size = '';
//Begin thumbHack
$org_size = getimagesize("$mosConfig_absolute_path/images/stories/$temp[0]");
$size = $org_size[3];
$thumbone = is_int(strpos($temp[2],"Klick für Detailansicht"));
if ($thumbone == true or ($thumball == 1 and ($org_size[0]>$allx or $org_size[1]>$ally))) {
$thumbvars = explode(',',trim($temp[2]));
if (!isset($thumbvars[1]) or intval($thumbvars[1])< 35)
$thumbvars[1]="100";
$org_file = explode("/",$temp[0]);
$org_ext = array_pop($org_file);
if ($thumbone == true) {
$max_thumbheight = trim(round(intval($thumbvars[1],0)));
$max_thumbwidth = trim(round(($org_size[0] / ($org_size[1] / $max_thumbheight))),0);
} else {
$max_thumbheight = $allx;
$max_thumbwidth = $ally;
}
$subfolder = (implode("/",$org_file));
if ($subfolder) {
$thumbfile = trim("images/stories/$subfolder/thumb_".$org_ext);
} else {
$thumbfile = trim("images/stories/thumb_".$org_ext);
}
$thumbimage = new Thumbnail("images/stories/$temp[0]", $max_thumbwidth, $max_thumbheight, $thumbfile);
$thumbimage->Output();
$thumbsize = getimagesize($thumbfile);
$thumb = "<img src=\"$thumbfile\" $thumbsize[3] hspace=\"6\" alt=\"$thumbvars[0]\" border=\"$temp[3]\" />";
// align=\"$temp[1]\"
$thumbtable.="<tr><td align='center' style='width:100px;height:50px;background: url(".$thumbfile.") center no-repeat;'><div align='center'><a href=\"javascript:void(0)\" onclick=\"picturewindow('$mosConfig_live_site/images/stories/$temp[0]','$org_size[0]','$org_size[1]');\"><img border='0' src='/m/templates/terra/images/spacer.gif' ".substr($thumbsize[3],12)." width='150'></a></div></td></tr>";
//$images[] = "<a href=\"javascript:void(0)\" onclick=\"picturewindow('$mosConfig_live_site/images/stories/$temp[0]','$org_size[0]','$org_size[1]');\">$thumb</a>";
} else {
$images[] = "<img src=\"$mosConfig_live_site/images/stories/$temp[0]\" $size align=\"$temp[1]\" hspace=\"6\" alt=\"$temp[2]\" border=\"$temp[3]\" />";
}
//End thumbHack
}
}
$text = explode( '{mosimage}', $row->text );
$row->text = $text[0];
for ($i=0, $n=count( $text )-1; $i < $n; $i++) {
if (isset( $images[$i] )) {
$row->text .= $images[$i];
}
if (isset( $text[$i+1] )) {
$row->text .= $text[$i+1];
}
}
if ($thumbtable<>"") {
$row->text="<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"right\" class=\"imagetable\">".$thumbtable."</table>".$row->text;
}
unset( $text );
}
?>
Das rote "X" hab ich wegbekommen, falsche Pfadangabe! Bleibt noch die "Fehlermeldung auf der Seite" mit dem Java...


LinkBack URL
About LinkBacks
Zitieren
Lesezeichen